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 design considerations for a piping system for the transfer of slurries?

0 Answers  


After conducting an internet search for ways to reduce energy costs, I found a recipe for whitewashing that is said to reflect sunlight. The recipe calls for 20 pounds hydrated lime to 5 gallons water to 1-quart polyvinyl acetate. What is a good source of polyvinyl acetate that I can buy at a local store?

0 Answers  


PROCESS DESIGN - EXAMPLE 21.1 : According to rules of thumb in chemical process design, consider the use of an expander for reducing the pressure of a gas when more than 20 horsepowers can be recovered. The theoretical adiabatic horsepower (THp) for expanding a gas could be estimated from the equation : THp = Q [ Ti / (8130a) ] [ 1 - (Po / Pi) ^ a ] where 3 ^ 3 is 3 power 3 or 27, Q is volumetric flowrate in standard cubic feet per minute, Ti is inlet temperature in degree Rankine, a = (k - 1) / k where k = Cp / Cv, Po and Pi are reference and systemic pressures respectively. (a) Assume Cp / Cv = 1.4, Po = 14.7 psia, (temperature in degree Rankine) = [ (temperature in degree Celsius) + 273.15 ] (9 / 5), nitrogen gas at Pi = 90 psia and 25 degree Celsius flowing at Q = 230 standard cubic feet per minute is to be vented to the atmosphere. According to rules of thumb, should an expander or a valve be used? (b) Find the outlet temperature To by using the equation To = Ti (Po / Pi) ^ a.

1 Answers  


What step should be taken in process industries if the process variable is oscillating?

0 Answers   HPCL,


What type of heat exchangers are most commonly used for a large-scale plant-cooling loop using seawater as the utility?

0 Answers  






What is microstir?

1 Answers  


How many days we are store our cement bags?

4 Answers  


IS BTech chemical distance education degree from JRN Rajasthan vidyapeth by SSK engineering college Tamilnadu aprooved from UGC or AICTE?

1 Answers  


Mention some of the specialized grinding and crushing methods.

0 Answers  


What does the catalystic converter on an automobile do?

3 Answers  


which is the major cement producing state in western India ?

2 Answers   BNPM,


can u tel me d question paper of gail?

0 Answers   HPCL,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4452)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • 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)