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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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