Input the Roll Number, Name and marks of a small section of
5 students. Display the marks database
of these students in the following format. The "Roll Number"
and "Name" fields are left justified with
15 columns, and 25 columns, respectively. The "Marks" field
is right justified with 5 columns.
Assume the marks are in multiples of 0.5 and are from 0 to
100. Display some spaces between each
field appropriately.
Roll Number
11001
11050
11081
11225
Y2367
Name
FIRST NAME LAST NAME
FIRSTNAME2 LASTNAME2
I1. I2. FIRSTNAME3
FIRSTNAME4 M1. LASTNAME4
FIRSTNAME5 MID LASTNAME5
Marks
95
80
88
77.5
89.5
The input can be stored in a file, say, marksdata.txt, and
the program can be executed by using
./a.out < marksdata.txt
No Answer is Posted For this Question
Be the First to Post Answer
How does hollow shaft impeller works? Does it based on principle of pitot tube?
How can one quickly estimate the additional pressure drop to be introduced with more tube passes?
What is the wet bulb globe temperature (wbgt)?
What's -74C, dew point is better the -70C dew point In draying unit .
how does refractive index detector work?
In engineering economy, the future value of first year is FV = PV (1 i). For second year it is FV = PV (1 i) (1 i). For third year it is FV = PV (1 i) (1 i)(1 i) where FV = future value, PV = present value, i = interest rate per period, n = the number of compounding periods. By induction, what is the future value of $1000 for 5 years at the interest rate of 6%?
We have some pieces of metals that have been 'powder coated', how does that work?
What are some good estimates for heat transfer coefficients for coils in tanks?
describe why you are interested in a career in the oil industry?
Are some heat transfer services more prone to tube vibration that others for a shell and tube exchanger?
The power required for size reduction in crushing is???
how FOULING effectd the heat transfer rate
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)