Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

More Chemical Engineering Interview Questions

ACCOUNTING AND FINANCIAL ENGINEERING - EXAMPLE 34.30 : A biochemical engineering sales contract adopts Cost Recovery Method in its company accounting. Gross profit is realised only when cash collections exceed the total cost of goods sold. Let Y = Original Cost Recovered, Z = Gross Profit Realised. Its property was sold at A = \$500k with cost of B = \$300k. Its engineering accountant receives cash of C = \$240k in first year, D = \$180k in second year and E in third year. (a) Find the values of Y and Z in : (i) first year; (ii) second year; (iii) third year. (b) What is the exact value of E if all cash has been fully received from sales?

What is the easiest way to extract hydrogen from water and the safest way to store it?

My previous company dismissed from my job due to some reason. But they have given 1 year experience certification. But i worked for 1 year 4 months, How do i answer if interviewer asked what did you do for six months.why are you leaving your job?

ENGINEERING NUMERICAL METHODS - EXAMPLE 19.2 : For a mixture of benzene (B), toluene (T) and xylene (X), the equation applies where x for B, T and X will sum up to 1. The equation of x for each component is x = (L / V + 1) (F) / (L / V + K). The data of F for each component are : 0.5 for B, 0.35 for T, 0.15 for X. The data of K for each component are : 1.98 for B, 0.76 for T, 0.24 for X. When x for B + x for T + x for X = 1, find the values of (a) L / V; (b) x for each component of B, T, X respectively. You may use Excel program - Data : What-If-Analysis for Goal Seek to perform the iterative calculations.

What are advantages using hollow shaft impeller?

What is the process of including heat exchangers in ammonia refrigeration system?

What is a "saltation velocity"?

What is carbon sequestration?

is extractive distillation&#1246;H

what is the purpose of knockout drum in SRU?

Categories
• Civil Engineering (5076)
• Mechanical Engineering (4445)
• Electrical Engineering (16606)
• Electronics Communications (3915)
• Chemical Engineering (1092)
• Aeronautical Engineering (214)
• Bio Engineering (96)
• Metallurgy (361)
• Industrial Engineering (258)
• Instrumentation (2992)
• Automobile Engineering (332)
• Mechatronics Engineering (97)
• Marine Engineering (123)
• Power Plant Engineering (172)
• Textile Engineering (575)
• Production Engineering (0)
• Satellite Systems Engineering (106)
• Engineering AllOther (1378)