Question: Assignment 4: Student Registry Menu Create a program that allows the user to display one of two input files. These files will contain information from

Assignment 4: Student Registry Menu

Create a program that allows the user to display one of two input files. These files will contain information from a Student Registry. One file will contain the full student name and the students grades for Homework Average, Midterm, and Fin Exm. The second file will contain the students full name and their present or absent totals. The sample input files are included. Your program should output according to the option the user selects.

Console Menu

COMMAND MENU

G - Student Grades

A - Student Attendance

Q - Exit program

Console Student Grades

Student Name Homework Mdtrm Fin Exm Course Grade

Mickey Mouse 100.00 100.00 100.00 100.00

Minnie Mouse 91.35 100.00 89.50 92.62

Donald Duck 66.85 100.00 89.50 79.14

Daisy Duck 93.50 95.00 95.00 94.18

Class Average: 91.48

Progressing Complete!!!!!

Console Student Attendance

Student Name Present Perc% Absent Perc%

Mickey Mouse 14 100.00 0 0.00

Minnie Mouse 10 71.43 4 28.57

Donald Duck 10 71.43 4 28.57

Daisy Duck 13 92.86 1 7.14

Class Present Average: 83.93%

Class Absent Average: 16.07%

Progressing Complete!!!!!

Specifications

  • You will need to use do.while, while, and/or for loops.
  • You must nest your loops.
  • Readability is important. Ensure your output uses proper spacing and positioning.

Assignment 4 Input Files

Attendance File_________________________________________________________

Mickey Mouse 14 0

Minnie Mouse 10 4

Donald Duck 10 4

Daisy Duck 13 1

Grade File_____________________________________________________________

Mickey Mouse 100.0 100.0 100.0

Minnie Mouse 91.35 100.0 89.5

Donald Duck 66.85 100 89.5

Daisy Duck 93.5 95.0 95

Shell CPP Program File

This is a shell starter program. This should be a beginning point for programs developed. Please familiarize yourself with the layout and structure. Assume this is a foundational standard from your employer.

//**************************************************************

// Author: _____

// Date: _______

// Description: Assignment ____

// Enter a description of the project.

//**************************************************************

// Header files

#include // Needed for cin and cout

#include // Needed for String Variables

#include // Needed for Input and Output files

// using namespaces

using namespace std;

// Constants

const double PERCENT_BONUS = 1.5;

// Start of Main Function

int main()

{

// Declare Variables

int field1 = 0;

double field2 = 0;

char field3 = ' ';

string field4 = " ";

// Declare file stream variables such as the following

ifstream inData;

// Open the files needed

inData.Open("input.dat"); //open the input file

// User Inputs

cout << "Enter Data." << endl;

cin >> field1;

// Calculations

field1 = field1 * 10;

// Outputs

cout << "Area = " << area << endl;

// Close files

inData.close();

return 0;

} // End Main Function

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!