Question
Purpose: The purpose of this assignment is to use an IDE (Integrated development environment) to create a welldocumented C++ program that utilizes user interactions, loops,
Purpose: The purpose of this assignment is to use an IDE (Integrated development environment) to create a welldocumented C++ program that utilizes user interactions, loops, an input file, and functions
Specifics: For this assignment you are required to write a modular C++ program that processes student grades. The program requires you to use all of the programming structure we've discussed so far in class (e.g. simple sequence, decisions, and looping) and incorporate functions that perform specific actions for your program.
Background: To begin with, your program needs to use a data file that I created that contains student data. Each line of the file has the following data in order:
First name
Last name
Test One
Test Two
Assignment 1
Assignment 2
Assignment 3
Assignment 4
a number representing the number of classes they attended out of 30 An example of this: Jane Doe 67 89 90 99 98 78
The teacher's class policy is that students are required to take two tests and complete 4 assignments. All four of those assignments together bear as much weight on the final grade as a single test (hint: add the assignments and then average with tests). You will also need to determine if the student has met minimum requirements for passing the class and their final grade. Minimum requirements involve attendance and minimum grade performance - if the student has attended less than 20 classes, it is an automatic failure. If a student's grade average is lower than 60%, the student is considered to have failed also, no matter how many classes they attended. The teacher wants to see (on the monitor) for each student, the following:
First name and Last Name
Test Scores and Assignment Scores
Final average
Letter grade corresponding to the final average (use normal grading scale)
A message letting him know if they pass or fail or fail due to attendance
Format the output so the information is displayed in an attractive and readable manner.
Your program should do the following:
Initialize the environment.
Open the data file (file can be found here). Save this file in the same folder where you store your program.
Process one record at a time using a loop.
Perform proper cleanup after all the records are processed.
Other Requirements: 1. The program must handle a completely variable number of students. My grades.txt file could have one student or it could have 40 or somewhere in between. I may test your program with a different number of students than you use for testing. 2. The program must have three functions other than main. Please include the following functions: a) An output function that creates the report header. b) A function that calculates the students average. c) A function that determines whether the students pass or fail. Only one function may be a void function or have an empty parameter list. In other words, you need functions that are passing things in and out. Try to use reference parameter(s) if you need to return more than one value from a function. Absolutely no global variables may be used! Step 1: Develop and document your program by writing pseudocode or create a flowchart. Step 2: Develop a hierarchy chart to document function interaction. Step 3: Type your code into the IDE (e.g. Dev c++, visual studio, etc) Step 4: Compile your code and execute. You may need to fix errors. Looks at your output and make it meaningful for the students using your program. Do a test run with meaningful data and correct any errors you encounter.
I have this assignment that I am struggling with. I need a program typed but do not understand functions. I also need the program to input a file. Please help.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started