Compute the fifties and the remaining amount

Assignment Help JAVA Programming
Reference no: EM13290991

The code in the main method should do the following:

1. Prompt the user for a string input value for the amount in dollars and store it in a variable named input.

2. Convert the string to an integer and store it in the variable named amount. You can assume that the user enters a valid integer number.

3. Print the converter integer

4. Declare the integer variables named hundreds, fifties, twenties, tens, five, twos, and ones.

5. Declare another integer variable named remaining Amount.

6. Compute the hundreds and the remaining Amount. Print the information.

7. Compute the fifties and the remaining Amount. Print the information

8. Compute the twenties and the remaining Amount. Print the information

9. Compute the tens and the remaining Amount. Print the information

10. Compute the five and the remaining Amount. Print the information

11. Compute the twos and the remaining Amount. Print the information

12. Compute the ones and the remaining Amount. Print the information

Reference no: EM13290991

Questions Cloud

Scholars says religion and science can co-exist that : Explain whether you agree or disagree with the notion that religion and science can coexist. Identify at least two (2) key points from the Podcast: Scholars Says Religion and Science can Co-exist that substantiate your position.
Find value of x that is required for nulling output offset : find the value of x that is required for nulling the output offset voltage that results from Q1 having an area 10%larger than that of Q2.
Does the charge move to position ofhigher or lower potential : A negative charge moves in the direction of a uniform electric field. Does the charge move to a position of higher or lower potential
Evaluate the number of moles of bromine present : Calculate the number of moles of bromine present in 14.5 mL of Br2(l), whose density is 3.12 g/mL.
Compute the fifties and the remaining amount : Prompt the user for a string input value for the amount in dollars and store it in a variable named input and convert the string to an integer and store it in the variable named amount.
Discuss the possibility of a not-for-profit health care : Discuss the possibility of a not-for-profit health care organization issuing stock and why the management of such an organization might want to do this. Explain your rationale.
Explain if the reaction of rhodium(iii) sulfate : If the reaction of 0.650 g of rhodium(III) sulfate with excess sodium hydroxide produces 0.320 g of rhodium(III) hydroxide, what is the percent yield
What is the expected dividend yield : If the stockholders' required rate of return is 15 percent, what is the expected dividend yield and expected capital gains yield for the coming year?
How to design an amplifier to meet the requirements : A preamplifier is needed to interface this sensor with a variety of laboratory instruments. The output of the preamp must be 1V when the sensor is immersed in a test solution with pH=4 and 1.75V when it is immersed in a solution with pH=7.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Use either an array or a linked list

Use either an Array or a Linked List as an underlying data structure. Of course you need to create class Array or class LinedList in order to implement the methods like mergeSort(), merge(), etc

  Palindrome is a sequence of char that reads backward forwrd

A palindrome is a sequence of characters that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 45554, and 11611. Write an application called Palindrome.java that asks the user t..

  A regular polygon is an n-sided polygon

A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree(i.e the polygon is both equilateral and equiangular).

  Setting up the form page

Download and save the attached comment CGI mailer script form-mail2.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable (not writable).

  Write down the java code for the bank

Write down the java code for the bank of Fraud. User is presented with menu which looks something like this: 1. Deposit 2. Withdrawal 3. Check Balance 4. Exit.

  Each purchase contains an invoice number amount of sale

Create a class named Purchase. Each Purchase contains an invoice number, amount of sale, and amount of sales tax. Include set methods for the invoice number and sale amount.

  Create an application for disney''s cottages

Create an application for Disney's Cottages, a weekend getaway resort that rents cottages and boats to use on the local lake

  Hypothetical situation

Hypothetical Situation - A company lowers its price of an economy car a small amount   ($15,000 to $14,000) Sales go from 10,000 units to 50,000 units. Another company lowers its price on a luxury car a large amount ($80,000 to $40,000). Its sales go..

  Application that generates a quiz

Create an application that generates a quiz. Prompt for the user's first and last name, college major, and confidence in test taking (high, medium, or low). The quiz should contain at least five true/false questions about horticulture. When the user ..

  Carry out additions and subtraction

You are to design a Java application to carry out additions and subtractions for numbers of any length. A number is represented as an object which includes a sign and two strings for the whole and decimal parts of the number.

  Inheritancedemo

Create a New Project named InheritanceDemo . 2. Create a new class called Person and cut and paste the Person.java file from Blackboard into the class. Create a new class called Student and cut and paste the Student.java file from Blackboard into the..

  Create the html form and call the servlet to print out

1. write a calculator Servlet that adds, subtract, multiples and divides. Create the html form and call the servlet to print out the answer

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