and max both in Celsius and in Fahrenheit. The formula for converting from Celsius to Fahrenheit is given by: Fahrenheit = Celsius * 9/5 + 32 [Note: take only the quotient of the division by 5, ignore the fraction.] Your program must define and use the following procedures: (a) Procedure ReadTemps: reads the value of N and the N temperatures in Celsius and stores the N temperatures in a defined array CTEMPS. If there is an error in the value of N (not between 1 and 20) then it displays an error message and asks the user to enter N again and again until the entered value is correct. While reading the N temperatures, the procedure also determines the positions MinIndex and MaxIndex in the array CTEMPS of the Min and Max temperatures.
(use irvne32 library) labrWrite an assembly language
N integer temperatures in Celsius. The program then displays on the screen the N temperatures and their min
and max both in Celsius and in Fahrenheit. The formula for converting from Celsius to Fahrenheit is given by:
Fahrenheit = Celsius * 9/5 + 32 [Note: take only the quotient of the division by 5, ignore the fraction.]
Your program must define and use the following procedures:
(a) Procedure ReadTemps: reads the value of N and the N temperatures in Celsius and stores the N
temperatures in a defined array CTEMPS. If there is an error in the value of N (not between 1 and 20) then
it displays an error message and asks the user to enter N again and again until the entered value is correct.
While reading the N temperatures, the procedure also determines the positions MinIndex and MaxIndex in
the array CTEMPS of the Min and Max temperatures.
(b) Procedure ConvertTemps: converts the N temperatures from Celsius to Fahrenheit. The converted N
temperatures to Fahrenheit must be stored in a second defined array FTEMPS.
(c) Procedure DisplayTemps: displays the N temperatures and their Min and Max both in Celsius and in
Fahrenheit as shown in the following sample run.:
Step by step
Solved in 2 steps