Fundamental of Computing (Cs-201) Instructions: 1. Submit Your Original Work Only. 2. Do Not Share Your Answers To Anyone
Fundamental of Computing (Cs-201) Instructions: 1. Submit Your Original Work Only. 2. Do Not Share Your Answers To Anyone
b) Convert the following numbers to different bases as directed. Show all steps involved.
3.
i (11010010.101101)2 = ( ? )16, ( ?) 10
ii (96.35)10 = (? )2, (?)16, (?)8
iii ( FOC.CDE )16 = (? )2, (?)10
iv (517.4)8 = ( ? )2, (?)7
c)
Discuss memory hierarchy in computer system briefly with the help of a neat and
labelled diagram? Compare the role of register memory and cache memory in computer
system.
Q2 (a) Write a C program to print the Telephone bill of a given customer. The program should
accept Customer_id, number of local call minutes and number of STD call minutes made
by the user and prints the total amount to pay. The charges are calculated as:
The minimum bill should be of ₹150. If bill exceed ₹500 then a surcharge of 18%, GST
of 8%, Swachh Bharat Cess 0.5% and Krishi Kalyan tax 1% will be charged.
(b) Write a Menu based program in C that inputs the type of electronic item to be purchased
and the required quantity. The program finally calculates and prints the total price for the
order according to following price list: Your program must continue to run again and
again until or unless Exit option is chosen by the user.
Item Cost
Air Conditioner 50000 per unit
Refrigerator 20000 per unit
Washing Machine 30000 per unit
Microwave Oven 10000 per unit
LCD 40000 per unit
Automatic Inverter 20000 per unit
Q3 a) What will be the output of following programs? Explain the output of the following
programs with proper justification in your own words.
Execute the programs on your machines and take the snapshots of program output, copy the code along
with the snapshots in a word file and upload the same on Google classroom. (Preferred)
OR Write your answers on paper. Scan it and upload on the Google classroom.