Write a C++ program that will utilize parallel arrays

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

Assignment: In-Class Activity

For your in-class activity this week, I want you to write a C++ program that will utilize parallel arrays. One of the arrays will be an array of strings and the other an array of int. The strings array will be the names of students, and the int array will be the corresponding final average in a course. Assume the data file grades.txt will contain 10 names and 10 integers. 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 program.

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

Step 3: In a second function named DisplayGrades, display the name, numeric score, and letter grade for each student. You will need to pass both arrays into this function (See line 17 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 - Figures are in attached file.

Attachment:- Assignment Files.rar

Reference no: EM132293466

Questions Cloud

Disadvantage that freshcoat would have experienced : Disadvantage that Freshcoat would have experienced if it had introduced formal Human Resource Management (HRM) policies earlier in its life cycle.
The intended benefits of using social computing tools : What are some of the intended benefits of using social computing tools?
Explain the limitation of mixed methods research : To what extent is mixed methods research simply taking a quantitative design and a qualitative design and putting them together?" Next, explain the types.
About starbucks partnership with tata companies : Use any search engine to search for articles about Starbucks partnership with Tata Companies in India
Write a C++ program that will utilize parallel arrays : CSCI 101 Assignment: In-Class Activity. For your in-class activity this week, I want you to write a C++ program that will utilize parallel arrays
Create opportunities for cross-generational mentoring : Create opportunities for cross-generational mentoring.
What are some of the most important considerations : What are some of the most important considerations we should evaluate to best configure our production and supply chain operations.
Discuss various target markets in detail : Discuss various target markets in detail in an online business (market's size, demographics, unique traits, and trends that relate to demand for your business).
Divisions trade or exchange resources : Analyze the relationship among The Walt Disney Company's businesses units/divisions

Reviews

len2293466

4/25/2019 10:04:35 PM

Here are the instructions for this activity. inClassActivity #14.pdf and You need this text file for your assignment. grades.txt. If this could be compatible with Visual Studio, or an online C++ Compiler. Please submit the .cpp file so I can run it. You don’t need screen shots.

Write a Review

C/C++ Programming Questions & Answers

  Create a program that outputs the result of the formula

Create a program that outputs the result of the formula f = (a - b)(x - y) using the printf() functions.

  Data transactions and enhance concurrency control

Describe how locks could be used in order to qualify data transactions and enhance concurrency control. Suggest at least two business scenarios

  Write a program to manipulate strings using pointers

Write a program to manipulate strings using pointers. The program will start out by displaying a menu to ask user what to do as shown below

  Find the mean and standard deviation of a number of data

Write a program, using C#, that will find the mean and standard deviation of a number of data points.

  What is a cell reference

What is a cell reference (also called a cell address) and what is the significance of being able to use them in spreadsheet formulas?

  Create a variable that asks user what their monthly income

On average people in Las Cruces spend between 12-16% of their annual income on entertainment. Create a variable that asks the user what their MONTHLY income is and have an fprintf statement that says

  Evaluating an expression of the form output stream

When evaluating an expression of the form output stream « right operand the compiler determines whether to use a standard definition of.

  Up through 2 to the 10th power

program should compute and output all of the "powers of two" from 2 to the 0th power, up through 2 to the 10th power.

  Write a program to check whether a number is even or odd

Write a C++ program to check whether a number entered by user is even or odd.

  Prompts the user to enter the total number of cookies

7. A box of cookies can hold 24 cookies, and a container can hold 75 boxes of cookies. Write a program that prompts the user to enter the total number of cookies, the number of cookies in a box, and the number of cookie boxes in a container.

  Review the given c code and perform analysis as needed

Carefully, review the code and perform analysis as needed. Consider the following rules and recommendations and hints for items that you might want to review.

  Write c program that allows user to make ledger transactions

Write a C program that allows the user to make some ledger transactions. The program should first prompt the user to enter the current balance of his/her ledger account (must allow for dollars and cents, and not less than zero).

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