Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given the following two arrays with their initializations: AnsiString StudentNam

ID: 3621888 • Letter: G

Question

Given the following two arrays with their initializations:
AnsiString StudentName[5]={“Ali”, “Rana”, “Sami”, “Huda”, “Rami”};
int StudentMark[5]={80,76, 85, 92, 67};
Write a C++ program to accomplish the followings (all in one program):
a. declare a structure of two variables: StudentName and StudentMark of type string and integer respectively and then define an object of 5 records. [3 marks]
b. copy all data of each array to its corresponding variable name of the defined records such that (“Ali” and 80) represents the first record and so on for the rest of data. [5 marks]
c. using the declared structure, count and print number of PASS students if you know that the passing mark is 50. [6 marks]
d. again, use the declared structure to find and print the maximum two marks (use a nested loops for this) [12 marks]

i want code by c++

Explanation / Answer

Defining structs: http://www.cplusplus.com/doc/tutorial/structures/

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote