a. Create two dynamic arrays of same size, one to store the Studentld, and another to store the Marks of 'N' Students in a class. b. Read in the Student ID and Marks of the students through the Keyboard. c. Display the Student ID and Marks as shown in the sample output.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

c++

Dynamic Memory Allocation
1. Write to C++ program to do the following tasks:
a. Create two dynamic arrays of same size, one to store the StudentId ,
and another to store the Marks of 'N' Students in a class.
b. Read in the Student ID and Marks of the students through the
Keyboard.
c. Display the Student ID and Marks as shown in the sample output.
Sample Output:
How many Students in the class ? 5
Enter
StudentID and Marks for student 1
1111 23.6
Enter
StudentID and Marks for student 2
2222 14..26
Enter
StudentID and Marks for student 3
3333 48.5
Enter
StudentID and Marks for student 4
4444 5.36
Enter
StudentID and Marks for student 5
5555 18.56
Student ID
Marks
1111
23.6
2222
3333
4444
14.26
48.5
5.36
5555
18.56
Process returned e (exe)
Press any key to continue.
execution time : 31.732 s
Transcribed Image Text:Dynamic Memory Allocation 1. Write to C++ program to do the following tasks: a. Create two dynamic arrays of same size, one to store the StudentId , and another to store the Marks of 'N' Students in a class. b. Read in the Student ID and Marks of the students through the Keyboard. c. Display the Student ID and Marks as shown in the sample output. Sample Output: How many Students in the class ? 5 Enter StudentID and Marks for student 1 1111 23.6 Enter StudentID and Marks for student 2 2222 14..26 Enter StudentID and Marks for student 3 3333 48.5 Enter StudentID and Marks for student 4 4444 5.36 Enter StudentID and Marks for student 5 5555 18.56 Student ID Marks 1111 23.6 2222 3333 4444 14.26 48.5 5.36 5555 18.56 Process returned e (exe) Press any key to continue. execution time : 31.732 s
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY