Question: I'm trying to put some restriction on the below C program, but it doesn't seem to work. It should ask for new input if the

I'm trying to put some restriction on the below C program, but it doesn't seem to work.

It should ask for new input if the name is not 4 caracters, if the year is not in the interval 2009-2040 or if the GPA is not between 0-255.

Also, If it is possible, I would like it to display the student like the first output, but right now it says the same number before each student.

I'm trying to put some restriction on the below C program, butit doesn't seem to work. It should ask for new input if

the name is not 4 caracters, if the year is not inthe interval 2009-2040 or if the GPA is not between 0-255. Also,

s0000 John 2009 Autumn 200 s0001 Mary 2040 Spring 250 Average GPA 225.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!