Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Program 1 A local school system must report average weekly attendance percentages to the state on each Friday afternoon. Your task is to write a

Program 1 A local school system must report average weekly attendance percentages to the state on each Friday afternoon. Your task is to write a program that takes multiple school's attendance numbers for a week and computes the information needed for the report to the state. Your program should first ask the user how many schools there are in the district. The program should then ask the user to enter each day's attendance numbers for each school for the week as well as the number of students enrolled in that school. The program should output the average attendance for the week for each school as well as the average percentage of students present that week. You must use nested FOR loops to collect the attendance input from the user. You are NOT allowed to use an array for any purpose in your program. All console output should have meaningful descriptions. While you cant yet recover from errors generated by users entering character data for input, make sure you validate numbers entered by the user are within appropriate numeric ranges for correct input to the program. For example, the program wouldn't do anything if there were 0 schools entered. There are other cases to figure out on your own. Program 1 sample execution & output (user input shown in bold): How many schools do you have in your district: 2 Enter data for school 1 How many students are enrolled in school 1: 580 Enter the attendance for day 1: 502 Enter the attendance for day 2: 521 Enter the attendance for day 3: 550 Enter the attendance for day 4: 555 Enter the attendance for day 5: 568 School 1 had an average attendance of 539 students which means there were 92.93% of all students present Enter data for school 2 How many students are enrolled in school 2: 350 Enter the attendance for day 1: 302 Enter the attendance for day 2: 332 Enter the attendance for day 3: 350 Enter the attendance for day 4: 325 Enter the attendance for day 5: 338 School 2 had an average attendance of 329 students which means there were 94.0% of all students present School 2 had the best attendance this week with 94.0% attendance.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students explore these related Databases questions