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
Three solid objects of the same material and of equal mass – a sphere, a cylinder (length = diameter) and a cube – are at 5000C initially. These are dropped in a quenching bath containing a large volume of cooling oil each attaining the bath temperature eventually. The time required for 90% change of temperature is smallest for a) cube b) cylinder c) sphere d) equal for all the three whyyyyyyy???????
ACCOUNTING AND FINANCIAL ENGINEERING - EXAMPLE 34.27 : A biochemical engineering consultancy applies construction accounting in its finance. Its project began on 1 January 2010. Total revenue generated from the project was $9000. On 1 January 2011 as the budget, $2000 had been spent, with $6000 expected. However, the project cost increased latter, causing deviation from its initial budget on 1 January 2012, where $7000 had been spent, with $1400 expected. Let (estimated total cost) = (spent cost) + (expected cost to be spent), (percentage completion) = 100 (spent cost) / (estimated total costs), (total expected profits) = (total revenue) - (estimated total costs). Calculate : (a) total expected profits on 1 January 2011 and 1 January 2012; (b) estimated total cost as and not as the budget; (c) percentage completion of the project since the project began, in the first and second years.
wha is Adsorption column chromatography?
I am a Diploma Chemical Engineer by Nirma Uni; and BEng (Hons) Energy & Environmental Engineer by Napier Uni; Edinburg, UK. HPCL chemical engineering test will held on 14th July,09. So, Please send me some previous chemical engineering papers Objective types Or material to give the test.
What is a good method of steam tracing large vessels?
Define condensate lift?
What's -74C, dew point is better the -70C dew point In draying unit .
How many days we are store our cement bags?
How is waste heat boilers categorized?
Explain the strategies acquired to cure tube vibration and exchangers in a shell?
What is a good device to use for obtaining viscosity data for a non-newtonian fluid?
What do you know about us?
4 Answers Allfon, Bhushan Power Steel, CPCL, Crystol, Trident,