Do not share your solution with others. Your codes will be checked by special software for code similarity, if the code similarity between any two or more submissions is higher than 90, the codes involved will also examined and compared by eye. If it is convinced that the similarity between two codes is not merely a coincidence, all involved HWs will get as the grade. • If the program does not give output, your assignment will be graded as o. • Your assignment will be compiled in Dev C while evaluating, so make sure your program runs in Dev Cenvironment Question: For MATH101 course, course instructor wants a program that finds the student having the highest average grade. Program should first ask the number of students (n) in the class. Then, should take n students' student ID, two midterm exam scores and one final grade. Afterwards, it should calculate the average according to the formula given below. Finally, the program should print the student ID and average grade of who has the highest average. Average= %20 of 14 midterm + %30 of 2" midterm + %50 of final Write a complete program that finds highest average among any given number of studerits and prints them as given in the sample run. You must print only two digits of average after decimal point. Use at least one appropriate loop statement in your code Sample Run:
How many students take the course?: 10 Enter 1. students ID: 123 Enter three grades: 85 78 80 Enter 2. students ID: 456 Enter three grades: 65 55 7e Enter 3. students ID: 789 Enter three grades: 45 12 35 Enter 4. students ID: 963 Enter three grades: 95 65 70 Output: Student 741 has the highest average as 90.30 868 $ 4 % 5 6. & 7 E R. T Y U 1
Do not share your solution with others. Your codes will be checked by special software for code similarity, if the code
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Do not share your solution with others. Your codes will be checked by special software for code similarity, if the code
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!