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 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