Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LAB2 - Design and implement a program using ARRAYS in TANDEM/ PARALLEL Lab 2 Design and implement a program that DOES NOT use the structure

image text in transcribed
LAB2 - Design and implement a program using ARRAYS in TANDEM/ PARALLEL Lab 2 Design and implement a program that DOES NOT use the structure (SG) to perform the same tasks as you accomplished in Lab #1. This will require that you use ARRAYS in TANDEM/ PARALLEL. You will need to use at least THREE ARRAYS to accomplish this, i.e., a one two-dimensional array, one that is a string data-type to contain the NAME, one that is char to contain the LG /Letter Grade. Once you determine what the Student's AVG is based on the average of the ten grades. Each ROW of the TWO DIMENSIONAL ARRAY will contain TEN GRADES FOR EACH STUDENT. THE RELATIONSHIP BETWEEN THE Student's Names and Letter Grades is positionally the same and RELATED TO THE ELEMENTS IN THE TWO-DIMENSIONAL ARRAY by the ROw. FOR EXAMPLE, the Student whose Name is at location zero in the NAME array, is associated/linked to the Letter Grade in the zero-position of the LG Array and to the ZERO ROW of the TWO-DIMENSIONAL ARRAY. GIVEN these declarations: string NAME [10]: float GRADES [101(10] char LG[10] The Program should (Input) Read each of the Students' Names from a FILE, i.e., Name AND the 10 grades for each Student, into the TWO-DIMENSIONAL ARRAY, GRADES THEN, calculates the average grades from which a LETTER GRADE is determined and store that grade in LG array. " the Student has less than 10 grades, then the student should getW' grade when any GRADE IS A ZERO (Output) Each STUDENTs NAME, the 10 grades, and the given Letter-Grade (LG) neatly formatted in a tabular form

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions