This Android app is a Tip Calculator that quickly computes the tip based on service cost and quality, with options to select service level and round to the nearest whole number.

تفاصيل العمل

Application Description

This Android application is a simple Tip Calculator that helps users quickly

calculate how much tip they should leave based on the cost of service and the

quality of service they received. It provides an intuitive interface with options

to select different service levels, automatically calculate the tip, and even

round it to the nearest whole number for convenience.

Features

1. Service Cost Input

o User enters the total cost of service in a text field (with

numeric/decimal input type).

2. Service Quality Selection

o Radio buttons allow choosing between:

Amazing (20%)

Good (18%)

Ok (15%)

3. Tip Calculation

o On pressing the "Calculate" button, the app multiplies the cost

with the selected tip percentage.

4. Rounding Option

o A switch (SwitchCompat) lets the user round up the calculated tip

to the nearest whole number.

5. Result Display

o The calculated tip is displayed in a TextView dynamically.

6. Error Handling

o If no cost is entered, the app shows an error message in the input

field (Required!).

7. Snackbar with Reset Option

o After calculation, a Snackbar appears with a "Proceed" action that

resets everything:

Clears input field.

Resets radio button to default (Amazing).

Switch checked back to true.

Tip label reset to “Tip Amount”.

8. State Persistence

o The app uses onSaveInstanceState to save the calculated total

when the screen is rotated or recreated.

ملفات مرفقة

بطاقة العمل

اسم المستقل
عدد الإعجابات
0
عدد المشاهدات
2
تاريخ الإضافة
تاريخ الإنجاز
المهارات