Write a java program that asks for the name, hours worked, and hourly rate of an employee. The program will then compute for the basic salary as hours worked times hourly rate and the bonuses if: Number of hours greater than 45 gets a Bonus of 100 Number of hours > 40 and <= 45 gets a Bonus of 50 Number of hours > 35 and <= 40 gets a bonus of 25 Display the basic salary, bonus, and total salary (basic + bonus) for the day.
Q: Write a Java program Primes that finds all possible prime numbers in the range of (1, n], where 1 <…
A: For finding prime number or not, we have to check whether there are divisors or not from 2 to square…
Q: Write a program in java to accept basicpay,hra, from the employee. Calculate grosspay which is…
A: Given:
Q: ite a JAVA procedural program for an artist who is creating art instillation “experiences”…
A: Given Write a JAVA procedural program for an artist who is creating art instillation “experiences”…
Q: Write a Java program that calculates and prints the monthly pay for an employee. The net pay is…
A: Actually, program is an executable software that runs on a computer.
Q: Write a java program that asks f laps that they have run around a racetrack. Then, promnt he user to…
A: Here we need to introduce an array to store timings of all laps. Then we need to find minimum lap…
Q: Using java language, write a method drivingCost() with input parameters drivenMiles, milesPerGallon,…
A: First, we will input the values of "milesPerGallon" and "dollarsPerGallon". Then inside the print…
Q: Write a JAVA procedural program for an artist who is creating art instillation “experiences”…
A: Java: Java is a high level object oriented programming language. Procedural programming consists of…
Q: Write a Java program that prompts the user to enter an integer and reports whether the integer is a…
A: Create a class with name Check_pal, and initialize a global variable number of class methods.Create…
Q: Write a simple java program that accepts as input: a student’s name, ID number, Major, GPA, and…
A: Input from User: Student’s name ID number Major GPA Bi-weekly paycheck Output to Console: All the…
Q: Write a program java that reads a number of feet from the user, then prints out either the same…
A: Start Input feet If the feet is less than 1 print Number out of range endif else if feet < 5280…
Q: Write a java program to calculate the Gross, Tax, Net for 10 employees. Assuming: The input is…
A: import java.util.Scanner; public class Main{ public static void main(String[] args) {…
Q: Write a Java program that does the following: Write a Java program that does the following: 1. In…
A: The program for the above-given question is given below.
Q: Write a program that prompts for name and salary of an employee. Here the salary will denote an…
A: required: Write a program that prompts for the name and salary of an employee. Here the salary will…
Q: Write a program that accepts a number of minutes and converts it both to hours and days. For…
A: Java program to convert the number of minutes into hours and days. Prompt the user to enter the…
Q: Write a java program to display the total salary of an employee based on the given conditions:…
A: PROGRAM CODE: import java.util.*; // import utility package of javapublic class Main{…
Q: of her graduation photo. The ladder is placed at 2 feet away from the wall. The angle that is formed…
A: Let consider the given data and construct a triangle as shown below:
Q: Write a complete Java program, including comments, to do the following: Your program will compute…
A: The complete code given below with output .
Q: Write a java program that generate two random numbers, number1 and number2, number1 between 12 and…
A: Here in this question last conditions are same but awards are different. I think that's a typo, you…
Q: Write a java program that generate two random numbers, number1 and number2, number1 between 12 and…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: Write an Artificial intelligent JAVA code for a game of blackjack. Please LET IT BE SIMPLE ( no…
A: import java.awt.Color; import java.net.URL; import java.util.Random; import javax.swing.ImageIcon;…
Q: Write a java program that ask user to enter the grade depending on the below grading system : a.…
A: In the solution of the given problem to find the grade of a student if-else ladder statement is…
Q: Write a complete Java program that prompts for and reads three quiz grades for each student in a…
A: for j=0; j<4; j++, do Initialize total=0, avg=0 for i=0; i<3; i++, read the marks. find the…
Q: THIS IS MEANT TO BE IN JAVA So far we've learned variables, branches, loops, and some array. The…
A: Here I have taken input from the user and stored it into a variable. Next, I have checked for the…
Q: Write a Java Code for the following question along with the output. Weight of a hill pattern Given,…
A: Required: java program
Q: BILLING NOTICE Account #: Hame: Period Covered : 03-25-2014 - 04-24 2014 Consumer Type : Residential…
A: Above screenshot is similar to an electricity bill , where we used a formula :- Net amount payable=(…
Q: Write a java program that generate two random numbers, number1 and number2, number1 between 5 and 15…
A: import java.util.Scanner;import java.util.Random;public class Main { public static void…
Q: write java program that prompt the student to enter an integer number(between 1 till 5 inclusive)…
A: Code :-…
Q: IN JAVA. Write a program that takes in a line of text as input, and outputs that line of text in…
A: Program description: The java program objective is to reverse the user input string into reverse…
Q: Using Java programming language write a program to manage a hotel with 24 rooms; 10 rooms are…
A: Given 10 rooms are Executive, with price Gh ₵ 2500.00 per night,7 rooms are Chalets, with amounts…
Q: Write a java program that generate two random numbers, number1 and number2, numberl between 12 and…
A: Program to determine whether the user wins. Pseudocode: number1 = Generate random integers in range…
Q: Write Java program to do the following: a filled JList with 10 books and their corresponding prices…
A: Code import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;…
Q: Write java program that will calculate the amount to be paid for electrical consumption. This…
A: Objective: This program would determine the bill amount or electricity consumption for customers.…
Q: Q1: Write a java program that includes a method called Reader that reads unlimited number from the…
A: ANSWER:-
Q: Write a java program, This program should play a game of dice: you against the computer... (well,…
A: Game playing with two dies And one die roll by the Computer and another one is rolled by the game…
Q: Write a program in java that completes the following prompt: You are a fundraising distributor who…
A: import java.util.Scanner; class Fundraiser { public static void main(String args[]){…
Q: Write a Java program correctly that generates a report of proof of vaccination against COVID-19 for…
A: We need to write Java program for given specifications.
Q: I have been working on writing a java program (that goes with another I just got finished- see below…
A: The changes are highlighted. for showing output, i have changed number of students 10 to 1. you can…
Q: Write a java program that determines a student’s grade. The program will accept 3 scores and…
A: The above program is answered bellow
Q: Write a JAVA procedural program for an artist who is creating art instillation “experiences”…
A: Algorithms: Create a function a function to get length. Create a function a function to get…
Q: Write a Java program that asks the user to input the jackets quality in any letter case (HQL for…
A: Find Your Code Below
Q: Write a Java Program to Find Area of Square, Rectangle and Circle using constructor Overloading.
A: Constructors have same name of the class but with number of arguments. Constructors can be…
Q: hat will input the following data: Student Name, Average, Tuition Fee and output Total Tuition Fee.…
A: Student Name, Average, Tuition Fee and output Total Tuition Fee. 95 – 100…
Q: Write a Java program that prompt user to input 10 students in a class. Then, prompt user to input…
A: The code given here is
Q: Write a Java program that lets the user enter the monthly interest rate, number of years, and loan…
A: In this question we are asked to display monthly payment and total payment as per the formula given.…
Q: Write a complete Java program that prints out the following information: 1. Ask the user to enter…
A: GIVEN: Create a Java program that gets the last three digits of the student ID from the user. Then…
Q: Write a java program that calculates a customers' electric bill. The program should ask the user to…
A: Program Approach:- 1. Import util package 2. Create the user-defined class whose name is Main 3.…
Q: Write a java program to find the batting average of user taken total runs, user inputted number of…
A: start input total runs , number of innings , notout calculate batting average…
Q: Write a method java program using the following . base shipping price: 2 pounds or less $2.00, 2-5…
A: Program instructions: Declare and initialize variables shippingPrice and basePrice for holding…
Q: An English teacher is checking the length of words his students are using in their written essays.…
A: /* Java program as per the given requirement in question */ import java.text.DecimalFormat;import…
Q: Write a Java program to take orders for a mobile shop and print a bill, Your program asks for the…
A: Required: Write a Java program to take orders for a mobile shop and print a bill, Your program asks…
Write a java
Number of hours greater than 45 gets a Bonus of 100
Number of hours > 40 and <= 45 gets a Bonus of 50
Number of hours > 35 and <= 40 gets a bonus of 25
Display the basic salary, bonus, and total salary (basic + bonus) for the day.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Write a java program to calculate the Gross, Tax, Net for 10 employees. Assuming: The input is First Name, Middle Initial, Last Name, Id number, Hours worked, Rate per Hour. constant state tax percentage 7%, Fed tax percentage 15% hours worked must be between 0 and 60 hours Rate per hour must be between $15.00 and $35.00 Gross calculations: If hours worked are 0 to 40 (Gross= Hours worked * Rate per Hour) If hours greater than 40 (Gross= 40 * Rate per Hour + ( Hours worked - 40 )* Rate per Hour hours * 1.5)) State Tax = Gross * State Tax percentage Fed Tax = Gross * Fed Tax percentage Net = Gross - (State Tax + Fed Tax) Output: Display: MUST BE FORMATTED and as a table Last Name First Name MI Id# Rate Per Hour Hours Worked State Tax Fed tax Gross Net Smith mike x 123 $10.00 40 $28.00 $60.00 $400,00 $312.00 : Directions: 1) submit…Write a java program to display the total salary of an employee based on the given conditions: Basic : Allowance : <300 : 5% of Basic 300 - 599 : 10% of Basic 600 - 1200 : 15% of Basic >1201 : 20% of Basic 3% of Basic is the tax for all employees, tax = Basic * 0.03; TotalSalary = Basic + Allowance - tax;Write a java program that determines a student’s grade. The program will accept 3 scores and computes the average score. Determine the grade based on the following rules: - If the average score is equal or greater than 90, the grade is A. - If the average score is greater than or equal to 70 and less than 90, the grade is B. - If the average score is greater than or equal to 50 and less than 70, the grade is C. - If the average score is less than 50, the grade is F.
- in Java Write a program that establishes two savings accounts with saver1 having account number10002 with an initial balance of $2,000, and saver2 having account 10003 with an initialbalance of $3,000. Set a common rate of interest at 5% per year. At the end of each month,update the balance by adding one month’s interest to the balance, so that the balancecompounds monthly. Print an output that displays the month number and the account numberand the balance for each of the two accounts. Use month 0 to display the initial balances, month1 to display the balances after the first month’s interest, and so on. At the end of the year,display the total balance for both accounts combined, like this:Output:Monthly balances for one year with 0.05 annual interest:Month Account # Balance Account # Balance----- --------- ------- --------- ------- 0 10002 2000.00 10003 3000.00 1 10002 2008.33 10003 3012.50 2 10002 2016.70 10003 3025.05 3 10002 2025.10 10003 3037.66 4 10002 2033.54 10003 3050.31 5…Write java program that will calculate the amount to be paid for electrical consumption. This problem is to handle electric billing for customers. The billing is depending on the type of the customer account. There are two types of customers account; i) fixed rate method and 2) variable rate method in the case of fixed rate method. The minimum monthly charge of RM20.00 is assessed if the consumption is less than or equal 100 kwh( kilowatt-hours). Otherwise, the rate of RM 0.22 per kWh is charged for the first 100 kWh and the rate of RM 0.33 per kWh is charged for the additional consumption. In the case of variable rate method, the rate of RM 0.22 per kWh is charged for the consumption less than or equal to 100 kWh. Any additional consumption is charged at RM 0.35 per kWh.Write a Java program that lets the user enter the monthly interest rate, number of years, and loan amount, and computes monthly payment and total payment and print both results each on a separate line. The total payment = monthlyPayment * 12 * numberOfYears monthy payment = (loan amount)*(monthy interest rate)/(1 - (1/(1+monthly interest rate)^(number of years * 12)))
- In this java project, you are asked to write a program for a Pizza store to process pizza orders. Suppose that they receive 10 orders in one hour, each order includes the following information: Name of the customer, size of the pizza, topping of the pizza, and distance for delivery. The charge information on a order: 1. There are 3 sizes of pizza: small, medium and large. Basic price of a pizza is: small - $8, medium-$12; large-$16. 2. No additional charge for Cheese topping. For pepperoni topping, the additional charge is $1. For sausage topping, the additional charge is $2. Note that the additional charge is same for different sizes of pizzas. 3. If the distance is 0 (i.e. self-pickup), no delivery fee. If it is between 0 and 1 mile, the delivery fee is $2. If it is more than 1 mile, it is $2 plus $0.50/mile for mileage over 1 (i.e. if it is 1.5 miles , the total charge is 2 + 0.5*(1.5 -1) = 2.25). Requirements on your programs: 1. Create and define a PizzaOrder class. Basic…Write a Java program that asks a user to enter his/her age. If the user's age is in the range of [18, 150] (18 ≤ age ≤ 150), program prints “Old enough!”, when the given age is smaller than the given range it must print “Too young”, and otherwise prints "Incorrect age."Write a Java program for a Play-House Manager, who would like to calculate the total profit from selling tickets of the Drama. There are 3 types of tickets: Balcony (120 AED), VIP (70 AED) and Basic (40 AED). The manager has bills and salaries to pay. Therefore, the profit is equal to (incomes – expenses). last time it was wrong code
- You are teaching a class and decide to curve the exam grades. Write a Java program that reads student scores, finds the best score, and then assigns grades based on the following curve: A student earns an A if their score within 10 points of the best score A student earns a B if their score within 20 points of the best score A student earns a C if their score within 30 points of the best score A student earns a D if their score within 40 points of the best score Otherwise, the student earns an F The user is prompted to enter the number of students first, then all of the scores. Each grade is printed on a single line. Input 4 40 55 70 58 Output C B A BWrite a java program that can suggest an activity based on the temperature. If the temperature is between 20 to 40 degrees Fahrenheit, suggest the user go skiing; if the temperature is between 41 to 60 degrees Fahrenheit, suggest the user go hiking; if the temperature is in the range of 61 to 80, suggest swimming. For all the temperatures out of these ranges (too cold or too hot), then suggest staying inside.In Java Language, Write a Program that will compute the total tuition fee of a student. Input the name and student number of the student. Input the subject enrolled, the number of units, and the cost per unit to compute the total tuitionNote* Use methods and constructor