Professional Documents
Culture Documents
Question For C++ Lab
Question For C++ Lab
E Question
Q1. Write a program to read two numbers from Keyboard and return the largest
number.
Q2. Write a program to read a number in Farenheit and convert it into celcius.
·0 name of depositor.
·1 Account Number
·2 Type of Account
·3 Balance
·4 initialise
·5 Deposit
·7 Display Amount
Write a program to implement the above problem.
If the total amount is more than Rs 300.00 then an additional surcharge of 15% is
added.
Write a program to read the names of users and no of units consumed and print
out the charges with names.
Use a friend fucntion to carry out the addtition operation. The object that stores
the results may be a DM object or DB object, depending on the units in which the
results are required.
The display should be in the format of feet and inches or metres and centimetres
depending on the object on display.
Q11. A book shop maintian the inventory of books that are being sold at the shop.
The list includes details such as author, title, price, publisher and stock positon.
Whenever a customer wants a book, the sales person inputs the title and author
and the system searches the list and diplays system displays the book details
and requests for the number of copies required. If the requested copies are
available, the total cost of the requested copies is displayed; otherwise the
message "Required copies not in stock" is displayed.