Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions Icon

Related questions

Question

C++ Programming

Transcribed Image Text:Alice test Description Searched your code for a specific pattern: Wonderful, Alice\s+89\s+B You can learn more about regular expressions Code Pattern. Incomplete Greg test Description Searched your code for a specific pattern: Gupta, Greg\s+75\s+C You can learn more about regular expressions Code Pattern Incomplete Amy test Description Searched your code for a specific pattern: Cheng, Amy\s+83\s+B [here](https://ruby-doc.01 > [here](https://ruby-doc.01
[画像:Instructions Instructions Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type student Type, which has four components: student FName and studentLName of type string, testScore of type int ( test Score is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type student Type. Your program must contain at least the following functions: • A function to read the students' data into the array. • A function to assign the relevant grade to each student. • A function to find the highest test score. • A function to print the names of the students having the highest test score. Your program must output each student's name in this form: last name followed by a comma, followed by a space, followed by the first name; the name must be left justified. Moreover, other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls. Your program should accept no input and save the output to Ch9_Ex2Out.txt. Grading When you have completed your program, click the Submit button to record your score. Ch9_Ex2Data.txt 1 #include <iostream> 2 3 using namespace std; 4 5 int main() { 6 7 Ch9_Ex2Out.txt // Write your main here return 0; main.cpp +]
expand button
Transcribed Image Text:Instructions Instructions Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type student Type, which has four components: student FName and studentLName of type string, testScore of type int ( test Score is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type student Type. Your program must contain at least the following functions: • A function to read the students' data into the array. • A function to assign the relevant grade to each student. • A function to find the highest test score. • A function to print the names of the students having the highest test score. Your program must output each student's name in this form: last name followed by a comma, followed by a space, followed by the first name; the name must be left justified. Moreover, other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls. Your program should accept no input and save the output to Ch9_Ex2Out.txt. Grading When you have completed your program, click the Submit button to record your score. Ch9_Ex2Data.txt 1 #include <iostream> 2 3 using namespace std; 4 5 int main() { 6 7 Ch9_Ex2Out.txt // Write your main here return 0; main.cpp +
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Similar questions
    Recommended textbooks for you
    Text book image
    Computer Networking: A Top-Down Approach (7th Edi...
    Computer Engineering
    ISBN:9780133594140
    Author:James Kurose, Keith Ross
    Publisher:PEARSON
    Text book image
    Computer Organization and Design MIPS Edition, Fi...
    Computer Engineering
    ISBN:9780124077263
    Author:David A. Patterson, John L. Hennessy
    Publisher:Elsevier Science
    Text book image
    Network+ Guide to Networks (MindTap Course List)
    Computer Engineering
    ISBN:9781337569330
    Author:Jill West, Tamara Dean, Jean Andrews
    Publisher:Cengage Learning
    Text book image
    Concepts of Database Management
    Computer Engineering
    ISBN:9781337093422
    Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
    Publisher:Cengage Learning
    Text book image
    Prelude to Programming
    Computer Engineering
    ISBN:9780133750423
    Author:VENIT, Stewart
    Publisher:Pearson Education
    Text book image
    Sc Business Data Communications and Networking, T...
    Computer Engineering
    ISBN:9781119368830
    Author:FITZGERALD
    Publisher:WILEY