Write a program in java to accept basicpay,hra, from the employee. Calculate grosspay which is basicpay+hra Get the input from the user using dialog box and display the gross salary also using dialog box. Based on the salary grosspay>-4000 then display "high income group" grosspay from 2000 to 3999 display "medium income group" grosspay <2000 display "low income group"
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 complete Java program to handle weather forecasts. The program should prompt the user for…
A: The answer is given below:-
Q: Question 2: Write a Java program that prompts the user to enter an integer consisting of 3 digits,…
A: According to the Question below the Solution: Output:
Q: Write java program that prompt the student to enter an integer number (between 1 till 5 inclusive).…
A: import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Scanner; public…
Q: Write a java language program that will compute the salary of the employee. The program will accept…
A: public class Exam1{ public static void main(String[] args) { Scanner sc= new…
Q: You are asked to write a java program to prepare for the Lebanese parliament elections. Your program…
A: The program ask user to enter his name, age and gender. If the age entered by the user is less than…
Q: QUESTION 13 Write a Java program that prompts the user to enter the monthly salary amount of an…
A: I give the code in Java along with output and code screenshot
Q: (1) Write a Java program named ConeVolume. (1 mark) (2) The program should read and store Cone's…
A: PROGRAM CODE: import java.util.*; // import java utility packagepublic class Main{…
Q: Create a Java program that will compute for the total salary of an employee. Hourly rate - 168.76…
A: Code: class NetSalary{ public static void main(String arg[]) { double gs,it,pt,pf,netSalary;…
Q: An internet service provider has three different subscription packages for its customers:…
A: In this JAVA program, We have to calculate the total bill for number of hour watched and package…
Q: 1. Create a java program that accept Three (3) Student number with Three (3) Student Name. After…
A: Let's understand step by step : 1. First of declare stu1,stu2,stu3 of integer type to store…
Q: You are asked to write a java program to prepare for the Lebanese parliament elections. Your program…
A: I have provided JAVA CODE along with OUTPUT SCREENSHOT---------------
Q: Write a structured Java program to calculate the parking fare for customers
A: Program Explanation: Import the text and util classes Define a class for implementing the parking…
Q: Write a Java program to do the following task: Assign your id number (example.. 2014299123) to an…
A: public class Q2{ public static void main(String args[]) { int id_num=2014299600; // assign…
Q: You are asked to write a java program for an embassy to help with the visa process. Your program…
A: To solve the given question first you need to take input in the given format then you have to…
Q: ) The Bahraini Charity Club is conducting a fundraiser by selling chilli dinners to go. The price is…
A: PROGRAM INTRODUCTION: Import the required libraries. Start the definition of the main function.…
Q: n Java: Many documents use a specific format for a person's name. Write a program whose input is:…
A: The Scanner in the first step is used to take the input from the user and then print the result n…
Q: Write a Java program to do the following task: Assign your id number (example. 2019293085) to an…
A: Here is the solution, // your code starts herepublic class Demo{ public static void main(String…
Q: Write a Java program to do the following task: Assign your id number (example.. 2014299123) to an…
A: The complete code is given below.
Q: discount chart should have three columns. The first column lists the items’ original price tag in…
A: Code: import java.util.Scanner;class Main{ public static double getValidPriceTag(Scanner…
Q: After calculating the ranking score according to the ALES (Academic Postgraduate Exam) score,…
A: //Answer in step2
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 program that displays a simulated paycheck. The program should ask the user to enter the…
A: Define header file <iostream>, <cstring> , <string> and <iomanip>. Define…
Q: b. Weight c. Height 2. Compute the BMI of that individual 3. Make the following decisions if:…
A: Define packages java.util and java.lang for i/o operations and fundamental classes respectively…
Q: Write a program that lets a user calculate their body mass index . BMI is calculated using height…
A: Java program to take height and weight from the user and print BMI on the console.
Q: write java program that prompt the student to enter an integer number(between 1 till 5 inclusive)…
A: Code :-…
Q: The Body Mass Index – BMI is a parameter used to measure the health status of an individual. Various…
A: Start Variables name with type string and weight, height as type double Define constructor BMI…
Q: Consider a bank named ABC. Create some customers (minimum 10) of that bank. Each customer has a…
A:
Q: program in java that allows the user to enter his name and his monthly salary.then calculate the…
A: Code import java.util.*; public class ScannerNextFloatExample1 { public static void…
Q: Write a program that accepts the names of three political parties and the number of votes each…
A: Actually, program is a executable software that runs on a computer.
Q: Write a Java program code: Scenario: One of the renowned supermarket in Dhaka City, “Shwapno” is…
A: Program with comments: //custom exceptionpublic class NameException extends Exception{ //…
Q: Duke Shirts sells Java t-shirts for $24.95 each, but discounts are possible for quantities as…
A: Java Code:- import java.util.*; public class Main { public static void main(String[] args)…
Q: Solve by Java Problem: An online grocery store sells items on a web page. A user adds items to a…
A: Problem: An online grocery store sells items on a web page. A user adds items to a basket and he…
Q: In java Problem: An online grocery store sells items on a web page. A user adds items to a basket…
A: Main.java import java.io.File; // Import the File class import java.io.FileNotFoundException; //…
Q: Write a Java program correctly that generates a receipt for a delivery company, called “Montréal…
A: Here is the code:(montrealExpress.java) import java.util.Scanner; public class montrealExpress{…
Q: Develop a letter-guessing game in this assignment. Requirements: 1). When the game begins, generate…
A: The java code is given below:
Q: Write a program that uses different operators; and Use the methods of the Math class. nstructions:…
A: PROGRAM EXPLANATION Create a class as given in the question. Take 5 grades as input from the user.…
Q: Write a Java program to read the monthly salary amount of the employee and then print the category…
A: PROGRAM STRUCTURE: Import the required packages. Start the definition of the public class. Start…
Q: draw the process flow for calculating the Income tax of an employee. Write a java program which…
A: Income tax = Slab rate(percentage) / Annual income * 100 Annual Income=monthly income * 12
Q: Write a Java program to do the following task: Assign your id number (example .. 2019293086) to an…
A: I have given an answer in step 2.
Q: Write a program in Java Write a program that calculates and displays a person’s body mass index…
A: import java.util.Scanner; public class Main{ //Function to calculate the BMI and printing the…
Q: Write a program in JAVA to read the CGPA of student and display its type according to the following…
A: Take input from user using scanner class Check the input is between range of <1.99 to 4.00 and if…
Q: JAVA CODE Write a program that quizzes the user on the names of the capital cities for all the…
A: Code snippet:
Q: Write a Java program to do the following task: Assign your id number (example .. 2019293081) to an…
A: Program: //import Scanner class import java.util.Scanner; //main class public class Main {…
Q: Write a program in Java to calculate how many respective coins are there in the wallet.
A: START Declare s, money, p50=0, p25=0,p20=0,p10=0,p5=0, rs, p Display "Enter amount in wallet:" input…
Q: linear equation can be solved using Cramer’s rule given in Programming. In Java Write a program that…
A: Given: A linear equation can be solved using Cramer’s rule given in Programming. In Java Write a…
Q: Create a java program 8. Speedy, Still Not, Gonzales Recall that the general speed limits in the…
A: Given, General speed limits in the Philippines is 60 km/h on highways Speed limit is 100 km/h on…
Q: Write a Java program to do the following task: Assign your id number (example .. 2019293086) to an…
A: Required: Write a Java program to do the following task: Assign your id number (example ..…
Q: Write a program that prompts the user to enter a number within the range of 1 through 10. The…
A: JAVA Code for above: import java.io.*;import java.util.Scanner; class Program { public static void…
Step by step
Solved in 3 steps with 3 images
- Write a program in Java that would ask the clerk to enter the total amount of the customer’s order. The program will then calculate a seven percent (7%) sales tax. Calculate commission based on the following: order amount id="mce_marker" - $200 commission is 2%, order amount $201 - $400 commission is 3%, order amount $401 - $600 commission is 4%, order amount > $600 commission is 5%. The program will display the following: a) The amount of customer’s order (eg. $500.00 or id="mce_marker",000.00) b) The tax amount c) The total amount including tax added d) Commission Amount e) The customer will make ten orders, display the average of the total order and the sum of all orders. You must use at least two methods. Write the output to a file named “Order.txt” The program should also display “Thanks for your business and please come again.” Output: The amount of the Customer’s order $XXX, XXX.XX The tax amount is $XXX,XXX.XX The total Amount…write a program in Java that would ask the clerk to enter the total amount of the customer’s order. The program will then calculate a seven percent (7%) sales tax. Commission is computed based on the following: order amount id="mce_marker" - $200 commission is 2%, order amount $201 - $400 commission is 3%, order amount $401 - $600 commission is 4%, order amount > $600 commission is 5%, The program will display the following: a) The amount of customer’s order (eg. $500.00 or id="mce_marker",000.00) b) The tax amount c) The total amount including tax added d) Commission Amount e) The customer will make ten orders, display the average of the total order and the sum of all orders. You must use at least two methods. Write the output to a file named “Order.txt” The program should also display “Thanks for your business and please come again.”In javascript, the cost to ship a package is a flat fee of 75 cents plus 25 cents per pound. 1. Declare a constant named CENTS_PER_POUND and initialize with 25. 2. Get the shipping weight from user input storing the weight into shipWeightPounds. 3. Using FLAT_FEE_CENTS and CENTS_PER_POUND constants, assign shipCostCents with the cost of shipping a package weighing shipWeightPounds.
- Java - Programming Develop a letter-guessing game in this assignment.Requirements:1). When the game begins, generate a random letter between A and Z;2). Display a message "I have a secret letter (A to Z), can you guess what it is?";3). Read the user's answer;4). Compare the user's answer and the random secret letter generated;5). If the user answer is before the random secret letter in the alphabet, display "Incorrect. Trysomething later in the alphabet" and go to Step 2;6). If the user answer is after the random secret letter in the alphabet, display "Incorrect. Trysomething earlier in the alphabet." and go to Step 2;7). If the user answer is the same as the random secret letter, display "Well done. Want to playagain (y/n)?";8). Read the user's answer. If the answer is 'y', go to Step 1. If the answer is 'n', go to Step 9;9). Display "Thanks for playing the game. Goodbye!". The program stops.Run your program several times. Take screenshots. Submit your Java file with the screenshotsplease code in java The cost to ship a package is a flat fee of 75 cents plus 25 cents per pound.1. Declare a constant named CENTS_PER_POUND and initialize with 25.2. Get the shipping weight from user input storing the weight into shipWeightPounds.3. Using FLAT_FEE_CENTS and CENTS_PER_POUND constants, assign shipCostCents with the cost of shipping a package weighing shipWeightPounds.Please refer the image belowAn internet service provider has three different subscription packages for its customers: Package A: for RM9.95 per month 10 hours of access are provided. Additional hours are RM2.00 per hour. Package B: for RM13.95 per month 20 hours of access are provided. Additional hours are RM 1.00 per hour Package C: for RM 19.95 per month unlimited access is provided. Write a JAVA program using if/else or switch selection to calculates a customer’s monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should then display the total charges.
- Create a Java program that will compute for the total salary of an employee.Hourly rate - 168.76 PhpOvertime rate - 250.00 PhpDeductions > Loan - 1200.00 Php > SSS - 330.00 Php > Pag-ibig - 200.00 Php > Philhealth - 520.00 PhpPrompt the user to entry the following:> Employee Name> Employee ID> Employee Position> Total hours of work> Total hours of overtime workWrite a Java regular expression for each of the following: a. Phone numbers, such as (609) 555-1234 b. Social Security numbers, such as 123-45-6789 c. Dates, such as December 31, 1999in java: Write a program that reads the following information and prints a payroll statement: Employee’s name (e.g., Smith) Number of hours worked in a week (e.g., 10) Hourly pay rate (e.g., 9.75) Federal tax withholding rate (e.g., 20%) State tax withholding rate (e.g., 9%) Your program must use proper formatting for the output either by using the printf command or String.format
- Duke Shirts sells Java t-shirts for $24.95 each, but discounts are possible for quantities as follows: 1 or 2 shirts, no discount and total shipping is $6.993-6 shirts, discount is 10% and total shipping is $5.497-9 shirts, discount is 20% and total shipping is $4.0010 or more shirts, discount is 30% and shipping is free Write a Java program that prompts the user for the number of shirts required. The program should then print the extended price* of the shirts, the shipping charges, and the total cost of the order. Use currency format where appropriate. *Note extended cost is the unit cost multiplied by the number of those items that were purchased with the discount appliedWrite a Java program to do the following task: Assign your id number (example .. 2019293081) to an integer variable id_num Using reminder operator% on the id_num get the last 3 digits (081) and store it in num If the num is between 0 and 300 (both included), display "You are in Group 1" Otherwise if the num is between 301 and 600 (both included), display "You are in Group 2" Otherwise (num is between 601 and 999 (both included) , display "You are in Group 3" Save your file as Q2.Java and upload it.Write an application that allows a user to enter any number of student quiz scores, as integers, until the user enters 99. If the score entered is less than 0 or more than 10, display Score must be between 10 and 0 and do not use the score. After all the scores have been entered, display the number of valid scores entered, the highest score, the lowest score, and the arithmetic average. ***Java please***