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.
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.
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 program that allows the user to enter an integer N (between 1 and 20) and a list of 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.:
Transcribed Image Text:Write an assembly language program that allows the user to enter an integer N (between 1 and 20) and a list of
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 CTĒMPSS 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.:
A CAWINDOWS\system32\cmd.exe
Enter the number of temperatures N (between 1 and 20): -1
Error. The value of N must be between 1 and 20. Try again!
Enter the number of temperatures N (between 1 and 20): 21
Error. The value of N must be between 1 and 20. Try again!
Enter the number of temperatures N (between 1 and 20): 4
Enter the temperatures in Celsius:
33
|-3
|-9
21
The temperatures and their Min and Max in Celsius and in Fahrenheit are:
Celsius
Fahrenheit
+33
+91
-3
+27
-9
+16
+21
+69
Min
Мах
-9
+16
+33
+91
Press any key to continue ..
Process by which instructions are given to a computer, software program, or application using code.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.