Question: ESET 220 - Microprocessor Systems Homework #1 - Basic CH Programming Assigned: January 21, 2020 Due: Sunday, January 26, 2020 by midnight. Background Reading Go

 ESET 220 - Microprocessor Systems Homework #1 - Basic CH Programming

ESET 220 - Microprocessor Systems Homework #1 - Basic CH Programming Assigned: January 21, 2020 Due: Sunday, January 26, 2020 by midnight. Background Reading Go to the following website: www.cplusplus.com, and open the Tutorials tab. Under there open the CH+ Language tab. Read the first two sections Basics of C++ and Program Structure. I strongly recommend using Visual CH to work through some of the examples they give. In addition, be sure to review Lectures #1 and #2 on Bb for Basic CH programming. Once you have reviewed these sections, write the following two programs: Program #1 - Basic 10 Have the user input their age, favorite color, favorite sports team, and city of birth. Display this information back to them in 4 separate lines. If age is 50, print out "You're old!". Note that you will need to define some of the variables as strings, whereas the age will be an integer. Be sure to put annotation in the code using either the // or the / and Program 12 - Loop Structures a) Read 5 numbers from the user, utilizing a FOR loop structure b) Calculate the average of the 5 numbers. You should use a floating point variable for this C) Print out "Average", then the average d) Repeat this program using a WHILE loop instead of a FOR loop. e) Be sure to annotate your code-always! Submit all programs in a single Word document by simply cutting and pasting the C++ code from Visual Studio. These need to be uploaded directly to Bb. PW

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!