Create the arrays

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

Assignment -

For your in-class activity, change the program we did for Module 14. This time instead of parallel arrays, we're going to have an array of struct. Within the struct type (I named mine StudentRec), you will have three members:

1. A name of type string

2. A score of type int

3. A grade of type char

You'll create an array of 10 StudentRecs. Assume the same data file. This is what is in grades.txt:

Ava 91

Bob 89

Cam 81

Dan 98

Eve 85

Fay 68

Guy 77

Hal 70

Ivy 75

Jay 65

Step 1: Create the arrays. Do not create global variables of ANY kind! The next figure shows the declarations and main function of my version of the NEW program.

Figure A: My Declarations and main function

Step 2: Create a function named FillArrays and pass the struct array into the function through the parameter list (See line 24 in Figure A). Open grades.txt in this function and read the data from the file.

Step 3: Create a function named GetGrades and pass the struct array into this function through the parameter list (See line 25 in Figure A). This function will call the function CalcGrade by passing an individual score into the GetGrades function. GetGrades will return the letter grade earned by the student based upon the score passed into the function.

Step 3: In a third function named DisplayGrades, display the name, numeric score, and letter grade for each student. You will need to pass the StudentRec array into this function (See line 26 in Figure A). Use the standard 10-point scale for the letter grade. Notice from grades.txt everyone passed, but include the "F" possibility in case I want to change up the grades.txt file I use to grade the assignment.

Note - If this could be created in Visual Studio that would be perfect. This assignment builds upon last week's, which attached for reference.

Attachment:- Assignment Files.rar

Reference no: EM132298313

Questions Cloud

Briefly explain what Erikson theory is : Lifespan Assignment - First, briefly explain what Erikson's theory is generally all about (according to your text/notes learning). Think BIG picture
Communication when speaking with someone face-to-face : The spoken work makes up what percent of our communication when speaking with someone face-to-face?
Hiring another organization to perform service : Hiring another organization to perform a service is known as?
Write about liquidity and profitability : Write about liquidity and profitability and you need to follow the research methodology - Methods and Techniques Adopted in the Study
Create the arrays : Create the arrays. Do not create global variables of ANY kind! The next figure shows the declarations and main function of my version of the NEW program
Interviewing process tool to managing procurement risk : Describe how you would apply that Interviewing process tool to managing a procurement risk
Describe all mba entrepreneurship topics : Describe all MBA Entrepreneurship topics usually thought at university?
Create the logical dfd diagram : For its chain of fast food outlets, Bambino's Pizzeria has recently installed a system to speed up deliveries. In each of its stores
Alliances and partnerships in supply chain management : Critically analyse the role of information systems in alliances and partnerships in supply chain management,

Reviews

len2298313

5/2/2019 10:53:21 PM

For your in-class activity this week, I want you to change the program we did for Module 14. The program will produce the following (as before): Figure B: Results of Program. Please submit the .cpp file so I can run it. If this could be created in Visual Studio that would be perfect. This assignment builds upon last week's, which I have attached for reference. Also attached it the grades.txt file.

Write a Review

C/C++ Programming Questions & Answers

  Create a program that counts the number of numbers

you need to create a program that counts the number of numbers between 150 and 200 - Can you write this program in c language? You need to implement a function that counts the numbers.

  Implement a message server in a distributed environment

Implement a "message server" in a distributed environment (i.e. between processes running on machines that are physically separate) by using BSD sockets

  Construct a simple simulation of ordering

You will use threads to construct a simple simulation of ordering at a coffee shop - Which will either square, cube or shrink an integer based off a menu selection. I can not seem to allow for a float to be the result of the shrink.

  Write an automated checkout program to expedite customers

A local department store hires you  to write an automated checkout program to expedite customers in a hurry. The  checkout line can only accept five items for any one purchase

  Find the prime numbers

Write a c++ program to find the prime numbers

  In this assignment you have to implement and test a public

in this assignment you have to implement and test a public transport fare ticketing system. you will need to

  Use the bit manipulation operators

Using the bit manipulation operators, prepare and test C programs to perform - determine if the word contains the pattern 0x43 in the least significant byte.

  Program to find the factors

Write a c++ program to find the factors of an integer (entered by the user) which are themselves squares.

  Creates a macro to calculate the area

Build a program that creates a macro to calculate the area of a circle using the formula area = pie x radius x radius. In the same program, prompt the user to enter a circle's radius. Use the macro to calculate the circle's area and display the re..

  Three or more dimensions

What kind of program, or problem, might necessitate arrays of three or more dimensions?

  How many years it takes for the value of cleos investment

Write a program that finds how many years it takes for the value of Cleo's investment to exceed the value of Daphne's investment.

  Given a character code to indicate the type of customer

Pete's Plumbing of Pompey sells to both retail and wholesale buyers. The retail buyer must pay New York State and Onondaga County sales tax (8%). However, the wholesale buyer does not pay sales tax and receives a volume discount on the amount purchas..

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