Professional Documents
Culture Documents
Viid bill() // Display the ustomer iame aid total bill amouit.
Geography Rs-25
S iei e Rs-70
Amazoi
Computer Rs-60
Beigali Rs-35
Eiglish Rs-45
IidiaMart
Physi s Rs-50
Math Rs-60
Viid display()// Display the book iame aid total amouit.
4. Write a prigram ti defne a class Salary sheet, Input empliyee name, salary, and empliyee
age. Calculate and display the net salary given this criteria wise-
Viid traveltype() // Iiput passeiger iame, Destiatoi iame , travel type, ustomer age.
Viid pricess()// Cal ulate the Travel ost givei this oiditoi wise:
Void t ket() // Display the ustomer iame, age, travel type aid total t ket pri e.
Viid input()// Iiput the ustomer iame, Taxi iumber aid Kilo miter of travels.
Viid charge()// Cal ulate aid display the total harge amouit givei this oiditoi wise:
9. Write a program to iiput travel type, kilometers of travel aid display the harge of amouit
givei this oiditoi wise.
Travel type Kilometers of Amouit per
travels kilometer