Java This is background information First, code this project. Write a program that determines the change...

Java

This is background information First, code this project. Write a program that determines the change to be dispensed from a vending machine. An item in the machine can cost between 25 cents and a dollar, in 5-cent increments (25, 30, 35, ..., 90, 95, or 100) and the machine only accepts a single dollar bill to pay for the item. For example, a possible dialogue with the user might beEnter price of item(from 25 cents to a dollar, in 5-cent increments): 45You bought an item for 45 cents and gave me a dollar,so your change is 2 quarters,0 dimes, and 1 nickel.

You can write this program based on the program or with if statements. After getting it to work, include input checking. Display the change only if a valid price is entered (no less than 25 cents, no more than 100 cents, and an integer multiple of 5 cents). Otherwise, display separate error messages for any of the following invalid inputs: a cost under 25 cents, a cost that is not an integer multiple of 5, and a cost that is more than a dollar.

Write comments

In: Computer Science

What you think a historian's job is, what skills a historian needs to do that job,...

What you think a historian's job is, what skills a historian needs to do that job, and how those skills might be applicable to your career and/or major goals.

In: Economics

A bullet with mass m = 0.1 kg grams hits a ballistic pendulum with length L...

A bullet with mass m = 0.1 kg grams hits a ballistic pendulum with length L = 3 meters and mass M = 2 kg and lodges in it. When the bullet hits the pendulum it swings up from the equilibrium position and reaches an angle 15 degrees at its maximum. In this problem, you will determine the bullet’s velocity. First, I want to ask you a couple of questions:

  1. While the bullet is embedding into the block, is energy conserved? Why or why not?

B.While the bullet is embedding into the block, is momentum conserved? Why or why not?

C. When the pendulum swings up to its maximum angle, is energy conserved? Why or why not?

D.When the pendulum swings up to its maximum angle, is momentum conserved? Why or why not?

E. Find the velocity of the bullet.

In: Physics

a) Explain how a sodium ion (Na+ 1) is created, its stability and why it takes...

a) Explain how a sodium ion (Na+ 1) is created, its stability and why it takes on this charge. List the following values to help you answer this question: the size of the sodium ion; atomic size of the neutral atom and the Effective nuclear charge; each ionizations potential for each electron in the atom; the electron affinity and the electronegativity. Reference your source for this information.

b) Explain atomic size, ionization potential, electronegativity and the general periodic trend for each of these properties. Arrange the following atoms: O, Se, C, Si, F in order of increasing atomic radius, in order of increasing electronegativity and in order of increasing ionization energy. Explain how you developed your list and explain the similarities or differences between the lists.

In: Chemistry

**Python** 4. Running total of product and sum of integers input by a user Write a...

**Python**

4. Running total of product and sum of integers input by a user

Write a function ProdSum that asks a user to input a number from one to 99. If the input number is less than or equal to 25, then calculate the running product of each number inputted by the user that is less that or equal to 25. If the number is greater than 25, then calculate the running sum of each number inputted by the user that is greater that 25. If the user enters zero as input, then print out the total running product calculated and the total running sum calculated and end the function.

Assume the user can input as many numbers as desired until inputting a zero. Make sure you test the number inputted by the user to ensure it is in the range from zero to 99 and inform the user if the number is not in the range and to try again. Also print the appropriate labels for the two calculations in your print statements, as well as the number inputted by the user..

For Example:

Enter a number from 1 to 99 or 0 to Exit: 5

Enter a number from 1 to 99 or 0 to Exit: 83

Enter a number from 1 to 99 or 0 to Exit: 21

Enter a number from 1 to 99 or 0 to Exit: 55

Enter a number from 1 to 99 or 0 to Exit: 13

Enter a number from 1 to 99 or 0 to Exit: 64

Enter a number from 1 to 99 or 0 to Exit: 0

The product of the numbers [5, 21, 14] is 1470

The sum of the numbers [83, 55, 63] is 201

In: Computer Science

The Beer’s Law calibration curve for this experiment was obtained at the appropriate wavelength and gave...

The Beer’s Law calibration curve for this experiment was obtained at the appropriate wavelength and gave the following linear regression equation:
Absorbance = 4898 (Concentration) + 0.055

Suppose 5.0 mL of 0.0020 M Fe(NO3)3 dissolved in 0.50 M HNO3 are mixed with 5.0 mL of 0.0020 M HSCN dissolved in 0.50 M HNO3, and the absorbance of the solution is measured to be 0.30. What is the equilibrium constant for the following reaction? Assume that the H+ concentration stays constant at 0.50 M.

