Need Help ?

Home / Expert Answers / Other / here-is-example-how-to-creating-pseudocode-and-manualflowchart-for-the-assignment-below-you-will-cre

(Answered): Here is example how to creating pseudocode and manualflowchart For the assignment below, you will cr ...




For the assignment below, you will create: 1. Pseudocode algorithm 2. Flowchart algorithm using RAPTOR Celsius to FahrenheitHere is example how to creating pseudocode and manualflowchart1 UN Module main() // Declare a variable for the // number of cups needed. Declare Real cupsNeeded // Display an intro messag40 Set ounces - cups - 8 41 42 // Display the result. 43 Display That converts to 44 ounces, ounces. 45 End Module Prog
For the assignment below, you will create: 1. Pseudocode algorithm 2. Flowchart algorithm using RAPTOR Celsius to Fahrenheit Temperature Converter Design a modular program that calculates and displays a person's body mass index (BMI). The BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for his or her height. A person's BMI is calculated with the following formula: BMI = Weight x 703/Height2 Additional instructions: A. You must writeyour algorithms using modules. B. Your first module must be the Main Module. C. Recommended other modules would be 1. getWeight 2. getHeight 3. calcBMI 4. display BMI D. You will need to determine what variables will need to be passed as arguments to the modules, and whether they are passed by Value or by Reference. 1 UN Module main() // Declare a variable for the // number of cups needed. Declare Real cupsNeeded // Display an intro message. Call showIntro() // Get the number of cups. Call getCups (cupsNeeded) // Convert cups to ounces. Call cupsToOunces (cupsNeeded) End Module 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 // The showIntro module displays an // introductory screen. Module showIntro) Display "This program converts measurements" Display "in cups to fluid ounces. For your" Display "reference the formula is: Display 1 cup = 8 fluid ounces. End Module 25 26 27 28 29 30 31 32 // The getCups module gets the number of cups 1/ and stores it in the reference variable cups. Module getCups (Real Ref cups) Display "Enter the number of cups." Input cups End Module 33 34 35 36 37 38 39 // The cupsToOunces module accepts a number 1/ of cups and displays the equivalent number // of ounces. Module cupsToOunces (Real cups) // Declare variables. Declare Real ounces // Convert cups to ounces. 40 Set ounces - cups - 8 41 42 // Display the result. 43 Display "That converts to " 44 ounces, " ounces." 45 End Module Program Output (with Input Shown in Bold) This program converts measurements in cups to fluid Ounces. For your reference the formula is! 1 cup - 8 fluid Ounces. Enter the number of cups. 2 [Enter] That converts to 16 ounces. Figure 3-19 Flowchart for Program 3-11 main() showIntro) getCups (Real Ref cups) Declare Real cups Needed Display "This program converts measurements Display "Enter the number of cups." Display 'in cups to fluid ounces. For your showintro) Input cups Display "reference the formula is: Return getCups (cupsNeeded) Display 1 cup = 8 fluid ounces." cups To Ounces (Real cups) cupsToOunces (cupsNeeded) Return Declare Real ounces End Set ounces Cups B Display "That converts to . ounces, ounces." Return


We have an Answer from Expert

View Expert Answer

Expert Answer


Answer to For the assignment below, you will create: 1. Pseudocode algorithm 2. Flowchart algorithm using RAPTOR Celsius to Fahren...
We have an Answer from Expert

Buy This Answer $4

Place Order