Write a java program to calculate the final price of the product after applying 25% discount on the text price which is taken from user
Q: Write a Java Program to take 2 ints, a and b, print their sum. However, "Ipsum" values in the range…
A: Required: Write a Java Program to take 2 ints, a and b, and print their sum. However, "Ipsum"…
Q: checks if a series of 10 numbers entered by the user in the ascending order are consecutive (in this…
A: Q. Write a Java program that checks if a series of 10 numbers entered by the user in the…
Q: a three-month delivery report for three diffrent years. The following rows and columns represent the…
A: Step 1: Below the java program to display a three-month delivery report for three different years
Q: Write a Java program that can read a commodity code, quantity of the commodities bought and the unit…
A: public class Tester{ public static void main(String[] args) { String commodity; int quantity;…
Q: Write a Java program that asks a user to enter his/her age. If the user's age is in the range of…
A: here in this questio we have asked to write a program in java which age as input from user and print…
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 program in Java that will accept any amount and will give 10% discount.
A: Algorithm 1. Take amount from user in amt variable 2. calculate discount disct=amt*0.10 3.…
Q: Write a Python program to demonstrate working of iterators using an example type that iterates from…
A: Let us see the answer:- Introduction:- In Python, an iterator is an object that iterates over…
Q: Write a java code to take the number of students, their names, their GPA, and their id, and show the…
A: Objective: We need to design a Java program to take details of students (name, id, and GPA). 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: th a huge purchase is bound to drive up the price of the stock st in the short term. The trader sets…
A: Option (A) is correct. "Front running" is an illegal practice where brokers/specialists trade ahead…
Q: Write a complete Java program based on the supplied information using file /O to do the following:…
A: Q: Read file, parse the text and store in a different file based on given formula.
Q: Write a Java program to find the calculate the average of 3 subjects for 5 students using do… while…
A: This code have written java as asked in the problem. we get input from user to get average of mark…
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 program in Java to compute the highprice and lowprice of a stock using the following…
A: Please find the answer below
Q: Write a java program to form a committee of 3 women that can be choosen from 9 men and 12 women
A: Find the java code:
Q: Write a java program to form a committee of 5 mem that can be choosen from 9 men and 12 women
A: The solution to the given problem is below.
Q: Write a java program that will input 3 values from the command-line. The first will represent the…
A: Given: Write a java program that will input 3 values from the command-line. The first will represent…
Q: Write a complete Java program that will calculate and display your BMI based on your weight and…
A: BMI = weight / height2
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 for bank operations between 2 account with operations called balance check and…
A: Write a java program for bank operations between 2 account with operations called balance check…
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 that asks the user to input the jackets quality in any letter case (HQL for…
A: To solve the above problem, we have used equals methods which is used to compare the content of the…
Q: Write a Java program to categorize a person based on their age (allow only positive inputs) into age…
A: Code: /******************************************************************************…
Q: c) What is the output of the below java program? class Sweet{ void price(){…
A: lets analyse the given code for output: class Sweet{ void price(){…
Q: Write a java program that will extract all 13-digit SEU student IDs from a text.
A: As per the question statement, We need to write JAVA program.
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 program in the language of two people in a 1:3 ratio, if the heir is male, the share is…
A: Introduction Input : Heir type Amount Output : Share of parents and heir
Q: Write a java program to read and write the following information – Person (ID, name, phone) ID – a…
A: I give the code in Java along with output and code screenshots.
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 that... Create a list of the top 10 Major college football teams and output…
A: Below is the required java program. Program Approach: Importing packages to get the standard I/O.…
Q: You are a trader and you trade so much things, so your task is to find your commission on the…
A: Required:- You are a trader and you trade so many things, so your task is to find your commission on…
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: Write a java program to help the student to arrange his Diploma Marks of 12 subjects from high to…
A: Ascending order: Sorting the elements of the array from low values to high values is called…
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 read the sales data from the file and to calculate and display the total…
A: Below is the required code in java and sample output:
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 application that prompts for the number of hours that an employee worked in a week
A: use concatenation operator + to make program interface good with user. It will ask user name and…
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 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: Write a Java program to find the total runs scored by 11 players of a team, take input runs of all…
A: Write a Java program to find the total runs scored by 11 players of a team, take input runs of all…
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: Using java, need to create a craps game program that can keep track on a user's wins / losses and…
A: Craps is a dice game in which the players make wagers on the outcome of the roll or a series of…
Q: Write a java program to get the future value of an investment and take all the required arguments…
A: Required:- Write a java program to get the future value of an investment and take all the required…
Q: Write a java program to display the first 100 prime numbers.(program shouldn't be copied from net ,…
A: import java.io.*; void prime(int N){ int i, j, f; System.out.println("\n Prime…
Q: Write a Java programme to calculate the number of 200, 100, 50, 20, 10, 5, and 1 TL banknotes in a…
A: Please see the next step for solution
Q: Write a Java program that prints the following table (including formatting).…
A: Actually, the code has given below:
Step by step
Solved in 2 steps
- 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…Write a Java program to read the monthly salary amount of the employee and then print the category by using the following rules. Use the print the category. Rules on montly salary category salary>1000 GardeA 800<salary<=1000 Grade B 500<salary<=800 GradeC 300<salary<500 Grade D 150<salary<=300 Grade E otherwise Grade FWRITE 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…
- Using 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 The program should allow customers to book for rooms for a number of nights, and update the number of empty rooms available for each category when a customer has paid fully and has checked-in; also update the number of empty rooms available when customer checks-out. Customers should make bookings with their first names, telephone number A customer should be prompted to know if a room is booked (meaning a another customer has booked it but has not paid fully, or has not checked-in) A customer should be prompted to know if a room is occupied (meaning a booked room has been fully paid for, or the customer has checked-in) A customer should be prompted to know if a room is available (meaning a room has neither been booked nor checked-in). A…Write a java program that asks the user to enter the coordinates of 4 points that draw two different lines. The program has to display whether these two lines are parallel, perpendicular, or neither according to the following formula: Slope y2-y1 x2-x1 If the slopes of both lines are equal, the two lines are parallel If the product of both slopes is equal to -1, the 2 lines are perpendicular. Otherwise, the two lines are neither parallel nor perpendicular.ABC Bank announced a new scheme of reward points for a transaction using an ATM card.Each transaction using the normal card will be provided 1% of the transaction amount as reward pint.if a transaction is made using premium card and it is for fuel expenses,additional 10 points will be rewarded.write a java program to calculate the total rewards point
- 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:An 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.Java program At a certain university, students have to submit their exams online. The administration decides that for each minute of late submission, 5 points are deducted. Write a program that asks the user for his initial grade and the late submission time (in minutes), and then displays the final result. Sample Run 1: Enter your initial grade: 82 Enter the late submission time (in minutes): 6 Your final grade is 52 Sample Run 2: Enter your initial grade: 115 Grades should be between 0 and 100 Sample Run 3: Enter your initial grade: 43 Enter the late submission time (in minutes): 10 Your final grade is 0 Sample Run 4: Enter your initial grade: 72 Enter the late submission time (in minutes): -2 Time should be positive
- Write a Java program that prompts the user to enter the grades and their weight of three Exams. The program calculates and displays the final grade. Hint: Use the following formula: [Grade of Exam 1]* [Weight of Exam 1]% + [Grade of Exam 2]* [Weight of Exam 2] % + [Grade of Exam 3] * [Weight of Exam 3]% Sample Run: Enter the grade of Exam I and its weight: 75 20 Enter the grade of Exam II and its weight: 60 30 Enter the grade of Exam III and its weight: 85 50 The final grade is 75.5Write a JAVA program to generate two cards randomly and display the bigger card between them. The cards contain of two characteristic, color (Red, Blue, Green and Yellow) and value (1-10). The rules to identify the bigger card as below: a. The bigger the value, the bigger the card is, except 1 is bigger than 10. b. If the card is the same value, the color will be used to get the bigger card. Red > Blue > Green > Yellow Sample Input Card 1 : Blue 6 Card 2 : Yellow 8 Output :Card 2 is bigger Sample input Card 1 : Red 4 Card 2 : Green 4 Output:Card 1 is bigger (You are not allowed to use array)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"