[SOLVED] CS150 Lab 21

20.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab-21-mviw9x.zip (434.3 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
5/5 - (4 votes)

Create a program that defines a struct for a student. The following data should be part of the struct: studentID (int), gpa(double), fullName(string), units(int).
Instantiate (create) two students and have the user type in information for each, then print both back to the screen afterwards. Input validation: studentID should be positive and have 4 digits (no leading zeros), GPA should be between 0 and 4 (inclusive), units should be positive. Have any invalid inputs reentered.
Test your work thoroughly, including testing input validation and different values in each of the two student structs.

  • Lab-21-mviw9x.zip