The local airport has installed two new security scanners (Scan-2-Fly and R-U-Safe) that take the emperatures of passengers as they go through security. Each scanner creates a file with a list of the temperatures (with 2 decimal places) taken through the day. For privacy reasons, only the temperatures are recorded with no other passenger data since the airport is sharing the statistical analysis of the readings with the whole world. (Any passenger with a temperature of 101 °F or above is dealt with immediately and is not allowed to fly.) The airport can handle up to 2,000 passengers daily. Read and combine the temperature files from the scanners into one array. The scanner file names are Scan2Fly.txt" and “RUSafe.txt". (You do not know how many (if any) temperatures will be in either file, but be assured that not more than 2,000 people total will go through the airport to fly in one day.) [In order to test your program, you are going to have to make some sample test files. Either use a text editor or set up a program to randomly generate the files. Be sure to use numbers that cover all scenarios, since you will not know what the files will have for temperatures when the program is graded. It is not necessary to submit any test files or file generation programs to D2L since different values will be used when programs are graded.] The program must address the following items in order. Display the results on the screen. [All output must be neatly displayed. Temperatures must have 2 decimal places.] Display each temperature on the screen as it is read from its file. • Identify how many people passed through each scanner. • How many (if any) people were not allowed to fly because their temperature was 101°F° or above? • What was the highest temperature reading? • What was the lowest temperature reading? • What was the average temperature reading? • List the readings (if any) that were at dangerous human temperatures. [Any reading below 95°F (hypothermia) or above 106.7°F (hyperpyrexia) would be in a critical life-threatening state.] • Display the list of all temperatures in order from lowest to highest temperature. Display each temperature (show 2 decimal places) only once. If a temperature appears more than once in the day, display the number of times it occurred in parentheses behind the temperature. Do not use the parentheses when there is only one occurrence of a temperature. LINË UP THE DECIMAL PLACES. For example: Temp (F) Do not remove the duplicates from the array. Just print each temperature only once with a duplicate count as shown. 96.47 97.75 (3) 100.30 101.41 (2) • Write the sorted list of temperatures (with NO duplicate numbers and no count of duplicates) to a file named “passenger_temps.txt". Additional Requirements: The code to sort must be placed in a function. (Either bubble sort or selection sort may be used.) You may use as many additional functions as you wish, but the only required function is the sort code. • The only global items that can be used are #define preprocessor directives. As always, be sure to include all required comments. Be creative and have as much fun as you want, but first be sure that ALL above requirements are met

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter6: System Integration And Performance
Section: Chapter Questions
Problem 21VE
icon
Related questions
Question

This needs to be written in C programming. It is a practice program and it is not graded. So if you could help that would be great. I just need someone to show me what the program looks like.

