Question: Write a QBasic program called RAINFALL that computes the average daily rainfall (in inches) for any number of days. The user should first input the

 Write a QBasic program called RAINFALL that computes the average daily

Write a QBasic program called RAINFALL that computes the average daily rainfall (in inches) for any number of days. The user should first input the number of days, then use that number as the size of the array. The user should then enter the rainfall in inches for each day, one by one. The data should be stored in the one- dimensional array. The program should compute and display the average daily rainfall. Use the PRINT USING statement to display only 3 decimal places in this average. Finally, the program should display the number of each day that has BELOW average rainfall. 1. 2. 3. 4. Submit your bas file in Blackboard. Sample test data: low many days of rainfall do you wish to enter? 4 Day 1 rainfa in inches? 3.1 Day 2 rainfall in inches? 2.7 Day 3 rainfal in inches? 1.1 Day 4 rainfal in inches? 0 The average daily rainfall was 1.725 inches. The following were BELOW average days Day3 Day 4

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