Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

here is the coding project to do. Project 1 The purpose of this assignment is to get experience with 1D, 2D, also parallel arrays, for,

here is the coding project to do.

image text in transcribed

Project 1 The purpose of this assignment is to get experience with 1D, 2D, also parallel arrays, for, switch, while and Your goal is to create a program that reads the CPSC121data.txt file. After that the user can select from a choice menu that handles the user's choices as descried in the details below The project requirements It is an important part of your grade that you design your program according to the following requirements Step 1) Create a pseudo code to list all of the actions to execute along with the order these actions should occur. Include your pseudo code on the top of your cpp file along with your name and Project# Step 2) Write the source code according to your pseudo code and the following project requirements: 1. Declare the number of scores as a const. This const is to be used as a size of your array. Use three arrays: a one-dimensional array to store the students names, a (parallel) two-dimensional array to store the test scores, and a parallel one- dimensional array to store letter grades. 2. Create the first for loop to read the data from the data file into arrays (1D array student names and 2D array student scores). Note: A comma serves as a delimiter, so you would need to find a way to deal with it in your code (possible ways, use ignore function or use a char declaration to skip it inside arrays) 3. If the file is not found, the program needs to terminate with this error, "Data file not found" Use the exit() function to terminate the program. 4. Create another loop to assign letter grade to each student into 1D array 5. Once the data has been read into the arrays, display a menu with choices to the user as follows below. This needs to be setup as a do while and repeat the program until the user selects the menu choice Q (Quit) Please select one menu item: Display all students' names, scores, and their grades Enter A Display student name with the overall highest score (overall total points) in the class H Search by student name to display ail scores for a particular student S Generate StudentGrades.trt and save students' names and letter grades G Quit, Enter Q Then set up a switch statement with these cases to handle the user's selection. Step 3) Include your console output screenshots that cover all user selection menu from above. Project1 (7).pdf Project 1 (.pdf project 1 (5).pdf Project 1 The purpose of this assignment is to get experience with 1D, 2D, also parallel arrays, for, switch, while and Your goal is to create a program that reads the CPSC121data.txt file. After that the user can select from a choice menu that handles the user's choices as descried in the details below The project requirements It is an important part of your grade that you design your program according to the following requirements Step 1) Create a pseudo code to list all of the actions to execute along with the order these actions should occur. Include your pseudo code on the top of your cpp file along with your name and Project# Step 2) Write the source code according to your pseudo code and the following project requirements: 1. Declare the number of scores as a const. This const is to be used as a size of your array. Use three arrays: a one-dimensional array to store the students names, a (parallel) two-dimensional array to store the test scores, and a parallel one- dimensional array to store letter grades. 2. Create the first for loop to read the data from the data file into arrays (1D array student names and 2D array student scores). Note: A comma serves as a delimiter, so you would need to find a way to deal with it in your code (possible ways, use ignore function or use a char declaration to skip it inside arrays) 3. If the file is not found, the program needs to terminate with this error, "Data file not found" Use the exit() function to terminate the program. 4. Create another loop to assign letter grade to each student into 1D array 5. Once the data has been read into the arrays, display a menu with choices to the user as follows below. This needs to be setup as a do while and repeat the program until the user selects the menu choice Q (Quit) Please select one menu item: Display all students' names, scores, and their grades Enter A Display student name with the overall highest score (overall total points) in the class H Search by student name to display ail scores for a particular student S Generate StudentGrades.trt and save students' names and letter grades G Quit, Enter Q Then set up a switch statement with these cases to handle the user's selection. Step 3) Include your console output screenshots that cover all user selection menu from above. Project1 (7).pdf Project 1 (.pdf project 1 (5).pdf

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions