Write a java program to find the depreciation using the amount = 1000 and rate = -7 and year is 5
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 for a Play-House Manager, who would like to calculate the total profit from…
A: Here is java code to implement above problem.
Q: Write a JAVA program, to check whether a given number is positive number or negative number
A: Please find the answer below :
Q: Write a Java program to take two numbers from the user and print whichever value is nearest to the…
A: Required:- Write a Java program to take two numbers from the user and print whichever value is…
Q: Write a Java program to input 20 integer numbers then: a. Calculate and print the sum of all number…
A: PROGRAM EXPLANATION: Import java.util package. Create the main class and define the main method.…
Q: Write a Java program that prompts the user to input the elapsed time for an event in seconds. The…
A: given Write a Java program that prompts the user to input the elapsed time for an event in seconds.…
Q: Write a Java program that prompts for and reads in the sales for cach of 5 sales persons in a…
A: I have provided Java code which will find out the total and average sales of 5 persons. Also,…
Q: write a java program that will calculate the sale based on the price per unit and the number of…
A: ALGORITHM:- 1. Take input from user. 2. Calculate the results. 3. Print the result. 4. Finish.
Q: Write a java program to print the following pattern: * *** ***** ******* *********…
A: Code: import java.util.Scanner; public class Main { public static void main(String args[]) { int…
Q: Write a Java program to convert radian to degree
A: RADIAN - It is the standard unit for angle measurement . This standard unit is used in maths .…
Q: Write a Java program to convert minutes into a number of years and days. Test Data Input the number…
A:
Q: Write a Java Program to Check Whether a Number can be Expressed as Sum of Two Prime Numbers.
A: Given: Write a Java Program to Check Whether a Number can be Expressed as Sum of Two Prime…
Q: Write a java program to find the recoil momentum of the atom of an isolated hydrogen atom emits a…
A: Required:- Given the atomic number of atom: 5 and we have to find the energy required to remove the…
Q: Write a java program to find the circumference of the orbit of revolving electron_after taking the…
A: Start input number of orbit input wavelength calculate circumference = n*wavelength display…
Q: Write a Java program that calculates the average student's score and percentage
A: Required: Write a Java program that calculates the average student's score and percentage
Q: Write a java program to find the arc length after taking angle and radius of arc from user.
A: Required:- Write a JAVA program to find the arc length after taking the angle and radius from the…
Q: Write a JAVA program to calculate VAT-Value Added Tax for OMAN
A: VAT or the Value Added Tax is the tax added to the amount of a particular product which denotes the…
Q: Write a Java code to accept marks of a student from 1-100 and display the grade according to the…
A: Conversion of string to integer type value: The util package of java provides Scanner class and it…
Q: Write a Java program that inputs three numbers, finds their sum and average, and displays the result…
A: First we will input the three numbers. Then we will declare two variables "sum" and "avg". Based on…
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 java program to find the values of X, Y and Z[1,10] that satisfy the following equation:…
A:
Q: Write a Java program to read the distance between two points (in Kilometer) and time to travel…
A: The program is written in Java. Please find the Source code in the next step.
Q: Write a Java program to get the mobility after taking magnitude of drift velocity per unit electric…
A: Required:- Write a Java program to get the mobility after taking the magnitude of drift velocity per…
Q: Write the java program for the following problem. The program will accept the values of the radius…
A: Given: To write a java program to calculate volume of code and cylinder for given following…
Q: Write a java program to calculate the final price of the product after applying 25% discount on the…
A: To calculate the final price after discount, we will have to multiply the actual price with the…
Q: Write a Java program that reads the weight in pounds and convert the weight into Kilograms. The…
A: import java.util.Scanner; public class Pounds_to_Kilograms { public static void main(String[]…
Q: Write a Java program that prompts the user to enter the grades and their weight of three Exams. The…
A: Sample Response: //Java program to calculate the final grade by using three grades and its…
Q: Write a Java program that prompts the user to enter two positive integers and find their greatest…
A: Java code: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a JAVA program to read input two integers and print "True"/"False" if the numbers are…
A: If you want to run the code you can run it on "onlinegdb compiler" or make a Main.java class and run…
Q: Write a Java method to compute the future investment value at a given interest rate for a specified…
A: Formula for future investment: Future Investment = Present Investment * (1+(Rate of interest /…
Q: Write a Java Program below Get the value from a user? - Find the Area Of Circle - Find the Average…
A: Please find the answer below
Q: Write a program in java to check whether a person is eligible for marry or not. Consider for men the…
A: Required:- Write a program in java to check whether a person is eligible for marriage or not.…
Q: Write a Java program to read input two integers x,y and then generate a random value either 0 or 1.…
A: Language is one of the most widely used programming language which has been used to create different…
Q: print numbers reversed from 1 to 100.
A: Here, the static recursive method named reverse displays the reverse of a number. In the main method…
Q: Write a Java program that will ask the user to input an integer value between 1 and 100 for a grade.…
A: code: import java.util.Scanner; //class definition public class Main { //main method public…
Q: Write a JAVA program in which an employee enters his/her age(in years) and the program tells whether…
A: Write a JAVA program in which an employee enters his/her age(in years) and the program tells whether…
Q: Write a java program according to these output results: Outout ***Booking Details*** Name of…
A: Solution: Java Program: import java.util.*; // Booking class class Booking { // Declare…
Q: Write a Java program to input and print whether a number is positive, negative or zero
A: In Java programming language, Scanner class is used to get user input, this class is available in…
Q: Write a Java program to print out an upside-down pyramid as below. The program should use loops and…
A: Introduction of the Program: The Java Program takes the levels as input from the user and then the…
Q: Write a Java program that allows the user to enter the expenses’ in term of AED by using a while…
A: 1- In this assignment require, use a while loop to calculate the expense amount till the user does…
Q: Write a java program to find the charge flown through the wire when there is current through a wire…
A: Required:- Write a java program to find the charge flown through the wire when there is current…
Q: Write a well commented java program that prompts the user to enter two numbers, computes the sum,…
A: Code : import java.util.*; public class Numbers { public static void main(String args[]) {…
Q: Write a Java program using switch case which assigns tax of 5%, 10% and 15% depending on the cost of…
A: As per the requirement program is completed. Algorithm: Step 1: Write the main() method Step 2:…
Q: Write a Java program to find the calculate the average of 3 subjects for 5 students using do… while…
A: The do while loop will be run five times for this to accommodate five students. The average can be…
Q: Write a Java program to compute student results and GPA
A: Algorithm: Start Read no.of subjects n Read Mark's Convert Marks into grades by dividing with 10…
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 Java program that prompts the user to enter the grades and their weight of three Exams. The…
A: Import the java utility In main class declare a variable n as integers Declare float variables…
Q: Write a java program to get the commission on a product if you take the 15% commission. You have to…
A: Required:- Write a java program to get the commission on a product if you take the 15% commission.…
Q: Write a Java program that computes how high the ball will be above the ground after x seconds in the…
A: Pseudo code: ----------- height = Get height of building from user ispeed = Get initial speed of…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- WRITE A JAVA PROGRAM. Telco is a cellular telephone company that offers two types of service: standard and premium. Its rates vary, depending on the type of service. The rates are computed as follows: Calculate the amount due if given a service code (s or S means standard service; a service code of p or P means premium service), and the number of minutes the service was used. For the premium service, the customer may be using the service during the day and the night. Therefore, to calculate the bill, you must ask the user to input the number of minutes the service was used during the day and the number of minutes the service was used during the night. Input Description: There are service code (s, S, p or P) and usage amount u (u≥0). If the service code is p or P, then the usage has two types; day usage du(du≥0) and night usage nu(nu≥0). Output Description: The format is RMt where t is the amount due in Malaysia currency format as shown in the sample output. Hint: Use the…write a java program A twin prime is a prime number that is either 2 less or 2 more than another prime number. For example (41, 43) are both primes and are twin primes because 41 + 2 = 43. Write a program that asks the user to enter a positive number and checks if this number is prime. If the number is prime then the program must check if it has a twin prime. So if n is prime, then n - 2 or n + 2 should be checked. The program repeats until the user enters -1. Sample Run: Enter a positive integer (-1 to end): -5 Invalid Number Enter a positive integer (-1 to end): 61 61 is prime 59 and 61 are twin prime Enter a positive integer (-1 to end): 137 137 is prime 137 and 139 are twin prime Enter a positive integer (-1 to end): 30 30 is not prime Enter a positive integer (-1 to end): 23 23 is prime 23 does not have a twin prime Enter a positive integer (-1 to end): -1Write 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 100Number of hours > 40 and <= 45 gets a Bonus of 50Number of hours > 35 and <= 40 gets a bonus of 25 Display the basic salary, bonus, and total salary (basic + bonus) for the day.
- In Java, a real estate office handles 50 apartment units. When rent is $600 per month, all the units are occupied. However, for each $40 increase in rent, one unit becomes vacant. Each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: A. The number of apartment units B. The rent to occupy all the units C. The increase in rent that results in a vacant unit. D. Amount to maintain a rented unit. The program then outputs the number of unidts to be rented to maximize the profitUsing Java programming language write a program to manage a hotel with 24 rooms;10 rooms are Executive, with price Gh ₵ 2500.00 per night,7 rooms are Chalets, with amounts Gh ₵ 1500.00 per night7 rooms are Ordinary, with amount Gh ₵ 500.00 per night.In Java program, this is the output of this program Enter MICHAEL JORDAN's grade in Physics101: 99Enter KOBE BRYANT's grade in Physics101: 90Enter LEBRON JAMES's grade in Physics101: 85 Enter MICHAEL JORDAN's grade in Algebra101: 90Enter KOBE BRYANT's grade in Algebra101: 85Enter LEBRON JAMES's grade in Algebra101: 99 Enter MICHAEL JORDAN's grade in Programming 2: 75Enter KOBE BRYANT's grade in Programming 2: 74Enter LEBRON JAMES's grade in Programming 2: 71 Which student would you like to check? [1] Michael Jordan [2] Kobe Bryant [3] Lebron James [0] Exit Student Name: Lebron JamesGrade Physics101: Algebra101: Programming 2:General Weighted Average: Passed:
- For an invoice calculation program, write the JAVa program that calculates the amount of VAT and the price of goods or services excluding VAT, according to the VAT rate and the total amount including VAT entered on the keyboard. (Total amount including VAT = cost of goods services excluding VAT X VAT rate + price of goods services excluding VAT)Write a Java program that calculates and prints the monthly pay for an employee. The net pay is calculated after taking the following deductions:Write a Java program code: Scenario:One of the renowned supermarket in Dhaka City, “Shwapno” is celebrating their firstanniversary of opening. They have become very popular among people in a short amount oftime. As a method of celebration they have designed three interesting and exciting offer for theircustomers for that day only!! The offers are described as follows:Offer 1: This offer says, if the name of any customer starts with “S” OR ends with “o”, theywill receive a gift which contains 1 kg miniket rice and 1 litre soyabean oil. This offer isdedicated from their name, Shwapno.Offer 2: This offer says, if one customer have taken products and his/her total product weightis less than 1.50 kg, then Shwapno will give all the products to the customer for free. If the totalweight is 1.50 kg or more, the customer will have to pay the full amount.Offer 3: This offer says, if a customer is aged less than 15, then he/she will receive chocolates.If aged 15 or more, then no gifts for the…
- The following problem shows up in a number of Java texts, including Savitch's textbook: The Harris-Benedict equation estimates the number of calories your body needs to maintain your weight if you do no exercise. This is called your basal metabolic rate, or BMR. The calories needed for a woman to maintain her weight is: WBMR = 655 + (4.3 × weight in pounds) + (4.7 × height in inches) − (4.7× age in years) The calories needed for a man to maintain his weight is: MBMR = 66 + (6.3 × weight in pounds) + (12.9 × height in inches) − (6.8 × age in years) A typical chocolate bar will contain around 230 calories. Write a program that allows the user to input his or her weight in pounds, height in inches, and age in years. The program should then output the number of chocolate bars that should be consumed to maintain one’s weight for both a woman and a man of the input weight, height, and age. NOTE: This is an application of a selection statement! Input Data: Use a named constant for the…Write java program that prompt the student to enter an integer number (between 1 till 5 inclusive). the student must enter a number which is equal to the day that he/she has class during the month of April 2021(each student must have 3 classes during the week). Your program must include all 3 days that you have class. For example If the student entered number 2 then your program should display Monday and dates of that day during the month of April 2021.just like the expected outputs below:For this assignment, write a program called Payday.java that will compute and print a person's paycheck. The program will ask the user for the number of hours they worked and their hourly payrate. It will ask the person if they are a union member, in which case 5% of the salary will be withheld for union dues. It will ask the person if the percentage they wish to set aside for their medical savings account. It will then apply a sliding tax scale, defined as follows: Greater than or equal to $2,500 $1,500 up to $2,500 $500 up to $1,500 Less than $500 25% 15% 10% 5% The program must then print a formatted paycheck that shows their gross pay, union deduction, medical deduction, taxes withheld, and net pay. Use a function to determine the tax rate. Use a different function to print the nicely formatted paycheck. Your program should operate like this: ********** ********** Payday V1.0 ***: ******** Enter name: Ray Klump Enter hours worked: 43.25 Enter hourly pay rate: 17.50 Are you a union…