Doing this project, students will have the chances to practice with the following:
Repetition structures: using for, while, or do..while loop
Selection structure: using if, if else, or switch statement
Read data from keyboard
Syntax: while (cin >> variable) { //the body of while loop… }
if the variable is of int or double, the loop will stop when variable is not a numberè
if the variable is of string, cin will read each word and the loop will stop when ending of lineè
Write data to the file
Read data from the file
Using manipulators: setw, fixed, showpoint, or precision, etc. to display data as format
Using user-defined functions
REQUIREMENT:
Provide the application named GradeApplication_yourLastName that helps the school to do the following tasks:
1. Grade a student
2. Print the grade report
TASK1 - Grade a student:
Grading a student task contains reading student’s name, student’s id and all the scores from the keyboard.
Assignment Number Max score
Quiz 15 6
Homework 10 10
Lab 7 30
Exam 3 100
Project 1 80
Discussion 20
Max scores 800
The grade will be determined as follows:
Your Total scores (TotalScores) = totalScoresOfQuizzes + totalScoresOfHomeworks + totalScoresOfLabs + totalScoresOfTests + scoresOfProject + scoresOfDiscussion
A totalScore >=90% MaxScores
B totalScore >=80% MaxScores
C totalScore >=70% MaxScores
D totalScore >=60% MaxScores l
F totalScore <60% MaxScores
After determining the grade, display on the screen as the following format (for example)
Student Name: Bill Washington
Student ID: 0097765
Quizzes: 6 4 4 6 6 4 6 4 4 6 4 2 4 6 4
Homework: 10 8.0 8.2 7.8 8.8 9.2 9.6 9.2 10 10
Labs: 30 28 29 30 26 28 30
Tests: 88 96 78
Project: 80
Discussion: 20
Total scores: 723.8
Max scores: 800
Percetage: 90.5
Grade: A
Also, write the result to the file name gradeReport.txt in the following format:
Bill Washington – 0097765 – 90.5% - A
The application should allows users to continue to use until the users want to exit.
TASK2: print the grade report
Open file gradeReport.txt
Read one line, write to screen
Read another line, write to screen until end of file
INSTRUCTION HOW TO DO THE PROJECT:
Follow the following step to start the project
-Read carefully the requirement to understand what tasks need to be done
-List the task to form the menu
-Each task, create one user-defined function
-Determine all actions need to be done for each function, create more functions if it is necessary
-Write pseudo-code of each function and of main function
-what information that we need to be provided from users? Choose data type for each.
For the quizze, homework, labs and tests, you should define arrays for each to hold all the scores.
Read Learning From Question to know how to define an array
-Write the pseudo-code
-Write the code for main, write the code for each function
-Compile and test
HOW TO TURN IN PROJECT:
Submit on eCampus the source files:
1. GradeApplication_yourLastName.cpp
2. Grade_Report.txt
Repetition structures: using for, while, or do..while loop
Selection structure: using if, if else, or switch statement
Read data from keyboard
Syntax: while (cin >> variable) { //the body of while loop… }
if the variable is of int or double, the loop will stop when variable is not a numberè
if the variable is of string, cin will read each word and the loop will stop when ending of lineè
Write data to the file
Read data from the file
Using manipulators: setw, fixed, showpoint, or precision, etc. to display data as format
Using user-defined functions
REQUIREMENT:
Provide the application named GradeApplication_yourLastName that helps the school to do the following tasks:
1. Grade a student
2. Print the grade report
TASK1 - Grade a student:
Grading a student task contains reading student’s name, student’s id and all the scores from the keyboard.
Assignment Number Max score
Quiz 15 6
Homework 10 10
Lab 7 30
Exam 3 100
Project 1 80
Discussion 20
Max scores 800
The grade will be determined as follows:
Your Total scores (TotalScores) = totalScoresOfQuizzes + totalScoresOfHomeworks + totalScoresOfLabs + totalScoresOfTests + scoresOfProject + scoresOfDiscussion
A totalScore >=90% MaxScores
B totalScore >=80% MaxScores
C totalScore >=70% MaxScores
D totalScore >=60% MaxScores l
F totalScore <60% MaxScores
After determining the grade, display on the screen as the following format (for example)
Student Name: Bill Washington
Student ID: 0097765
Quizzes: 6 4 4 6 6 4 6 4 4 6 4 2 4 6 4
Homework: 10 8.0 8.2 7.8 8.8 9.2 9.6 9.2 10 10
Labs: 30 28 29 30 26 28 30
Tests: 88 96 78
Project: 80
Discussion: 20
Total scores: 723.8
Max scores: 800
Percetage: 90.5
Grade: A
Also, write the result to the file name gradeReport.txt in the following format:
Bill Washington – 0097765 – 90.5% - A
The application should allows users to continue to use until the users want to exit.
TASK2: print the grade report
Open file gradeReport.txt
Read one line, write to screen
Read another line, write to screen until end of file
INSTRUCTION HOW TO DO THE PROJECT:
Follow the following step to start the project
-Read carefully the requirement to understand what tasks need to be done
-List the task to form the menu
-Each task, create one user-defined function
-Determine all actions need to be done for each function, create more functions if it is necessary
-Write pseudo-code of each function and of main function
-what information that we need to be provided from users? Choose data type for each.
For the quizze, homework, labs and tests, you should define arrays for each to hold all the scores.
Read Learning From Question to know how to define an array
-Write the pseudo-code
-Write the code for main, write the code for each function
-Compile and test
HOW TO TURN IN PROJECT:
Submit on eCampus the source files:
1. GradeApplication_yourLastName.cpp
2. Grade_Report.txt
Need Solution https://gum.co/OujrG