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
What are the design considerations for a piping system for the transfer of slurries?
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?
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.
What step should be taken in process industries if the process variable is oscillating?
What type of heat exchangers are most commonly used for a large-scale plant-cooling loop using seawater as the utility?
What is microstir?
How many days we are store our cement bags?
IS BTech chemical distance education degree from JRN Rajasthan vidyapeth by SSK engineering college Tamilnadu aprooved from UGC or AICTE?
Mention some of the specialized grinding and crushing methods.
What does the catalystic converter on an automobile do?
which is the major cement producing state in western India ?
can u tel me d question paper of gail?