4:57
HGE 46%
The local airport has installed two new security scanners (Scan-2-Fly and R-U-Safe) that take the
temperatures of passengers as they go through security. Each scanner creates a file with a list of the
temperatures (with 2 decimal places) taken through the day. For privacy reasons, only the temperatures are
recorded with no other passenger data since the airport is sharing the statistical analysis of the readings with
the whole world. (Any passenger with a temperature of 101 °F or above is dealt with immediately and is not
allowed to fly.) The airport can handle up to 2,000 passengers daily.
Read and combine the temperature files from the scanners into one array. The scanner file names are
"Scan2Fly.txt" and “RUSafe.txt". (You do not know how many (if any) temperatures will be in either file,
but be assured that not more than 2,000 people total will go through the airport to fly in one day.) [In order
to test your program, you are going to have to make some sample test files. Either use a text editor or set up
a program to randomly generate the files. Be sure to use numbers that cover all scenarios, since you will not
know what the files will have for temperatures when the program is graded. It is not necessary to submit any
test files or file generation programs to D2L since different values will be used when programs are graded.]
The program must address the following items in order. Display the results on the screen.
[All output must be neatly displayed. Temperatures must have 2 decimal places.]
Display each temperature on the screen as it is read from its file.
Identify how many people passed through each scanner.
How many (if any) people were not allowed to fly because their temperature was 101°F° or above?
What was the highest temperature reading?
What was the lowest temperature reading?
What was the average temperature reading?
List the readings (if any) that were at dangerous human temperatures. [Any reading below 95°F
(hypothermia) or above 106.7°F (hyperpyrexia) would be in a critical life-threatening state.]
Display the list of all temperatures in order from lowest to highest temperature. Display each
temperature (show 2 decimal places) only once. If a temperature appears more than once in the day,
display the number of times it occurred in parentheses behind the temperature. Do not use the
parentheses when there is only one occurrence of a temperature. LINE UP THE DECIMAL PLACES.
For example: Temp (F)
Do not remove the duplicates from the
array. Just print each temperature only
once with a duplicate count as shown.
96.47
97.75 (3)
100.30
101.41 (2)
Write the sorted list of temperatures (with NO duplicate numbers and no count of duplicates) to a file
named “passenger_temps.txt".
Additional Requirements:
The code to sort must be placed in a function. (Either bubble sort or selection sort may be used.) You
may use as many additional functions as you wish, but the only required function is the sort code.
The only global items that can be used are #define preprocessor directives.
As always, be sure to include all required comments.
Be creative and have as much fun as you want, but first be sure that ALL above requirements are met.
II
Transcribed Image Text:4:57 HGE 46% The local airport has installed two new security scanners (Scan-2-Fly and R-U-Safe) that take the temperatures of passengers as they go through security. Each scanner creates a file with a list of the temperatures (with 2 decimal places) taken through the day. For privacy reasons, only the temperatures are recorded with no other passenger data since the airport is sharing the statistical analysis of the readings with the whole world. (Any passenger with a temperature of 101 °F or above is dealt with immediately and is not allowed to fly.) The airport can handle up to 2,000 passengers daily. Read and combine the temperature files from the scanners into one array. The scanner file names are "Scan2Fly.txt" and “RUSafe.txt". (You do not know how many (if any) temperatures will be in either file, but be assured that not more than 2,000 people total will go through the airport to fly in one day.) [In order to test your program, you are going to have to make some sample test files. Either use a text editor or set up a program to randomly generate the files. Be sure to use numbers that cover all scenarios, since you will not know what the files will have for temperatures when the program is graded. It is not necessary to submit any test files or file generation programs to D2L since different values will be used when programs are graded.] The program must address the following items in order. Display the results on the screen. [All output must be neatly displayed. Temperatures must have 2 decimal places.] Display each temperature on the screen as it is read from its file. Identify how many people passed through each scanner. How many (if any) people were not allowed to fly because their temperature was 101°F° or above? What was the highest temperature reading? What was the lowest temperature reading? What was the average temperature reading? List the readings (if any) that were at dangerous human temperatures. [Any reading below 95°F (hypothermia) or above 106.7°F (hyperpyrexia) would be in a critical life-threatening state.] Display the list of all temperatures in order from lowest to highest temperature. Display each temperature (show 2 decimal places) only once. If a temperature appears more than once in the day, display the number of times it occurred in parentheses behind the temperature. Do not use the parentheses when there is only one occurrence of a temperature. LINE UP THE DECIMAL PLACES. For example: Temp (F) Do not remove the duplicates from the array. Just print each temperature only once with a duplicate count as shown. 96.47 97.75 (3) 100.30 101.41 (2) Write the sorted list of temperatures (with NO duplicate numbers and no count of duplicates) to a file named “passenger_temps.txt". Additional Requirements: The code to sort must be placed in a function. (Either bubble sort or selection sort may be used.) You may use as many additional functions as you wish, but the only required function is the sort code. The only global items that can be used are #define preprocessor directives. As always, be sure to include all required comments. Be creative and have as much fun as you want, but first be sure that ALL above requirements are met. II
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 11 images

Blurred answer
Knowledge Booster
Structure chart
Learn more about
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning