Create a structure named student with two attributes, name and cgpa. Define structure variables s1, in the main block(local to main menthod) s2(global), two structure variable as an array. Scan over all four structure variables and display. For example: Test Input 1 Result 210CE5001 210C5001 7.1 7.1 21BCE5003 218CE500) 7.3 7.3 21BCE5004 218CES5004 7.4 218CE5002 7.2 7.4 21BCE5002 7.2

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter13: Structures
Section: Chapter Questions
Problem 3PP
icon
Related questions
Question
In c++
Create a structure named student with two attributes, name and cgpa. Define structure variables s1, in the main block(local to main menthod),
s2(global), two structure variable as an array. Scan over all four structure variables and display.
For example:
Test Input
1
210CES001
7.1
21BCE5003
7.3
21BCE5004
7.4
Result
218CE5001
7.1
218CE500)
7.3
21BCE5004
7.4
21BCE5002 215002
7.2
7.2
Transcribed Image Text:In c++ Create a structure named student with two attributes, name and cgpa. Define structure variables s1, in the main block(local to main menthod), s2(global), two structure variable as an array. Scan over all four structure variables and display. For example: Test Input 1 210CES001 7.1 21BCE5003 7.3 21BCE5004 7.4 Result 218CE5001 7.1 218CE500) 7.3 21BCE5004 7.4 21BCE5002 215002 7.2 7.2
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
User Defined DataType
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr