Name: ____________________________________________________ Alpha: _____________________

Describe help received: _________________________________________________________________

  1. [100Pts] The below information is taken directly from the Academic Dean's Homepage describing criteria for the Superintendent's List and the Dean's List.
    Superintendent's List. Midshipmen who meet the following criteria will be placed on the Superintendent's List 
    
    SQPR of at least 3.4 with 
    no grade of D, F, or I in any course, 
    A in Conduct, 
    A in Military Performance, and 
    A or B in Physical Education and A or B on Physical Readiness Test. 
    
    Dean's List. Midshipmen who meet the following criteria and are not on the Superintendent's List will be placed on the Dean's List:
     
    SQPR of at least 3.4 with 
    no grade of D, F, or I in any course, 
    B in Conduct, 
    B in Military Performance, and 
    C or better in Physical Education and C or better on Physical Readiness Test..
    
    Assume the MIDS database can produce the following record:
    (Name   SQPR   flag   conduct   MP   PE   PRT)
    where:
    Name: last name of midshipman
    Sqpr: students quality point ratio
    Flag: contains a 1 if midshipman has a D, F, or I in any course. Contains 0 otherwise.
    Conduct: holds a character 'A' thru 'F' (excluding 'E') for conduct grade.
    MP: Military performance (same as conduct)
    PE: physical education (same as conduct)
    PRT: physical readiness test (same as conduct)
    Write a program that will query the user to type a record in the format prescribed format and produce exactly one of "Superintendent's List", "Dean's List", and "NQ (not qualified)" based on the criteria described on the Dean's webpage. Here's some examples:

    Sample runs (user input in red)
    ~/$ ./hw
    (Jones 3.53 0 A B B A)
    Midshipman Jones:  Dean's List  
    ~/$ ./hw
    (Smith 3.41 0 A A B A)
    Midshipman Smith: Superintendent's List  
    ~/$ ./hw
    (Brown 2.6 1 C C D A)
    Midshipman Brown: NQ (not qualified)  
Turn in a printout of this cover sheet, a printout of the source-code of your program, and a printout of a screen capture showing your program running on all three of the test inputs shown above.