Write a Qbasic program to input the distance covered by a passenger and
calculate the amount to be paid, based on given criteria using IF THEN ELSEIF
Distance Rate per km
0 – 100 km Rs 10/km
101-200 Rs 8/km
>200 Rs 5/km
Answers
Answered by
0
Explanation:
text me on Instagram.........
my id is : abhishek_7016
Answered by
0
Answer:
Explanation:
1)Write a program to enter your name and print it .
CLS
Input 'Enter you name';n$
Print 'The name is';n$
End
2)Write a program to enter your name, city, country, age and print them.
CLS
Input " Enter the name ";N$
Input " Enter the city";C$
Input " Enter the country";CO$
Input " Enter the age";A
Print " The name is ";N$
Print " The city is ";C$
Print " The country is ";CO$
Print " The age is ";A
End
3)Write a program to find the area of rectangle.
Cls
Input " enter the length " ;l
Input " enter the breadth " ;b
let A = l*b
Print" the area of rectangle=" ;a
End
Similar questions