Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 Use C++
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started