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

What are the specialized grinding methods?

0 Answers  


In a furnace, 2 chemical reactions are happening – 1 mole of solid carbon reacts with 1 mole of oxygen gas to generate 1 mole of carbon dioxide gas; 1 mole of solid carbon reacts with 0.5 mole of oxygen gas to generate 1 mole of carbon monoxide gas. In a given process, 100 kmol of carbon is burned in a furnace. (a) Calculate the theoretical oxygen gas needed by assuming that all the carbon is burned completely to carbon dioxide gas. (b) Calculate the theoretical air needed by assuming that all the carbon is burned completely to carbon dioxide gas and there is only 21 % of oxygen gas. (c) Determine the amount of air required (in kmol) if 50 % excess oxygen gas must be satisfied for (a) and (b). (d) It has latter been found that 20 % of the carbon undergoes incomplete combustion resulting to carbon monoxide gas production. The rest of the carbon undergoes complete combustion. Calculate the total oxygen gas required stoichiometrically based on the actual process.

1 Answers  


Dielectric materials in static fields

0 Answers   HCL,


Explain the advantages of using a ball mill over other conventional methods of crushing?

0 Answers  


how FOULING effectd the heat transfer rate

12 Answers   IOCL,






Please help to get IOCL/HPCL or other chemical engineering paper pls send kathir_skv@yahoo.com Regards, kathirvel

0 Answers   Essar,


why transmission lines using 220KV.

2 Answers  


ENGINEERING MATERIAL - EXAMPLE 12.3 : Let a ^ 2 = a x a and a ^ 3 = a x a x a where ^ is power function. Niobium is a metal with a body-centered cubic structure. The length of the unit cell structure is b = 0.3349 nm. (a) Find the volume for a unit cell structure for niobium. (b) There are 2 atoms per unit cell structure of niobium. The metal has a molar mass of 92.9 g / mol. One mole of the metal consists of 6.02 x 10 ^ 23 atoms. Find the mass of niobium per unit cell and the density of niobium.

1 Answers  


Why Packed Bed is not preffered in seperation process while Tray column is used in Industries predominatly??

5 Answers  


what is the main components of air

3 Answers   ONGC,


UNIT OPERATION - EXAMPLE 9.1 : Which of the sequence below represent a feasible flows of ethanol processing plants using cellulose as starting material? A. raw material -> heat exchanger -> distillation column -> reactor. B. reactor -> distillation column -> raw material -> heat exchanger. C. heat exchanger -> raw material -> distillation column -> reactor. D. raw material -> heat exchanger -> reactor -> distillation column. E. distillation column -> raw material -> reactor -> heat exchanger.

1 Answers  


What is mean by pump head 5 meter?

6 Answers  


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)