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

  Discuss the legal ramifications of the division of condo

Discuss the legal ramifications of the division of condo, BioTech and other assets. Would it make any difference if Violet sold the property after filing for the dissolution of marriage?

  Create a class named blooddata

Create a class named BloodData that includes fields that hold a blood type (the four blood types are O, A, B, and AB) and an Rh factor

  Java method for radix sort in binary

java method for radix sort in binary but I want to understand how to do it so please make it as simple as possible

  Class to initialize values

Create a constructor that allows a user of the class to initialize values. Also create a method named SetJustSold()(Hint ++) that increments the number of hot dogs the stand has sold by one and should also increase the TotalSold by one

  Develop a queue class

Print-out of the text file that contains your restaurant information and develop a Queue class. Hint: Check out the sample Queue java source files included with this assignment. Declare a class Party to hold one party.

  Create java program to find number of days left in that year

Create a Java program called "DaysLeftInYear.java" that outputs the number of days left in that year. use the calendar class to represent dates. Use the DateFormat class to display the current date in the output.

  Develops algorithms for problem solving

The graduate designs and develops algorithms for problem solving and implements those algorithms using appropriate program code.

  Implementation of memory management

Implementation of memory management

  Create three classes for a customer

a travel manager and have a job of buying a travel package for a customer. You must create three classes for this programming challenge: Customer, Ticket, and TravelManagerDemo.

  Once getting into student information menu

Once getting into student information menu, you should be able to see a full list of students' information (first name, last name, SSN, DOB, year and major).

  Application for an animal-fur trimming service

Create an application for an animal-fur trimming service. Write the code for the application. Prompt the user to indicate how many animals. Display the total fee for one year. Be pleasant in your output as it will be expensive.

  Describe the steps to program development

What is the function of parseFloat and parseInt and what will be result if we send "abcd" through a prompt() input and pass it through parseInt()?

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