Write a program to display a simplified bill

Assignment Help JAVA Programming
Reference no: EM131006098

1. Repair Bill: Suppose automobile repair customers are billed at the rate of $35 per hour for labor. Also, suppose costs for parts and supplies are subjected to a 5% sales tax. Write a program to display a simplified bill. The customer's name, the number of hours of labor, and cost of parts and supplies should be entered into the program via text boxes. When a button is clicked, the customer's name and the three costs should be displayed in a list box, as shown in fig.

2259_3.49.png

2. Write a program to make change for an amount of money from 0 through 99 cents input by the user. The output of the program should show the number of coins from each denomination used to make change. See fig

1558_3.50.png

3. Nutrition: The American heart association suggests that at most 30% of the calories in our diet come from fat. Although food labels give the number of calories and the amount of fat per serving, they often do not give the percentage of calories from fat. This percentage can be calculated by multiplying the number of grams of fat in one serving by 9 and dividing that number by the total number of calories per serving. Write the program that requests the name, number of calories per serving and the grams of fat per serving as input, and tells whether the food meets the American heart association recommendation.

4. Write a program to analyze a car loan. The user should enter the amount of the loan, annual percentage rate of interest, and the duration of the loan in months. When the user clicks on the button, the information that was entered should be checked to make sure it is reasonable. If bad data have been supplied, the user should be so advised. Otherwise, the monthly payment and the total amount of interest paid should be displayed. The formula for the monthly payment is:

Monthly payment= p.r­­­l - (l+r) -n

where p is the amount of the loan, r is the monthly interest rate (annual rate divided by 12) given as a number between 0 (for 0%) and 1(for 100%), and n is the duration of the loan in months. The formula for the total interest paid is
total interest= n . [monthly payment] - p

5. Restaurant bill: A fast food vendor sells pizza slices ($1.75), fries ($2.00) and soft drinks ($1.25). Write a program to compute a customer's bill. The program should request the quantity of each item ordered in a Sub procedure, calculate the total cost with a function procedure, and use Sub procedure to display an itemized bill.

6. Rule of 72: This rule is used to approximate the time required for prices to double due to inflation. If inflation rate is r%, then the rule of 72 estimates that prices will double in 72/r years. For instance, at an inflation rate of 6%, prices double in about 72/6 or 12 years. Write a program to test the accuracy of this rule. For each interest rate from 1% to 20%, the program should display the rounded value of 72/r and the actual number of years required for prices to double at an r% inflation rate. (assume prices increase at the end of each year).

326_6.65.png

Reference no: EM131006098

Questions Cloud

Can the present value of minimum lease payments : Can the present value of minimum lease payments differ between the lessor and lessee? If so, how?
Business law case study : Business Law case study - In the Lee case, there was a losing side. That side will look for an error in the rules the judge applied in order to appeal. The winning side will attempt to defend the judge's use of the rules that produced the winning ..
What is a trading bloc and a trade concentration ratio : What is a trading bloc and a trade concentration ratio, and does it make sense that trade concentration ratios should be greater than +1? What kind of trading bloc is NAFTA and how has it influenced trade within the bloc? What is multilateralism and ..
Write a program to display a simplified bill : Write a program to display a simplified bill. The customer's name, the number of hours of labor, and cost of parts and supplies should be entered into the program via text boxes. When a button is clicked, the customer's name and the three costs sh..
What is difference between specific tariff-ad valorem tariff : Submit answers to the following questions in the unit drop box. You must explain your answer and provide your supporting computations. Yes/No answers or simple numbers are not acceptable and will not receive full credit. Why does a sales tax shift a ..
Compare the way a bargain purchase option : Compare the way a bargain purchase option and a residual value are treated by the lessee when determining minimum lease payments.
Interest rate during the great depression : Use the IS-LM model to illustrate graphically the impact of the Pigou effect on the equilibrium level of income and interest rate during the Great Depression, when prices were falling.
Find an equation of the planes tangent to the given surfaces : Find an equation of the planes tangent to the following surfaces at given points, x2 - 2y2 + z2 / 4 = 3, at (√2, 0, 2). z = xy - 25 at (1, 16, -9).

Reviews

Write a Review

JAVA Programming Questions & Answers

  1 what makes a program easy to modify2 describe the order

1. what makes a program easy to modify?2. describe the order of magnitude of the following code section using bigo

  I had to call a webservice

I had to call a webservice (1st line of code) and then from there created a loop but keep getting an error every time on the .getBusiness - I don't know what I should be using there instead of getBusiness.

  Use java or c++ to create a program for making the pizza

Make the Pizza example abstract, so that there are three kinds of factories under one AbstractPizzaFactory You can use Java or C++

  Implement a card game in java

In this assignment, you will be asked to implement a card game. You will need to make several design decisions for your code. It will be expected that all classes you write will utilize the principle of encapsulation.

  Discuss the use of java as a web-based application tool

Discuss the use of Java as a Web-based application tool and as a cross-platform programming language. Provide some example benefits and a general discussion of how the cross platform technology works.

  Write a java program to read a string value from the user

Write a Java program to read a string value from the user, the program prints out the entered string, and then prints out the string one character per line.

  Write java program to receive input and displayed interest

Write a Java program that receive some input and displayed the interest. Format the number into 2 decimal places. Using loop is an advantage.

  Creation of a virtual world java application

Implement classes that meet the given specifications of object instance variables and behaviors and create operative algorithms using sequential logic structures, decision control structures, and loops

  Comparator that compares point objects by their distance

write a comparator that compares point objects by their distance from the origin of (0,0). points that are closer to the origin are considered to come before those which are further from the origin

  Write client code to call the print method of counter.

Write client code to deposit 7 quarters, 3 dimes, 10 nickels, and 17 pennies in counter. Output the new status of counter using the toString method.

  standard graph with four quadrant

Write a program in java that asks the user for values of x and y, and displays the point as an ordered pair along with a message that describes where that point falls on the standard graph with four quadrant.

  Design and code a swing gui to translate test

Use a FLOWLAYOUT with a JTEXTAREA for the source text and separate JTEXTAREA for the translated text. Add a JBUTTON with an event to perform the translation

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd