0% found this document useful (0 votes)
25 views

Fundamental of Computing (Cs-201) Instructions: 1. Submit Your Original Work Only. 2. Do Not Share Your Answers To Anyone

This document contains instructions for a computer science assignment involving fundamental computing concepts. It asks students to: 1) Define a computer system, compare it to humans, and discuss computer applications. It also asks students to convert numbers between different numeric bases. 2) Briefly explain the memory hierarchy in computers using a labeled diagram, and compare the roles of register and cache memory. 3) Write a C program to calculate and print a telephone bill based on call minutes and rates. 4) Write a menu-driven C program to calculate total prices for purchased electronic items from a price list. 5) Explain the output of some sample C programs with justifications. Students are asked to run the programs

Uploaded by

shamimahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Fundamental of Computing (Cs-201) Instructions: 1. Submit Your Original Work Only. 2. Do Not Share Your Answers To Anyone

This document contains instructions for a computer science assignment involving fundamental computing concepts. It asks students to: 1) Define a computer system, compare it to humans, and discuss computer applications. It also asks students to convert numbers between different numeric bases. 2) Briefly explain the memory hierarchy in computers using a labeled diagram, and compare the roles of register and cache memory. 3) Write a C program to calculate and print a telephone bill based on call minutes and rates. 4) Write a menu-driven C program to calculate total prices for purchased electronic items from a price list. 5) Explain the output of some sample C programs with justifications. Students are asked to run the programs

Uploaded by

shamimahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

B.Tech.

(Section-F) Assignment-II July 2021


FUNDAMENTAL OF COMPUTING (CS-201)
Instructions:
1. Submit your original work only.
2. Do not share your answers to anyone.
Q1 a) What is computer system? Compare it with human beings. Discuss various applications
of computer.

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:

Local Call Rate/minute


0-100 1₹
101-200 1.5₹
above 200 2.5₹
STD Call Rate/minute
0-100 2.5 ₹
above 200 5₹

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.

You might also like