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