Project 2 Design Template Part1: Flowchart and Pseudocode/Algorithm: Here is the flowchart and pseudocode for Project2...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Project 2 Design Template Part1: Flowchart and Pseudocode/Algorithm: Here is the flowchart and pseudocode for Project2 program: Part2: Comprehensive Test Plan Test your program with at least two more test cases. Use the given data as an example. Record your data for input and output in the following table. Make sure your tests cover all the possible scenarios. Test Input Expected Output Actual Output Did the test pass? Case # |1 N 3 4 Project 2 Concepts tested in this project Selection control structure o The if statement o The switch statement Relational operators and logical operators o Use of relational and logical operators to check numeric ranges User friendly o Use of user-friendly user prompt and simple input validation o Use of meaningful output labels and format o Use of output manipulators Working with string type Use of getline() Project Description There are two main systems for measuring distance, weight and temperature; the Imperial System of Measurement, and the Metric System of Measurement. Most countries use the Metric System, which uses the measuring units such as meters and grams and adds prefixes like kilo, milli and cent to count orders of magnitude. In the United States, we use the older Imperial system, where things are measured in feet, inches, and pounds. Write a program that shows the following menu options and lets the user to convert from Metric to Imperial system: Converter Toolkit 1. Temperature Converter 2. Distance Converter 3. Weight Converter 4. Quit If the user enters 1, the program should ask for the temperature in Celsius and convert it to Fahrenheit. If the user enters 2, the program should ask for the distance in Kilometer and convert it to Mile. If the user enters 3, the program should ask for the weight in Kilogram and convert it to Pound. If the user enters 4, the program should end. Project Specifications Input: the user must enter a country name the user must enter a number to select a menu option the user must enter temperature in Celsius the user must enter distance in Kilometer the user must enter weight in Kilogram Input Validation: Do not accept a number outside the range of 1 through 4 for the menu option. Do not accept negative numbers for distance and weight. Be sure to display appropriate error message if the input is invalid. Output: The program should display the following: a menu for Converter Toolkit temperature in Fahrenheit, distance in miles or weight in pounds a country name Programmer's full name project number Project 2 Design Template Part1: Flowchart and Pseudocode/Algorithm: Here is the flowchart and pseudocode for Project2 program: Part2: Comprehensive Test Plan Test your program with at least two more test cases. Use the given data as an example. Record your data for input and output in the following table. Make sure your tests cover all the possible scenarios. Test Input Expected Output Actual Output Did the test pass? Case # |1 N 3 4 Project 2 Concepts tested in this project Selection control structure o The if statement o The switch statement Relational operators and logical operators o Use of relational and logical operators to check numeric ranges User friendly o Use of user-friendly user prompt and simple input validation o Use of meaningful output labels and format o Use of output manipulators Working with string type Use of getline() Project Description There are two main systems for measuring distance, weight and temperature; the Imperial System of Measurement, and the Metric System of Measurement. Most countries use the Metric System, which uses the measuring units such as meters and grams and adds prefixes like kilo, milli and cent to count orders of magnitude. In the United States, we use the older Imperial system, where things are measured in feet, inches, and pounds. Write a program that shows the following menu options and lets the user to convert from Metric to Imperial system: Converter Toolkit 1. Temperature Converter 2. Distance Converter 3. Weight Converter 4. Quit If the user enters 1, the program should ask for the temperature in Celsius and convert it to Fahrenheit. If the user enters 2, the program should ask for the distance in Kilometer and convert it to Mile. If the user enters 3, the program should ask for the weight in Kilogram and convert it to Pound. If the user enters 4, the program should end. Project Specifications Input: the user must enter a country name the user must enter a number to select a menu option the user must enter temperature in Celsius the user must enter distance in Kilometer the user must enter weight in Kilogram Input Validation: Do not accept a number outside the range of 1 through 4 for the menu option. Do not accept negative numbers for distance and weight. Be sure to display appropriate error message if the input is invalid. Output: The program should display the following: a menu for Converter Toolkit temperature in Fahrenheit, distance in miles or weight in pounds a country name Programmer's full name project number
Expert Answer:
Answer rating: 100% (QA)
Solutions Step 1 Our goal in this project is to write a Python software that acts as a Converter Toolkit allowing users to convert temperature distance and weight between Metric and Imperial measureme... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
On January 1, 2024, Cullumber issued $4,200,000, 10% bonds. Interest is payable semi-annually on June 30 and December 31. The bonds mature on January 1, 2034. The bonds are sold to yield 12%. Click...
-
You and your partner enjoy playing tennis. You think you are an excellent tennis player with the patience to coach children. You decide you could make some extra money coaching children on a...
-
Management and leadership differ. Why does Alignment with followeres and leaders have the most influence on organizational success?
-
In Exercises explain why Rolle's Theorem does not apply to the function even though there exist a and b such that (a) = (b). f(x) H [1,1]
-
What are two reasons for using layered protocols?
-
Suppose 1000 people enter a chess tournament. Use a rooted tree model of the tournament to determine how many games must be played to determine a champion, if a player is eliminated after one loss...
-
Given the random variables \[ \begin{aligned} & U=\cos \Theta \\ & V=\sin \Theta \end{aligned} \] with \[ p_{\Theta}(\theta)= \begin{cases}1 / \pi & -\frac{\pi}{2}
-
1. How does The Body Shop address the four components of corporate social responsibility? In The Body Shop, what tensions among these components are at work? 2. Analyze the Body Shops power using...
-
Input is the force f and output is the velocity v2. Find the transfer function in terms of Y(s)/U(s) C m2 m1 V2
-
Daniel Company uses a periodic inventory system. Data for 2015: beginning merchandise inventory (December 31, 2014), 2,000 units at $38; purchases, 8,000 units at $40; expenses (excluding income...
-
A steep long channel takes its water from a lake. Prove that the discharge per unit width in the channel is given by: q= 8 Two lakes are joined by a wide concrete channel A-B as shown in the figure...
-
Richard Morley stopped in Riyadh on his way back from the Far East. He hoped to meet Ahmad Abalkhail, the man in the Ministry of Labor in charge of computer purchasing and training, with whom he had...
-
Using the following Data for a "Floor" agreement: XYZ Co. buys a Floor Agreement from Widget Co. The Strike is 6% on the Russell 2000 Stock Index; Notional Amount is 20 Million dollars; Time: 5...
-
During its most recent fiscal year, Dover, Incorporated had total sales of $3,160,000. Contribution margin amounted to $1,480,000 and income was $370,000. What amount should have been reported as...
-
Read the National Association for the Education of Young Children (NAEYC) 2003 position statement on early childhood curriculum, assessment, and program evaluation, available at...
-
Question a - Define the term "budget," and briefly describe the four primary purposes budgets serve. Discuss the three types of budgets used by organizations. b - Larry Leader is the manager of TUV...
-
If a string of length I is initially at rest in equilibrium position and each point of it is ay given the velocity =vosin (), 0
-
During 2012, Cheng Book Store paid $483,000 for land and built a store in Georgetown. Prior to construction, the city of Georgetown charged Cheng $1,300 for a building permit, which Cheng paid. Cheng...
-
Fisafolia Corporation has gross income from operations of $220,000 and operating expenses of $160,000 for 2012. The corporation also has $20,000 in dividends from publicly traded domestic...
-
Karim Depak received a Form 1099-B showing the following stock transactions and basis during 2012: None of the stock is qualified small business stock. Calculate Karim's net capital gain or loss...
-
Larry and Lisa Williams, both 33 years old, have been married for 9 years. They live at 638 Arctic Way, Fairbanks, AK 99701. Lisa's Social Security number is 445- 81-1423 and Larry's is 798-09-8526....
-
The two transistors in Figure P32.26 are connected to each other by wires and also connected to input wires at terminals \(\mathrm{A}\) and \(\mathrm{B}\). The output of this combination depends on...
-
Is the light bulb in Figure P32.27 lit? Data from Figure P32.27 (e)
-
Which circuit in Figure P32.25 produces the greatest current in the emitter? Data from Figure P32.25 A B n-type p-type n-type n-type p-type n-type C n-type p-type n-type HHHHH
Study smarter with the SolutionInn App