Question: Program Description Write and test a MASM program to perform the following tasks: Display the program title and programmer s name. Get the user's name,

Program Description
Write and test a MASM program to perform the following tasks:
Display the program title and programmers name.
Get the user's name, and greet the user.
Display instructions for the user.
Use a loop to prompt the user to enter 7 temperature readings, in Celsius.
Validate each user input to be in the range [-30,50](inclusive).Notify the user of any invalid entries (not in the range specified) and discard invalid entries. The same error message may be used for both "too cold" and "too hot".
As each valid temperature is accepted, determine which of the following categories it falls into, and maintain a count of how many temperature readings fall into each category
Cold: Less than 0CCool: 0C to 15CWarm: 16C to 30CHot: Above 30C
When all temperature readings have been entered, calculate the (rounded integer) average of the valid temperature readings and store it in a variable. (Hint: Add each temperature reading into an accumulator after validation, and only calculate the average after all 7 valid temperature inputs are received).
Display:
the maximum valid temperature readingthe minimum valid temperature readingthe average of all seven valid temperature readings, rounded to the nearest integer
NOTE: Round midpoints (n.5) to theright on the number line:
-20.5 rounds to -2020.5 rounds to 21Other non-integer results just round to the nearest integer value
The total number of temperature readings in each temperature categorya parting message with the users name.
Program Requirements
1.The Min Temp, Max Temp, and each Category's count must each be stored in named variables as they are calculated. The Average variable works best as an accumulator until all valid temperature readings are given, and the average is calculated after this point.
2.The main procedure must be modularized into commented logical sections (procedures are not required this time)
3.The two input range limits (i.e.-30 and 50) and the three classification limits (i.e.0,15, and 30) must be defined as constants.
Notes
This is an integer program. Even though it may make more sense to use floating-point computations, you are required to use signed integer computations.
You do not need arrays to complete this program - and you do not yet have the tools to use arrays. Trying to use arrays will just make it harder!

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 Programming Questions!