Exercise-2: Currency convertor and Calculator
Practice Exercices
Question-1: Currency Convertor
- Create a program and call it Currency_Convertor
- Change the Name property of each control
- Create a Clear Button
- The user will type in the Amount in dirhams and clicks the “To Dollars” button
- Then the program will convert form dirham to dollars where dollar = dirham / 3.67
- Add 4 comments to the To Dollars Button
- Here is a guide:
Question-2: Calculator
- Create a program and call it Calculator
- Change the Name property of each control
- Add a code for each button to do the calculation and show the output in the result label:
- + Addition
- - Subtraction
- * Multiplication
- / Division
- % Reminder after dividing
- Create a CE (Clear) Button
- Add 4 comment to each Button
- Here is a guide:
Question-3: Burger King
- Create a program and call it Burger_king as shown here:
- Change the Name property of each control
- The user will type in:
- Number of Chicken Meals 20 dhs
- Number of Beef Meals 22 dhs
- Number of Fish Meals 25 dhs
- Number of Kids Meals 12 dhs
- The program will calculate the Cost
- The program will show the cost in a listbox
- Add 4 comments to the Order button
- Create a Clear button
For more details, please contact me here.
Date of last modification: 2021