CS 115 Project 2: "Fahrenheit/Celsius Conversion" Name: It's not always easy to convert back and forth between Fahrenheit and Celsius Temperatures in your head. Still, failing to convert could leave you with the wrong clothes the next time you head up to Canada. To solve the problem, you should create a program to do the conversions each way for you. To accomplish this task, you will need to do the following: Preparation: 1. 2. 3. 4. Make sure you know the conversion formulae. If you do not know them, look them up. Make sure you know what the program needs to do. Try the sample executable, and familiarize yourself with how it works. Decide what variables you will need, and where they will be located. Include these, along with the required form objects in your data dictionary Create a flow chart for each subroutine you will be writing. Be sure to do this before writing code Interface: 1. Create a form with three labels on it: a. One label for the Degrees Fahrenheit b. One label for the Degrees Celsius c. One label for your name/ course/ section/ quarter 2. Add two textboxes to the form to allow the user to enter in a temperature. 3. Add three buttons to the form a. one to calculate the temperature in Fahrenheit b. one to calculate the temperature in Celsius c. one to allow the user to exit the program Make sure to set appropriate names and properties. Make it look like the sample OR make it look better--make sure it is readable and useable. Operations: 1. Clicking on the "calculate Celsius" button will calculate and display the appropriate Celsius Temperature in the appropriate textbox to 1 decimal place, and re-write the Fahrenheit temperature back to the Fahrenheit textbox to 1 decimal place. To do this you should dim two variables within the sub of type single, one for Celsius, one for Fahrenheit. 2. Clicking on the "calculate Fahrenheit" button will calculate and display the appropriate Fahrenheit Temperature in the appropriate textbox to 1 decimal place, and re-write the Celsius temperature back the the Celsius textbox to 1 decimal place. To do this you should Dim two variables within the sub of type single, one for Celsius, one for Fahrenheit. 3. 4. 5. 6. Clicking on the "Exit" button will close the form and terminate the program. also -- make the "Exit" button be the form's cancelButton The program should start with "32.0" in the Fahrenheit textbox and "0.0" in the Celsius textbox If Celsius is calculated, the Fahrenheit textbox should gain the focus, and vice versa. If a temperature below Absolute Zero (-273.15 ° C) is entered, a Messagebox warning should pop up and the two values should be set to the appropriate Absolute Zero values. You must declare and use variables to hold the number values! For this program, do not worry about dropping above Absolute Hot (1.41678571 × 1032 ° K ). Be sure to include "Option Strict On" and "Option Explicit On" at the top of the code (above the top line--don't include the quotes), along with: '----------------------------------------------------------' <Program name> ' by <Your Name> ' Version 1.0 ' compiled using MS Visual Studio 2013 ' tested on an Intel Xeon PC running MS Windows 7 ' CS 115 Section C ' <The date completed> ' <Description of the program> '----------------------------------------------------------Be sure to include headers for each sub procedure. This lab is worth 60 points Deliverables: Physical: • Projects should be turned in inside a clear plastic file folder. This folder should have a simple flap to hold paper in place--NO buttons, strings, Velcro, etc. Pages should be in order, not stapled. • Assignment Sheet (printed pdf from the web), with your name on it, as a cover sheet. • Printed Source Code with Comments (including heading blocks). The frm---.vb file be sure to "expand" all code before printing Electronic: • All .vb, .designer.vb, and .exe(Release Version) files, or if you like, the whole project folder. • Data Dictionary, Flow Charts saved as .xls, xlsx, .doc or .docx files • Sample Output (initial screen and 2 other sample screen captures) as .rtf file-- run the program, copy the window using <ALT|PRTSCN>, paste into Wordpad, save.) a simple test plan including explanations of any discrepancies and reasons for each test. Show actual input and ALL actual values output as well as ALL expected output. Test each possible action. Save as .xls, xlsx, .doc or .docx file • • Zip all of the above files together. Do not use rar or any archive format other than zip. Rename the file: "<YourName>_p2.zip". • Submit this single zip file by going to Canvas, select this class, select the Assignment tab on the left, select Assignment 2, select the submission tab at the top, find the file, and Submit. • Due: Monday, October 10, 2016 11:30 am
© Copyright 2026 Paperzz