Page 1 of 1

Program in C: 100 >= A >= 90 90 > B >= 80 80 > C >= 70 70 > D >= 60 F < 60 Write a program that prompts the user to ente

Posted: Fri Jul 01, 2022 5:45 am
by answerhappygod
Program in C:
100 >= A >= 90
90 > B >= 80
80 > C >= 70
70 > D >= 60
F < 60
Write a program that prompts the user to enter8 scores (Include input validation to ensurethat all values are within 0 to 100 inclusive.).
use a pointer to dynamically allocate an array to hold thescores,
calculate the final score based on the weights provided by thesyllabus. This value should be stored in a dynamically allocatedvariable using another pointer.
Determine final grade based on the weights provided by thesyllabus. Create a function that accepts the final numerical scorereturns the corresponding letter grade.
This function does not require apointer as a parameter.
Use an if else if statement withinthe function to determine the letter grade.
WEIGHTS:
6 HW - 35%
1 Test 1 - 30%
1 Test 2 - 35%