|
|
|
|
|
|
|
Print Message Indicating Status |
|
|
|
|
|
|
|
|
Print average
IF average >= 60.0
Print Passing
IF average < 70.0
Print but marginal
Print .
ELSE
Print Failing. |
|
|
|
|
|
| Variable | | Name | Data Type | Description | | average | float | Average of three test scores | | studentID | int | Student's identification number | | test1 | int | Score for first test | | test2 | int | Score for second test | | test3 | int | Score for third test | | dataOK | Boolean | TRUE if data is correct |
|
|
|
|
|
|
//******************************************************************
// Notices program
// This program determines (1) a student's average based on three
// test scores and (2) the student's passing/failing status
//******************************************************************
#include <iostream.h>
#include <iomanip.h> // For setprecision()
|
|
|
|
|
|