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
QUANTUM CHEMISTRY AND CHEMICAL ENGINEERING - EXAMPLE 31.4 : In a rigid rotor model in quantum chemistry, the moment of inertia I is given by an Equation E as I = Ma x La x La + Mc x Lc x Lc = m x L x L, where m = (Ma x Mc) / (Ma + Mc) and L = La + Lc, m is the reduced mass, Ma is the mass of a, Mc is the mass of c, La is the radius of a from point O, Lc is the radius of c from point O. Prove by simplest method that Equation E is wrong.
What is the angle of repose and what are its applications in the chemical industry?
What are the frequently asked technical questions in chemical engineering during PI?
Explain the largest application for surfactants?
i am a prefinal year student of polymer engineering .could you please send the latest question papers regarding entrace exam.
what is mean by reflux ratio?
IS BTech chemical distance education degree from JRN Rajasthan vidyapeth by SSK engineering college Tamilnadu aprooved from UGC or AICTE?
Explain why is a vacuum breaker used on shell and tube heat exchangers that are utilizing steam as the heating utility?
Hi, This is Naveen, plz if anybody have experience of IOCL interview, send me question.
What type of flow measurement devices is best for slurries?
What is a Spool in terms of piping Industry?
QUANTUM BIOLOGY - EXAMPLE 33.10 : The wavefunction starts out in a superposition of possible states in a closed black box like this : Ψ (kitty) = 0.7071 Ψ (alive) + 0.7071 Ψ (dead) where Ψ (kitty) = wavefunction of a kitten, Ψ (alive) = wavefunction of a living kitten, Ψ (dead) = wavefunction of a dead kitten. By prediction and calculation, find the probability of : (a) a living kitten inside the black box; (b) a dead kitten inside the black box.
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)