
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Topic Video
Question
Software Engineering
Really need help with this program please.

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)!

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
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.Similar questions
- What are all the different kinds of characters and strings that may be used in Java?arrow_forwardC++ What one topic did you learn about that was most noteworthy What was your favorite topic? What was your least favorite topic? Why? What other topics (s) would you like to see covered in this course(c++)? What topic(s) would you like to see removed from the course?arrow_forwardPlease help me in creating any of the games or applications below using java. Both the list of the games and applications and the requirements that the program must have are belowarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education