Project: Chapter 3, pg. 39,Exercise #4
Create a Project called TipCalculator. Refer to instructions inthe textbook.
▪ The main activity layout should contain one EditText, threebuttons, and one TextView (Figure 3.10). ▪ The first buttonshould be labeled 15% and should take the amount entered in theEditText and calculate 15% of that value. ▪ The secondbutton should be labeled 18% and should take the amount entered inthe EditText and calculate 18% of that value. ▪ The third buttonshould be labeled 20% and should take the amount entered in theEditText and calculate 20% of that value. ▪ All the buttonsshould display the tip and total bill in the TextView with thisformat: Tip: $99.99, Total Bill: $99.99. ▪ The widgetsshould be centered horizontally in the screen with the EditText ontop, the button below it in a single row, and the TextView belowthe button.
Project: Chapter 3, pg. 39, Exercise #4 Create a Project called TipCalculator. Refer to instructions in the textbook. ▪
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am