Software Engineering Program in Java

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Topic Video
Question

Software Engineering Program in Java

Really need help with this program please. 

In this assignment you will build a simple Android app similar in spirit to the one shown at the
end of the class for the Android lesson. The app you must build is a simple tip calculator that:
1. Takes as input the amount of the check and the number of people splitting the check.
2. Produces as output both the amount of tip and the total amount each person should pay
for a 15%, 20%, and 25% tip. Output values must be computed assuming that the check
is split evenly and must be rounded to the nearest integer.
3. Visualizes an error using a Toast in case empty or invalid (e.g., negative) values are
provided as input. (You can also accomplish this in other ways, for example, not allowing
negatives to be entered)
Two screenshots for the app are shown here:
TipCalculator
Check amount:
Party size:
120
Total: 15% 35
4
COMPUTE TIP
Tips and totals (per person)
Tip: 15% 5
20% 6
25% 8
20% 36
O
25% 38
TipCalculator
Check amount:
Party size:
COMPUTE TIP
Tips and totals (per person)
Tip: 15%
25%
Total: 15%
20%
20%
25%
Empty or incorrect value(s)!
Transcribed Image Text:In this assignment you will build a simple Android app similar in spirit to the one shown at the end of the class for the Android lesson. The app you must build is a simple tip calculator that: 1. Takes as input the amount of the check and the number of people splitting the check. 2. Produces as output both the amount of tip and the total amount each person should pay for a 15%, 20%, and 25% tip. Output values must be computed assuming that the check is split evenly and must be rounded to the nearest integer. 3. Visualizes an error using a Toast in case empty or invalid (e.g., negative) values are provided as input. (You can also accomplish this in other ways, for example, not allowing negatives to be entered) Two screenshots for the app are shown here: TipCalculator Check amount: Party size: 120 Total: 15% 35 4 COMPUTE TIP Tips and totals (per person) Tip: 15% 5 20% 6 25% 8 20% 36 O 25% 38 TipCalculator Check amount: Party size: COMPUTE TIP Tips and totals (per person) Tip: 15% 25% Total: 15% 20% 20% 25% Empty or incorrect value(s)!
Please try to keep your UI similar to the one shown. Even if your UI is different, please make
sure to use the identifiers shown in the next figure for the key widgets in the UI. This is
very important, as we will use these identifiers to automatically test your app. The identifiers are
also listed next to the figure for your (copy-and-paste) convenience.
TipCalculator
Check amount: 120
Party size:
"buttonCompute
"TeenPercent TipValue"
Tip: 15% 5
"checkAmountValue"
"partySizeValue"
COMPUTE TIP
TwentyPercent TipValue"
20% 6
"twentyPercent TotalValue"
"fifteenPercentTotalValue
Total: 15% 35 20% 36
"twentyfivePercent TipValue"
25% 8
"twentyfivePercentTotaValue
25% 38
Identifiers:
"checkAmountValue"
"partySizeValue"
"buttonCompute"
"fifteenPercentTipValue"
"twentyPercentTipValue"
"twentyfive Percent TipValue"
"fifteenPercentTotalValue"
"twentyPercentTotalValue"
"twentyfive Percent TotalValue"
For example, in the XML layout file for your app, the entry for the text field used to input the
check amount should have the following ID: android:id="@+id/checkAmountValue". For
another example, the entry for the button used to trigger the computation of tips and totals
should have the following ID: android:id="@+id/buttonCompute".
Transcribed Image Text:Please try to keep your UI similar to the one shown. Even if your UI is different, please make sure to use the identifiers shown in the next figure for the key widgets in the UI. This is very important, as we will use these identifiers to automatically test your app. The identifiers are also listed next to the figure for your (copy-and-paste) convenience. TipCalculator Check amount: 120 Party size: "buttonCompute "TeenPercent TipValue" Tip: 15% 5 "checkAmountValue" "partySizeValue" COMPUTE TIP TwentyPercent TipValue" 20% 6 "twentyPercent TotalValue" "fifteenPercentTotalValue Total: 15% 35 20% 36 "twentyfivePercent TipValue" 25% 8 "twentyfivePercentTotaValue 25% 38 Identifiers: "checkAmountValue" "partySizeValue" "buttonCompute" "fifteenPercentTipValue" "twentyPercentTipValue" "twentyfive Percent TipValue" "fifteenPercentTotalValue" "twentyPercentTotalValue" "twentyfive Percent TotalValue" For example, in the XML layout file for your app, the entry for the text field used to input the check amount should have the following ID: android:id="@+id/checkAmountValue". For another example, the entry for the button used to trigger the computation of tips and totals should have the following ID: android:id="@+id/buttonCompute".
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education