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
What is the import procurement cycle? What are the customization steps in sap?
Explain about different types of lamps?
respected sir,i have been selected in the written examination prelim (CHEMICAL) of RINL(RASHTRIYE ISPAT NIGAM LTD.) held on 20 JUNE, So please tell me which type of questions will be asked in 2nd stage written exam. plz send me last 2-3 years questions asked in RINL(written exam).
my qualification is b.tech- industrial biotech. i was read about many chemical engineering subject as a allied like unit operation, chemical thermodynamics, chemical reaction engineering , mass transfer and separation, downstream processing and principle of chemical engineering. and i have 2 yrs working exprience on in the field of instrumentation and control... and my query is "can i able work as process technologist" and which subject i want conc. more?........
What are the different types of equipments for the conveyance of solids?
how to find a liquid flow's direction in a closed pipe by merely seeing it(without pressure gauges)...
When an expansion is joint needed on the shell side of a shell and tube heat exchanger?
How many days we are store our cement bags?
I HAVE DOMAIN KNOWLEDGE IN PROCESS MANUFACTURINGAND I GOT AN APPARTUNITY AS A BUSINESS ANALYST AND I DNT HAVE ANY KNOWLEDGE ON ORACLE APPS/GIVE ME ANY VALUBLE SUGGESTION?
What are the customization steps in sap?
Should slurry pipes be sloped during horizontal runs?
Explain the steps taken to operate a tank-blanketing valve?
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)