Computers and Technology
Computers and Technology, 06.11.2019 22:31, dmc79765

The american red cross wants you to write a program that will calculate the average pints of blood donated during a blood drive. the program should take in the number of pints donated during the drive, up to twenty-four hour drive period, from an input file, blooddrive. txt. the average pints, highest pints, and lowest pints donated during that period should be calculated and written to a file called bloodresults. txt. we will only run the program once so a yes/no loop is not needed.

step 1: note that the gethigh, getlow, and getaverage functions do not change. we need to modify modules getpints and displayinfo to meet the new requirements. complete the pseudocode below for the two modules according to instructions:

in the getpints module (notice there is a new pass-by-reference parameter count)

declare an input file with the name bloodinfile.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 13:30, juliajordan427
Best laptops for college [$100-$500 range]?
Answers: 2
image
Computers and Technology, 23.06.2019 13:30, alannaamarriee
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
image
Computers and Technology, 23.06.2019 18:30, janny48
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
image
Computers and Technology, 24.06.2019 04:10, kris1920
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
Do you know the correct answer?
The american red cross wants you to write a program that will calculate the average pints of blood d...

Questions in other subjects:

Konu
Arts, 13.10.2020 15:01
Konu
Law, 13.10.2020 15:01
Konu
Mathematics, 13.10.2020 15:01