Lvipogramming 2015 Vb

download Lvipogramming 2015 Vb

of 1

Transcript of Lvipogramming 2015 Vb

Programming Assessment vb (First Term 2015)Class:LVI1. Write a program to calculate a book sale. Seller will input the quantity, price, vat at 15% and the amount will be displayed.[5]

2. Caf express would like to have a program that will enable the user to choose any drink with the given quantity and the program will calculate the cost with a tax of 8%. There is a choice of 5 coffee selections: cappuccino @ 20.00, expresso @ 25.00, latte @ 15.00 and Iced Capuccino / Iced Latte @ 30.00 each (use if structure)[10]

3. Piecework workers are paid by piece. Workers who produce a greater quantity of output are often paid at a higher wage. Input the no of pieces produced and display the amount earned.[5]Pieces completedPrice paid per piece for all pieces

1-1990.50

200-3990.55

400-5990.60

600 or more0.65

4. The factorial of a positive integer n (n!) is equal to the product of the positive integers from 1 to n. Write a program to input n and display the result. (while loop).[5]

The programming should contain indentation, meaningful names and comments.