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

Post New Answer

More Chemical Engineering Interview Questions

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???????

3 Answers   GATE,


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.

1 Answers  


wha is Adsorption column chromatography?

0 Answers  


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.

0 Answers   HPCL,


What is a good method of steam tracing large vessels?

0 Answers  






Define condensate lift?

0 Answers  


What's -74C, dew point is better the -70C dew point In draying unit .

1 Answers  


How many days we are store our cement bags?

4 Answers  


How is waste heat boilers categorized?

0 Answers  


Explain the strategies acquired to cure tube vibration and exchangers in a shell?

0 Answers  


What is a good device to use for obtaining viscosity data for a non-newtonian fluid?

0 Answers  


What do you know about us?

4 Answers   Allfon, Bhushan Power Steel, CPCL, Crystol, Trident,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)