Question: Write a function called Admission that accepts three parameters School Score Ss (double). Written Test Score 75 (double) and Interview Score Is (double). The function



Write a function called Admission that accepts three parameters School Score Ss (double). Written Test Score 75 (double) and Interview Score Is (double). The function will calculate total score as follows: total score School Score Written Test Score interview Score Then, the function will return admitted college (stringas follows: 280 admitted college Engineering IT Others R0 to 89 CSO write the main program to prompt the user to enter the School score (double), the written Test Score (double) and the Interview Score (double). The program will then display the admitted college by calling the function defined in Question 6. Follow the sample below. SALE INPUT/OUTPUT Enter School, Weissen sess and Interview Scores 65 12 10 Admitted College is inginning Write a function named Bra Storities), that takes as parameter a two-dimensional array named bue of size 435. By referring to the given Figure, the rows in the array bus represent the bus routes and the columns represent the days that the buses run. The numbers in the slots of the array show the number of passengers that were on a given route on a given day. The function will perform the following: Mon Tue Wed Thu Fri 1. For each route, print the total number of 1 2 4 passengers. 12 9 7 10 2. For each route, find and print the largest number of passengers 5 1 3. For all routes and all days, find and print the largest number of passengers. 20 15 18 31 14 0 3 o 8 9 1 N 3 4 Routes N 3 6 9 0 8 11 A file named Description. brt contains unknown number of metal sheets dimensions and description (maximum no. of records is 30). Each line in the file consists of Metal sheet name (string), width (float), length (float) and height (float). Write a program that reads the dimensions and add the volume only to an array. The volume is equal to width x length x height. Your program should calculate and display the following (see screen output): The number of Metal sheets in the file. The average volume for all metal sheets. The smallest volume. Number of metal sheets with above average volumes. Description.ort (Input file) ALUM1 1.25 2.25 .50 ALUM2 2.54 3.66 .93 ALUM3 1.4 .3 .2 ALUM4 3.1 5.1 .74 Screen Output There are 4 metal sheets. The average volume = 5.45 The smallest volume 0.08 There are 2 sheets with above average volume
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
