Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please do this in begginner java language. 1) Sum of two numbers: Write a program that asks for two integers from the user and stores
please do this in begginner java language.
1) Sum of two numbers: Write a program that asks for two integers from the user and stores them in variables. Then store the sum in a variable named result. Display your output in equation form. (Ex. [num1] + [num2] = [sum] ] 2) Revenue Rrediction: The Online Retail division of Amazon generates a percentage of total revenue for the company. Using on that percentage, write a program that will predict how much revenue the retail division will generate based on the amount of revenue Amazon reports for the year. The user wil1 input the total revenue and the percentage of total revenue. Display your output in the format below: 3) Sales Tax: Write a program that will compute the total sales tax when qiven a purchase amount. The user will input the purchase amount, state sales tax percent and the county sales tax porcent. Display your output in the format below: 4) Restaurant Bi11: Write a program that computes the tax and tip on a restaurant bill for a patron based on the meal charge. The user will input the tax percentage, the tip percentage, and the cost of the meal. The tip amount should be calculated after adding the tax amount. Display your output in the format below: 5) Average of Values: Write a program that stores five numbers in five different variables. The user will input the five numbers. It also stores the value 5 in a constant named TOTAL_NUM_VALUES. The program should first calculate the sum of the five variables. and store the result in a variable named sum. Then the program should divide the sum variable by the TOTAL,NUM VALUss constant to get the average. Store the average in a variable named avg. Display your output in the format below: The sum of the five numbers is: [sum] The average of the five numbers is: [avg] 6) Annual Pay: Write a program that defines the following variables: payAmount - This variable will hold the amount of pay the employee earns each pay period. payperiods - This variable will hold the number of pay periods in a year. annualpay - This variable will hold the employee's total annual pay, which will be calculated. The program should calculate the employee's total annual pay by multiplying the employee's pay amount by the number of pay periods in a year and store the result in the annual pay variable. The user will input the number of pay periods and the amount earned each pay period. Display your output in the format below Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started