<< Chapter < Page | Chapter >> Page > |
With 100% accuracy during a: memory building activity, exercises, lab assignment, problems, or timed quiz/exam; the student is expected to:
Link to: MBA 12
Link to: Manipulation of Data Part 3
Depending on your compiler/IDE, you should decide where to download and store source code files for processing. Prudence dictates that you create these folders as needed prior to downloading source code files. A suggested sub-folder for the Bloodshed Dev-C++ 5 compiler/IDE might be named:
If you have not done so, please create the folder(s) and/or sub-folder(s) as appropriate.
Download and store the following file(s) to your storage device in the appropriate folder(s). You may need to right click on the link and select "Save Target As" in order to download the file.
Download from Connexions: Lab_12a.cpp
Read and follow the directions below carefully, and perform the steps in the order listed.
Flowchart the following pseudocode:
Case of shoe_size
4 to 6 Display "Small."7 to 9 Display "Medium."
10 + Display "Large."Endcase
The "Flip-Flops" is a unique shoe store that only sells flip-flops. Adult shoe sizes less than 4 are handled in the children’s department, thus we don’t need to concern ourselves with sizes less than 4. Half shoe sizes are to be rounded down, thus the prompt to the user that happens before this case structure will have addressed that issue. The variable shoe_size will be an integer value between 4 and 1,000,000,000 (one billion).
Write C++ source code for the following pseudocode:
Case of shoe_size
4 to 6 Display "Small."7 to 9 Display "Medium."
10 + Display "Large."Endcase
Write C++ source code for the following pseudocode:
If age equal to 24
Display a message "You’re the same age as Melinda."Else
If age equal to 27Display a message "You’re the same age as Ruth."
ElseIf age equal to 34
Display a message "You’re the same age as Ben."Else
Display a message "You’re age is un-important."Endif
EndifEndif
Notification Switch
Would you like to follow the 'Programming fundamentals - a modular structured approach using c++' conversation and receive update notifications?