cplusplus.com
C++ : Forum : Beginners : TEST YOUR PROGRAMMING SKILLS - challenge
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


question TEST YOUR PROGRAMMING SKILLS - challenge

Rynomite04 (10)
Define a structure for a student that has two members: stu_id e.g. S123 and GPA. Declare a table to store 10 students in main() and assume that the table has been populated with data. Use a loop to go through each structure in the table and print out both members. Also check the value of GPA. If the GPA is less than 2.5, output a statement asking the student to meet with the instructor, if the GPA is greater or equal to 2.5 but below 3.0, output a statement telling the student he or she could do better, and if the GPA is between 3.0 and 3.3 output a statement challenging the student to reach for 3.5.
Last edited on
jsmith (5804)
This is a trivial "challenge" for software professionals. If you are stuck with your homework assignment, post your non-working code and someone will help you out.
Topic archived. No new replies allowed.