JAVA PROGRAM A bank offers a 3% interest per annum for savings accounts. The bank also has 1% withholding tax per annum. Assuming that there are no withdrawals on the account, write an application that will calculate the estimated total earnings of a bank customer for a given number of years. Make your program ask for the principal amount and the number of years. Output the estimated total earnings.
Q: Translate the following steps into a Java program 1. Get the monthly_fees 2. Get the minutes 3. Get…
A: Program: import java.util.*; public class Main { public static void main(String[] args) { int…
Q: A hypermarket is giving discount on products purchased based on the total bill amount (in +Omani…
A:
Q: Write a JAVA program that declares a variable that represents the minutes worked on a job and assign…
A: Here is the easy approach :- Create three variables one to hold the minutes then second to hold…
Q: Write a Java program to sell a limited number of cinema tickets. Each person can buy up to 4…
A: First total 100 tickets are available. Each person can buy maximum 4 tickets if he want to buy more…
Q: To make a profit, a local store marks up the prices of its items by a certain percentage. Write a…
A: Note: Below is the required program in java language. Programming Approach: Importing appropriate…
Q: The two forces acting on an aircraft in flight are lift (acting upwards) and weight (acting…
A: Actually, Java is a general-purpose also class-based, object-oriented programming language designed…
Q: Write a program that will calculate car insurance premium using Java!!! Steps to write a program:…
A: import java.util.*;import java.lang.*;import java.io.*; class Codechef{ public static void main…
Q: Write a program that prints a grocery receipt of items purchased.
A: EXPLANATION- Create main function . Declare seven variables with suitable names Initialize all the…
Q: Write a Java program that prompts 500 students to enter their credit hours earned and then displays…
A: Answer to the above question is in step2.
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: If you want to build a system for calculating gasoline consumption in cars, use the Java language to…
A: GasMileage.java public class GasMileage{ double totalMiles, totalGallons; public double…
Q: Practical quiz 2 Write a Java program that will ask the user for the number of rooms (including…
A: import java.text.DecimalFormat;import java.util.Scanner; public class RoomChargeMain { public…
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: Among all three (3) digit numbers; There are some special numbers where the product of the numbers…
A: Logic:- find length of each input taken from loop. find remainder ,power it upto the number of…
Q: Write a Java program to sell a limited number of cinema tickets. Each person can buy up to 4…
A: Given Condition: Code in JAVA language: You have 100 tickets. Maximum 4 tickets to be sold once. As…
Q: Computer Science Write a java program that asks the user to enter 10 numbers then the program will…
A: Start Take the array of 10 elements Read the elements Find the three largest elements Print elements…
Q: This is for a Java program that I did in the past..just going over some old code and wanted to…
A: Given that Write a java program that prompts the user to inpu the amount of rice , in pounds, in a…
Q: Task 1: Write a Java Program which will determine whether a number is even or odd. Take the number…
A: The below given Java program will obey the following rubrics: Importing required data package.…
Q: In Java, one way to determine how healthy a person is by measuring the body fat of the person. The…
A: Hello Student. Warm welcome from my side. Hope you are doing great. Here's your answer. I will try…
Q: Write a complete Java program that prompts the student to enter the credit hours earned and then…
A: PROGRAM CODE: import java.util.*; // import java utility packagepublic class…
Q: Write a program that calculates how much money you’ll end up with if you invest an amount of money…
A: Let p in initial amount, n be number of years and r be interest rate then compound interest is…
Q: Consider a bank named ABC. Create some customers (minimum 10) of that bank. Each customer has a…
A:
Q: There are several cases where we can use conversions from one quantity to another. It can be about…
A: given data
Q: 2. Write a Java program to calculate and print the monthly paycheck for an employee. The net pay is…
A: Program description: The java program, PayCheck.java that prompts the user to enter the employee id…
Q: Write a Java program that computes the number of candy bars and gumballs you can get by redeeming…
A: Please find the answer below :
Q: Create a JAVA program that will ask the user to enter 10 numbers and display it in ascending order.
A: Below is the code in java and sample output:
Q: write a program for you have to take first name and last name from user and print whole name
A: Requirement : - write a program for you have to take first name and last name from user and print…
Q: For an invoice calculation program, write the JAVa program that calculates the amount of VAT and the…
A: It is defined as a powerful general-purpose programming language. It is used to develop desktop and…
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: Requirements Create a Java program that reads a value representing a number of seconds, and then…
A: Update the name from Sai Pavan to your name
Q: *** Complete in Java Program** Use Gambler's Ruin Example Gambler's ruin. Suppose a gambler makes…
A: First you need to know that what is gambler's Ruin problem : Card shark's Ruin ProblemConsider a…
Q: Using the Java programming language write a program that takes an email address as an input from the…
A: Please refer below commented code with output screenshot: import java.util.*;class Valid_email {…
Q: A patient suffering from asthma needs to keep a diary of their “peak flow" breathing readings. This…
A: Given:
Q: There are several cases where we can use conversions from one quantity to another. It can be about…
A: Attached Java Source code below import java.util.Scanner; public class conversion { public static…
Q: Write a program that allows a user to enter three words, and display the appropriate three-letter…
A: A required Java program is as follows, File name: “Main.java” import java.util.*; public class Main…
Q: Write a program that simulates a traffic light. The program lets the user select one of three…
A: Answer : Program code : //TrafficLightSimulate.java//import the required packagesimport…
Q: write a java program that converts years to weeks, days, hours, minutes and seconds. Assume that 1…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Assume that a runner runs 15 kilometers in 50 minutes and 30 seconds. Write a Java program that…
A: The, answer has given below:
Q: Write a Java program for a Play-House Manager, who would like to calculate the total profit from…
A: The JAVA code is given below with code and output screenshot
Q: 5. Write a Java program that reads a number in inches then converts it to meters. Note that One inch…
A: Program outline: Ask user to input a number in inches. Use Scanner class of java to take user…
Q: Write a program that computes the average of 5 students grades which are entered by the user.
A: Here we can accept the 5 student grades in an array of integer called grades[5].
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: An Arabian legend has it that a fabulously wealthy but unthinking king agreed to give a bigger one…
A: Algorithm 0.Start 1.Declare variable amt = 0.01 as initial amount 2.Declare varaible day = 1 as…
Q: Write an application to pre-sell a limited number of cinema tickets. Each buyer can buy as many as 4…
A: Create a java program to pre-sell the cinema ticket.The name of the program is TicketSeller.The…
Q: Write a javascript program that calculates how much a person would earn over a period of time. if…
A: Please check step 2 & 3 for program and output
Q: Write a java program that asks user to input these values: 1. The number of gallons of gas in the…
A: I found some mistake in the sample output given in the field for cost of 100 miles. However we…
Q: Write a java program. Drinks such as Coffee, Tea, Cola and energy drinks contain caffeine level.…
A: Algorithm: Start Read no.of green tea cups consumed Calculate result=28*no.of green tea cups…
Q: Write a Java program to sell a limited number of cinema tickets. Each person can buy up to 4…
A: Use while loop to check condition if available tickets greater than 0
Q: (Write in java) Assume that a vehicle plate number consists of three uppercase letters followed by…
A: The program is written in java public class Main { public static void main(String[] args)…
Q: Java Write a program that prompts the user to enter the number of students and each student's name…
A: Use Scanner instance to accept input from user and store all the names and scores in two different…
JAVA PROGRAM
A bank offers a 3% interest per annum for savings accounts. The bank also has 1% withholding tax per annum. Assuming that there are no withdrawals on the account, write an application that will calculate the estimated total earnings of a bank customer for a given number of years. Make your program ask for the principal amount and the number of years. Output the estimated total earnings.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- In java A Carpet Company has asked you to write an application that calculates the price of carpeting for rectangular rooms in a building. To calculate the price, you multiply the area of the floor (width * length) by the price per square foot of carpet. For example, the area of floor that is 12 feet long and 10 feet wide is 120 square feet. To cover that floor with carpet that costs 300 per square foot would cost (12 * 10 * 300 = 36000.) First, you should create a class named RoomDimension that has two attributes: one for the length of the room and one for the width. Provide getters/setters, parameterized constructor and a toString method. The RoomDimension class should also have a member function that returns the area of the room. Once you have written the class, use in a test application that asks the user to enter the number of rooms in building create array of that size, then ask user to enter dimensions for each room, also ask user for price per square foot of the desired…You are asked to write a java program to prepare for the Lebanese parliament elections. Your program asks the voter to enter his name, age, record number and gender. Based on the below table, your program should inform the voter about his voting location. Remember that in Lebanon the legal voting age should be greater than 20. Gender Voting Location Record Number Between 1 and 100 Male Female Male Between 1 and 100 Between 101 and 200 Between 101 and 200 Between 201 and 300 Zahret El Ihsan | Room number 1 Zahret El Ihsan | Room number 2 Ali Ben Abi Taleb Room number 7 Ali Ben Abi Taleb | Room number 8 Al Akhtal El Saghir | Room number 1 Female Both Using java Your program should execute exactly as the below sample run. Sample Run 1: Enter Your name, Gender (M or F), Age and Record Number Elie M 21 105 Dear Elie You vote : Ali Ben Abi Taleb | Room number 7 Sample Run 2: Enter Your name, Gender (M or F), Age and Record Number Ali M 20 200 Sorry Ali, You are not allowed to vote! Sample…Java Write an application that prompts a user for the number of years the user has until retirement and then the amount of money the user can save annually. If the user enters 0 or a negative number for either value, reprompt the user until valid entries are made. Assume that no interest is earned on the money. Display the amount of money the user will have at retirement.
- hello i need to write a java program A car insurance company charges a base fee of BD 50 per year, plus the following fees for any accident: Fees Number of checks BD 20 for each accident Less than 3. BD 50 for each accident From 3 to 4. BD 75 for each accident More than 4 Write a program that asks for the number of accidents for the year . The program should then calculate and display the insurance company fees for the year. If number of accidents less than zero, print an invalid message and quit the program.The Freemont Automobile Factory has set a goal that each worker will eventually produce 10,000 parts per month. The company has discovered that the longer a worker has been on the job, the more parts the worker can produce. Write an application called IncreasedProduction that prompts for the number of parts a worker currently produces. Then compute and display a worker’s anticipated output each month for 24 months, assuming the worker’s production increases by 6 percent each month. Also display a message that shows the month number in which production exceeds 10,000 parts (The month in which production exceeds 10000.0 is month #) or a message indicating that the worker will not reach the goal within 24 months (This worker will not reach 10000.0 in 24 months). An example of the program is shown below: Enter worker's current production level >> 973 Month 1 Predicted production is 1031.38 Month 2 Predicted production is 1093.2628000000002 Month 3 Predicted production is 1158.858568…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.
- Write an application that computes and displays the day on which you become(or became) 10,000 days old. For example, if you we're born on January 1st, 2000, the output would be I will be 10000 days old on 2027-05-19.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. An example of the program is shown below: Enter a score >> 6 Enter another score or 99 to quit >> 7 Enter another score or 99 to quit >> 9 Enter another score or 99 to quit >> 7 Enter another score or 99 to quit >> 99 4 valid scores were entered Highest was 9 Lowest was 6 Average was 7.25 PLEASE WRITE A JAVA CODE import java.util.*; public class QuizScoreStatistics { public static void main (String args[]) { // Write your code here } }Scenario:The owner of 'Cupcakes R Us' is in need of a web application to sell their bakery products via ecommerce. Cupcakes R Us sells cupcakes, cookies, and cakes. They do not have a storefront. Therefore, they need a web site to sell their baked goods. The user enters their name, state, bakery item and the quantity (by dozen or cake) for as many items they want to purchase. The program validates all data entered the name can not be blank the state can only be the three states listed above. the bakery item must be a valid bakery item from the list above. the quantity can not <= 0 If the values are invalid, an error message is displayed to the user Otherwise: the values for the item and quantity are added to an array of items selected to be purchased. The program computes the subtotal, and calculates the tax based on the state. The application provides the following information at the bottom of the page : Name of Client (in proper case), State, the list of items selected to be…
- You are to create a Python application that applies the basic concepts in Python. Scenario: You are to create a python application that simulates a toll booth that will give out toll booth tickets to the driver depending on what type of vehicle they are driving. The user will enter their name, destination and vehicle type. The application will then determine what class of vehicle they are driving and assign them the correct fee. The application is to then print out a receipt with the user's name, destination, vehicle class and correct fee. The vehicle types along with their associated vehicle class are listed below: Class 1 Vehicle Car Jeepney Van Pickup Motorcycle Class 2 Vehicle Bus Truck Class 3 Vehicle Tanker Trailer Your application will initially ask for the following information when it is started: The name of the user The destination of the user The type of vehicle for the user The application will assign specific fees depending on the class of vehicle that is…Java Programming A dentist requests you to develop the Dental Payment application. This application is used to calculate the total bill. The clinic provides the services and prices, as shown below. Services Prices (RM) 1. Cleaning 35.00 2. Cavity Filling 150.00 3. Х-гаy 85.00 4. Flouride 50.00 5. Root canal 225.00 6. Other Турe in Your dental payment entry form is shown as follows. Your program also needs to handle the following error conditions: • An empty string is given for the patient's name. If choose Other, an invalid input is given if empty or negative value. Dental Payment Application Dental Payment Entry Form Patient Name Services Prices (RM) O cleaning Cavity Filling X-ray O Flouride 35.00 150.00 85.00 50.00 Root canal 255.00 O Other Total[ CalculateJohn the farmer has tasked his son with collecting the eggs from the chicken coop each morning and putting them in boxes of 1 dozen eggs each. Unfortunately, John’s son Joe is having trouble working out how many boxes he will need each morning. You have been asked to develop a java application to allow Joe to enter the number of eggs he has collected. The application should then calculate and output how many boxes can be filled and how many eggs Joe will have leftover. Your application should use instantiable classes to separate the calculations from the user input and output.