Fe3+(aq) + HSCN(aq) ⇌ FeSCN2+(aq) + H+(aq)

In: Chemistry

Complete combustion of 3.60 g of a hydrocarbon produced 11.6 g of CO2 and 3.95 g...

Complete combustion of 3.60 g of a hydrocarbon produced 11.6 g of CO2 and 3.95 g of H2O. What is the empirical formula for the hydrocarbon?

In: Chemistry

A friend approaches you about a nutritional product and ask you if it is worth it....

A friend approaches you about a nutritional product and ask you if it is worth it. He shows you a HGH cream called Somaderm that is a homeopathic human growth hormone, meant to penetrate the skin and reduce wrinkles, improve sleep, experience vivid dreams, promote muscle and bone growth, and reduce fat.

Use: concentration gradients, diffusion, active or passive transport, layers of the skin, what substances can or cannot pass through the skin and why.. to explain if the supplement is beneficial or if it is a scam.

In: Anatomy and Physiology

The one rate that truly represents the interest earned in a year is the annual effective...

The one rate that truly represents the interest earned in a year is the annual effective yield. (or effective annual interest rate).

True

False

Market interest rates are supposed to reflect any anticipated changes in earning power as well as purchasing power in the economy.

True

False

When you pay cash for a car, you lose the opportunity to earn interest on the money you spend.

True

False

In: Finance

On January 1, 2018, Nguyen Electronics leased equipment from Nevels Leasing for a four-year period ending...

On January 1, 2018, Nguyen Electronics leased equipment from Nevels Leasing for a four-year period ending December 31, 2021, at which time possession of the leased asset will revert back to Nevels. The equipment cost Nevels $841,368 and has an expected economic life of five years. Nevels expects the residual value at December 31, 2021, will be $117,000. Negotiations led to the lessee guaranteeing a $174,000 residual value. Equal payments under the lease are $217,000 and are due on December 31 of each year with the first payment being made on December 31, 2018. Nguyen is aware that Nevels used a 9% interest rate when calculating lease payments.

Required:

1. Prepare the appropriate entries for both Nguyen and Nevels on January 1, 2018, to record the lease.
2. Prepare all appropriate entries for both Nguyen and Nevels on December 31, 2018, related to the lease.

In: Accounting

Please, Describe What is the interface ID in an IPv6 address - Give an example What...

Please, Describe

    1. What is the interface ID in an IPv6 address - Give an example
    1. What is the EUI-64 in an IPv6 address - Give an example
    2. Subnetting
    3. Give an example of the prefix of a network that does not need to subnet (do not copy the one in the book, prepare one yourself)
    4. Give an example of the prefix of a larger network with several locations (do not copy the one in the book, prepare one yourself)

In: Computer Science

Which of the following is not a significant difference between a monopolist and a competitive firm:...

Which of the following is not a significant difference between a monopolist and a competitive firm:

The monopolist produces where MR=MC while the perfect competitor does not.

A monopoly is a price-maker, whereas a competitive firm is a price-taker

A monopolist is protected by barriers to entry, whereas a competitive firm is not

The monopoly’s MR curve lies below the demand curve, whereas the competitive firm’s MR curve is horizontal at the market price

In: Economics

Based on the information given, classify each of the pure substances as elements or compounds, or...

Based on the information given, classify each of the pure substances as elements or compounds, or indicate that no such classification is possible because of insufficient information.

Analysis with an elaborate instrument indicates that •Substance A contains two elements. •Substance B and Substance C react to give a new Substance D. •Substance E decomposes upon heating to give Substance F and Substance G. •heating Substance H to 1000°C causes no change. •Substance I cannot be broken down into simpler substances by chemical means. •Substance J cannot be broken down into simpler substances by physical means. •heating Substance K to 500°C causes it to change from a solid to a liquid.

In: Chemistry

Analyse how a business owner’s decision to operate as a sole trader may affect the planning...

Analyse how a business owner’s decision to operate as a sole trader may affect the planning for their business.

In: Operations Management

A glass flask whose volume is 1000cm3 at a temperature of 1.00?C is completely filled with...

A glass flask whose volume is 1000cm3 at a temperature of 1.00?C is completely filled with mercury at the same temperature. When the flask and mercury are warmed together to a temperature of 52.0?C , a volume of 8.35cm3 of mercury overflows the flask. If the coefficient of volume expansion of mercury is ?Hg = 1.80

In: Physics