Write a program that uses a structure to store

Assignment Help C/C++ Programming
Reference no: EM132100996

Please use C++ programming

Course Grade Project

Write a program that uses a structure to store the following data:

Member Name Description
Name Student name (a structure)
idNum Student ID number
testArrayPtr Pointer to an array of test scores
average Average test score
grade Course grade

Data file name: CIT237StudentGrades.txt

If a data file exists, the program should read the existing data and store in the structures.

The program should keep a list of test scores for a group of students.

It should ask the user how many test scores there are to be and how many students there are in addition to any that have been read (if any). It should then dynamically allocate an array of structures.

Each structure's testArrayPtr member should point to a dynamically allocated array that will hold the test scores.

After the arrays have been dynamically allocated, the program should ask for the names and ID numbers for all the students. It should loop through the students and ask for the test scores for each student.

The average test score should be calculated and stored in the averagemember of each structure. The course grade should be computed on the basis of the following grading scale:

Average Test Grade Course Grade
91-100 A
81-90 B
71-80 C
61-70 D
60 OR BELOW F


The course grade should then be stored in the grade member of each structure. Once all this data is calculated, a table should be displayed on the screen listing each student's name, ID number, average test score, and course grade.

*At the end of the program, the data should be stored in a file.

Your program should have:

comments

header file

functions

input validation

Input Validation: Be sure all the data for each student is entered. Do not accept negative numbers for any test score. Make sure the first letter of the student first and last names are capitalized.

Reference no: EM132100996

Questions Cloud

Describe the strengths and weaknesses of model : Describe the strengths and weaknesses of each model. Give your recommendation of which model would be best suited for a group of accountants and WHY?
Focus your analysis on procurement or acquisition practices : Focus your analysis on procurement or acquisition practices of the company you selected for the final project and the types of materials that the company uses
What is her weight while standing on earth : What is her weight while standing on earth? Express your answer to two significant figures and include the appropriate units.
What would the present value : What would the present value of $850 payment made in 10 years when the discount rate is 8%?
Write a program that uses a structure to store : It should ask the user how many test scores there are to be and how many students there are in addition to any that have been read (if any).
What is the formula for value of operations : What is the formula for value of operations using FCF and WACC?
Determining the duration of university course : Kristy has to make rental payments of $1,000 at the start of every month, throughout the fouryear duration of her university course.
Describe the duration gap for interest rate risk measurement : Describe the duration gap for interest rate risk measurement? Why duration a good approximation for interest rate risk?
Give a solution using the three stage decision making : Give a solution using the three stage decision making model developed to Herbert Simon together with the additional two stages of decision making.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Design a class house that defines a house on a street

Writing a C++ code, its a beginner level code. Design a class house that defines a house on a street. A house has a house number and an (x,y) location, where x and y are numbers between -10 and 10. the key member is plot.

  Advantages and disadvantages of using iso standards

Discussion Questions from the book "A Guide to Computer Forensics and Investigations" 3rd Edition

  Using songs.dat in our folder

Using songs.dat in our folder on the P: drive, construct a playlist of 10 random songs. Use a struct to hold the song data (name and time in seconds), and output the playlist (song name and time,

  Research paper on overloading operators

Write a 2 page research paper (excluding title and reference pages / double spaced) on overloading operators. Explain the concepts discussed in the textbook using at least an example not included in the textbook.

  Provide a three-argument constructor

Create a class called Point that has two data members: x- and y-coordinates of the point. Provide a no-argument and a 2-argument constructor - Provide a three-argument constructor

  Design an algorithm to find the selling price

To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?

  Create a structure that has one variable called value

"Create a structure that has one variable called value and one pointer to the list (making it a linked list). Prompt for 5 values from the keyboard as input and store them in the linked list. Print out the current contents of the list.

  Problem 1 write program to print the subsequent stars in

problem 1. write program to print the subsequent stars in the screennbspproblem 2. suppose your 1000 is earning

  Write a program that has user enter

Write a program that has user enter a sentence and then determine how many lower case letter were entered. You need to write a logically coherent function that will determine if character is lower case or not. Main will also display the total?

  Write a program that uses random-number generation

Write a program that uses random-number generation to create sentences. Create four arrays of strings (string objects highly suggested over c-strings).

  Uses classes with linked list

Turning a work in C++ that uses classes with a linked list to a no classes project

  Write a program that calculates mileage reimbursement

Write a program that calculates mileage reimbursement for a salesperson at a rate of $0.35 per mile. Your program should interact with the user in this manner.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd