Question: Task: Build an Android Application Your task is to build an Android application that satisfies the following requirements: Activities: The app should have two activities:

Task: Build an Android Application
Your task is to build an Android application that satisfies the following requirements:
Activities:
The app should have two activities:
MainActivity: Implements the main functionality of the application.AboutActivity: Displays your full name (as per college records) and your student ID.
Menu:
The AboutActivity should be accessible through a menu in MainActivity.
Back Button:
A back button should appear in the ActionBar of the AboutActivity.The back button should navigate the user back to the MainActivity.This should be configured through the app's settings (via manifest or action bar configuration).
MainActivity Functionality:
Input:
Read the following input from the user:
Number of hours worked.Hourly rate.
Pay Calculation:
Calculate the pay using the following formula:
If the number of hours is less than or equal to 40: pay=numberofhourshourlyrate\text{pay}=\text{number of hours}\times \text{hourly rate}pay=numberofhourshourlyrateIf the number of hours is greater than 40: pay=(numberofhours40)hourlyrate1.5+40hourlyrate\text{pay}=(\text{number of hours}-40)\times \text{hourly rate}\times 1.5+40\times \text{hourly rate}pay=(numberofhours40)hourlyrate1.5+40hourlyrate
Tax Calculation:
Calculate the tax using the formula: tax=pay0.18\text{tax}=\text{pay}\times 0.18tax=pay0.18
Output:
Present the following data to the user:
Pay.Overtime pay.Total pay.Tax.
Marking Scheme:
AboutActivity: 2 points
Menu Implementation: 2 points
MainActivity:
Input Implementation: 2 pointsCalculation: 2 pointsOutput Implementation: 2 points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!