Answered step by step
Verified Expert Solution
Link Copied!

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
Use C++
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

5 A little praise can go a long way. Discuss.

Answered: 1 week ago