Question: make a java program of that questions inless you need to edit it's safer to stay in Protected View Enable Editing 1 13 14 1.





make a java program of that questions
inless you need to edit it's safer to stay in Protected View Enable Editing 1 13 14 1. Declare the required variables, then ask user to enter employee's full name, Id and monthly salary from keyboard, then display the values like this: Employee's name is James Cook, employee's id is 34256, and employee's monthly salary is $4533.5 Console example: Enter employee's full name Enter employee's id Enter employee's monthly salary: Employee's name is James Cook, employee's id is 34256, and employee's monthly salary is $4533.5 Dane Cool 34256 4533.50 2. Declare variables to store a first name and a last name, and initialize with your own first name and last name. Then declare two character variables, use correct String class methods to get first character of first name and last character of last name and display like this: My first name is John, my last name is Hopper, first character in my first name is 'y' and last character in my last name is 'r' Console example: My first name is John, my last name is Hopper, first character in my first name is and last character in my last name is 'n 3. Write a program that displays the following pattern: w 4. Ontario sales tax rate is 1396. Ask user to enter sales amount from keyboard, then calculate tax amount and display in the console. Decimal part must be rounded to hundredth (cents). Console example: Enter sales amount: 45609 Sales tax amount is $5929.17 5. An Internet provider charges for megabytes according to monthly traffic volume: Traffic (MB) Rate (S/MB) 5000 or more 91 2000 - 4999 0.015 1000 - 1999 0.02 1-999 0.025 Ask user to enter monthly traffic in megabytes, calculate the monthly bill and display. Console example: Please enter Internet monthly traffic in megabytes 3408 Monthly bill for 3400MB traffic is $51.0 6. Use JOptionPane class to show the messages and let user enter the data in the dialog box for this exercise. You need to calculate average score by a game for a team. Ask the user a team name, then number of games played, then total points in all games. Then calculate average score by game, and show to the user. Dialog example: Input ? Enter the team's name Real Madrid OK Cancel I Input ? Enter number of games the team played 25 OK Cancel N 6. Use JOptionPane class to show the messages and let user enter the data in the dialog box for this exercise. You need to calculate average score by a game for a tearn. Ask the user a team name, then number of games played, then total points in all games. Then calculate average score by game, and show to the user. Dialog example: Input ? Enter the team's name Real Madrid OK Cancel I I Input ? Enter number of games the team played 25 OK Cancel BE W Review View Help Enable Editing ss you need to edit, it's safer to stay in Protected View 13 4 12 6 1 9-10 Input ? Enter number of games the team played 25 OK Cancel Input ? Enter total scores the team accumulated in all games 40 OK Cancel Message i The average game points for the team Real Madrid is 1.6 OK SUBMISSION
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
