Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write it in C programming Write a program that asks three students about the grade they received in their classes then prints the GPA of

image text in transcribed
write it in C programming
Write a program that asks three students about the grade they received in their classes then prints the GPA of each student. A student has an indefinite number of grades; they enter the sentinel when they no longer have grades. The classes have the same number of credits. The grades input by the user are (4,3,2,1,0). If the user enters an invalid grade, consider it as grade 0 In this program, it is known that there wil be three students and each student has an indefinite number of grades. What's the suitable loop structure for this program? Below is a sample output. Include this output as one of your test cases. Student 1 Class 1: 4 Class 2: 3 Class 3: 2 Class 4: 1 Class 5: -1 Student 2 Class 1: 3 Class 2 -1 Student 3 Class 1: 3 Class 2: 4 Class 3: 0 Class 4:-1 Student 1 GPA: 2.50 Student 2 GPA: 3.00 Student 3 GPA: 2.33

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

Step: 3

blur-text-image

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

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

3. What might you have done differently

Answered: 1 week ago

Question

4. Did you rethink your decision?

Answered: 1 week ago

Question

3. Did you seek anyones advice?

Answered: 1 week ago