Question: subject: data structure and algorithm Use C++ Task 5 Write a program to store student information (name, student ID, program) for 10 students using structures.

subject: data structure and algorithm
Use C++
 subject: data structure and algorithmUse C++ Task 5 Write a program
to store student information (name, student ID, program) for 10 students using
structures. Then display the information on the screen output. As a guideline

Task 5 Write a program to store student information (name, student ID, program) for 10 students using structures. Then display the information on the screen output. As a guideline you can follow the following steps: i. Define a structure called student which has the student information as member. ii. Then create an array of size 10 of type student. iii. Using for loop, get the information of ten students from the user. iv. Using for loop, display the information of the ten students on the screen output. Task 6 Extend program in question 1 by adding another structure which is subject which has subject name, subject code and credit hours as its data members. Modify structure in question 1 by adding another structure member as subject taken by each student. The maximum number of subject can be registered by a student is 10 . Get all the require input from user and print them on the screen in proper format. Task 7 Create a structure to hold fraction. The structure should have an integer numerator and an integer denominator member. Declare 2 fraction variables and read them in from the user. Then multiplies them together and prints the result as a decimal number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!