Write a program that calculates and prints the bill for a cellular telephone company, on the type of service. The rates are computed as follows: Regular Service $10 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute Premium Service $25 plus: a. For calls made from 6:00 am to 6:00 pm, the first 75 minutes are free; charges for over 75 minutes are $0.10 per minute b. For calls made from 6:00 pm to 6:00 am, the first 100 minutes are free, charges for over 100 minutes are $0.05 per minutes
Q: Write a Java program to take the input of 5 numbers and output the mean (average) and standard…
A: The given is a requirement to write the program in Java programming. The user will enter the 5…
Q: Write a program in java to accept basicpay,hra, from the employee. Calculate grosspay which is…
A: Given:
Q: e a java program to calculate the electricity bill for a customer , The program should get the…
A: Write a java program to calculate the electricity bill for a customer , The program should get the…
Q: ds. Your program should display the time in hours only, the distance into miles, and the speed in…
A: Code: import java.util.Scanner; public class Main{ public static void main(String ar[]){ Scanner…
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: A chemistry teacher asked her class to answer the following question: Use java. If I put 10…
A: Given data is shown below: A chemistry teacher asked her class to answer the following question: Use…
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: Write a Java program that calculates the size of equal pieces in a puzzle board. You are asked to…
A: Required:
Q: Write a java program to calculate the electricity bill for a customer , The program should get the…
A: ALGORITHM:- 1. Take input details from the user. 2. Calculate the units consumed on the basis of…
Q: Using java language, write a program with total change amount in pennies as an integer input, and…
A: Actually, java is a object oriented programming language. It is a platform independent.
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 for a school for assigning students to exam halls. Your program should ask…
A: We have to write a Java program for a school for assigning students to exam halls. Your program…
Q: Write a java program that asks for the name, hours worked, and hourly rate of an employee. The…
A: program code: import java.util.*;import java.util.Scanner;class Main{ public static void main…
Q: Write a java program called ImperialMetric that displays a conversion table for feet and inches to…
A: Program: //import Scannerimport java.util.Scanner;//created class ImperialMetricpublic class…
Q: Write a Java program to take the temperature from the user in Celsius, convert it into Fahrenheit…
A: Please find the answer below :
Q: Write a Java program that displays employees information and their salary. There are two types of…
A: Salary of Part-time employee is calculated as: If working hours are less than or equal to 40 then…
Q: Write a java program that receives three integers for day, month and year respectively and prints…
A: Algorithm: 1. Start. 2. Initialize months array as months[] = {"January", "February", "March",…
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: 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: Consider a ball is kicked at an angle e (in degrees) from the horizontal with an initial velocity vo…
A: [Note: Explanation of the program code is provided within the comments.] Program code:…
Q: Write a java program that converts degrees from Fahrenheit to Celsius, using the formula DegreesC =…
A: Please find the answer below :
Q: Create a java program that will take a positive number between 1 and 3999 inclusively and return the…
A: Given:- Create a java program that will take a positive number between 1 and 3999 inclusively and…
Q: In Java. Write a program to take input two integers x, y from the user and in the output print…
A: Given: Two integer x, y, taken input from the user. Requirement: Write a JAVA program to take input…
Q: Write a program using Java to input a number of asterisks to print and a number to put on each line,…
A: Here is the program to input a number of asterisks to print and a number to put on each line and…
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 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 that calculates the size of equal pieces in a puzzle board. You are asked to…
A: I have answered the question in step 2.
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: Java Write a program whose input is two integers, and whose output is the first integer and…
A: Start input two numbers check if first number is less than second run a while loop and increment by…
Q: Write a Java program called IntCheck that examines the integer variable x, printing GT (greater…
A: // Defining the Main Classpublic class Main{ // Function to check the Number x public void…
Q: ) Write a java program to calculate the average of five inputted real numbers from the user. Print…
A: Note : Since the question is multiple, we are advised to only question. Kindly post other question…
Q: Write a program CheckDigit.java that takes a 12 or 13-digit long as a command-line argument and…
A: Program plan: Initialize the variables sum1, sum2. define the variable long number. Iterate over…
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: Following an economic crisis, the CEO (Chief Executive Officer) of EXOSTAR company decided to give…
A: *******************************************************************************/import…
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: 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: For this assignment, write a program called Payday.java that will compute and print a person's…
A: Given:
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: 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: Using Java to, write a program that asks the user for survey data about bus riders, and outputs a…
A: read muniline read number of days read number of riders calculate avg=(float)riders/days display avg…
Q: Write a java program that asks the user to enter the coordinates of 4 points that draw two different…
A: import java.util.*; class Main { public static void main(String args[]){ Scanner in =…
Q: Suppose you save $100 each month into a savings account with the annual interest rate 5%. So, the…
A: Lets see the solution.
Q: Write a Java program that sums a series of 10 numbers without duplicates. These numbers are supposed…
A: Java program to solve the given problem is given below.
Q: Write a program in Python that uses a 100 kgs on Earth. Convert the Earthweight to the planets…
A: solution is given below
Q: Write a Java program that prompts the user to enter a monthly saving amount and displays the account…
A: Approach Use for loop iterating from 1 to 12 for computing account value after each month. The…
Q: Write a program java that reads a number of feet from the user, then prints out either the same…
A: Explanation Scanner class is used for input long miles = totalFeet/5280; long foot =…
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…
Q: You are asked to write a java program for an embassy to help with the visa process. Your program…
A: I give the code in Java along with output and code screenshot
Using Java:
Write a program that calculates and prints the bill for a cellular telephone company, on the type of service. The rates are computed as follows:
Regular Service
$10 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute
Premium Service
$25 plus:
a. For calls made from 6:00 am to 6:00 pm, the first 75 minutes are free; charges for over 75 minutes are $0.10 per minute
b. For calls made from 6:00 pm to 6:00 am, the first 100 minutes are free, charges for over 100 minutes are $0.05 per minutes
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- 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 program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions: Function getData: This function asks the user to enter the…Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund
- Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions: Function getData: This function asks the user to…Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions: Function getData: This function asks the user to enter the…Write a java program to calculate the electricity bill for a customer , The program should get the customer's information such as customer name , previous reading and current reading as input .After that program should calculate the amount according to number of units consumed by the customer and print a bill .The sample bill and rate per unit are given below. For example a customer consumes 300 units; First hundred units would be charged at the rate of 15 ,and remaining at 30 respectively as per rate given below. Unit range Rate per unit 1-100 15.0 101-300 30.0 301-500 45.0
- Write a Java program that asks the user to input the jackets quality in any letter case (HQL for high quality , LQL for low quality ) and their prices in factory, until the user enter QUIT in any case letter to stop. your program should count the number og HQL and LQL jackets, as well as the HQL price of jackets, then print the result on the screen. your program should ignore any unknown jacket quality.A chemistry teacher asked her class to answer the following question: Use java. If I put 10 bacteria on the classroom doorknob tonight, how many bacteria will be on the doorknob by the time we come to school tomorrow? In order to answer this question, you need to know a few things: Each bacterium (a single bacteria) can create 2 more bacteria every hour This means that after one hour, the doorknob will have 10 + 10 * 2 = 30 bacteria, since we started with 10 bacteria and each of those created 2 more. This means that after two hours, the doorknob will have 30 + 30 * 2 = 90, since there were 30 bacteria at the beginning of hour two, and during that hour each bacteria created 2 more bacteria. Continuing this pattern, the number of bacteria on the doorknob after N hours isnumberOfBacteriaLastHour + numberOfBacteriaLastHour * 2 However, if we wanted to know how many bacteria are alive after 12 hours, we need to know how many bacteria were alive at hour 11. To find out how many bacteria are…Suppose you save $100 each month in a savings account with annual interest rate 3.75%. Thus, the monthly interest rate is 0.0375/12 = 0.003125. After the first month, the value in the account becomes 100 * (1 + 0.003125) = 100.3125, after the second month, the value in the account becomes (100 + 100.3125) * (1 + 0.003125) = 200.938, after the third month, the value in the account becomes (100 + 200.938) * (1 + 0.003125) = 301.878 and so on. Write a Java program that prompts the user to enter a monthly saving amount and displays the account value after the sixth month. (You will use a loop to simplify the code and display the account value for any month.) Sample Output:Enter the monthly saving amount: 100After the first month, the account value is 100.3125After the second month, the account value is 200.9384765625After the third month, the account value is 301.8789093017578Note: The computation should be until 12 months.
- Write a JAVA program that asks the user to input: The number if gallons of gas in the car tank The fuel efficiency in miles per gallon The price of gas per gallon Then (a) print the cost per 100 miles and (b) print how far the car can go with the gas in the tank, (c) Assuming the gas tank capacity is 20 gallons, what will be the cost of adding gas to the existing amount to fill the tankCreate a java program that calculates a customer’s bill for a local cable company. There are two typesof customers: residential and business.There are two rates for calculating a cable bill: one for residential customers and one forbusiness customers. For residential customers, the following rates apply:• Bill-processing fee: Php4.50• Basic service fee: Php20.50• Premium channels: Php7.50 per channelFor business customers, the following rates apply:• Bill-processing fee: Php15.00• Basic service fee: Php75.00 for the first 10 connections; Php5.00 for each additionalconnection• Premium channels: Php50.00 per channel for any number of connections The program should ask the user for an account number (an integer) and a customer code.Assume that R or r stands for a residential customer, and B or b stands for a business customer. Input: Input to the program is the customer’s account number, customer code, number of premium channels to which the customer subscribes and, in the case of…Write a JAVA program that reads in the name and salary of an employee. Here the salary will denote an hourly wage, such as $9.25. Then ask how many hours the employee worked in the past week. Be sure to accept fractional hours. Compute the pay. Any overtime work (over 40 hours per week) is paid 150 percent of the regular wages. Print employee name and paycheck amount.