1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Bas_tet [7]
3 years ago
15

The Coins class was created to hold all your loose change, kind of like a piggy bank! For this exercise, you are going to simula

te starting a bank with a specific number of coins, then adding to your piggy bank to bring your total to $2.12. What you need to do: Create a Coins object that initially has 4 quarters, 3 dimes, 2 nickels, and 1 penny. After you create the initial object, print out the total, then add coins to your bank until you have a total of 15 coins totaling 2.12. You will need to figure out which combination gets you to the correct total with the correct number of coins! When you are finished, call the method to print the bank count then the bank total to verify that you got the correct values.
Computers and Technology
1 answer:
Novosadov [1.4K]3 years ago
8 0

Answer:

Coins c1 = new Coins (4, 3, 2, 1);

     c1.bankValue();

     c1.addQuarter();

     c1.addQuarter();

     c1.addDime();

     c1.addDime();

     c1.addPenny();

     c1.bankCount();

     c1.bankValue();

Explanation:

You might be interested in
What web revolution enables user to generate content​
ch4aika [34]

Answer:

<u>web 2.0 internet</u>

<u>Explanation:</u>

<u>Explanation:</u>

Tim O Reilly in 2004 changed the web with his web 2.0 concept which according to him at the time would allow enable the user to generate content.​

4 0
4 years ago
Write a program that takes as command-line arguments an integer N and a double value p (between 0 and 1), plots N equally spaced
OlgaM077 [116]

Answer:

Please see below

Explanation:

Suppose N = 10. And you have these dots equidistant from each other, and probability = 0.3. According to the data provided in the question statement, we will then have forty-five pairs of points. The task is to draw lines amongst these pairs, all 45 of them, with a 30% probability. Keep in mind that every one of the 45 lines are independent.

A few lines of simple code (just some for loops) needed to run this is attached in the image herewith, .

 

8 0
3 years ago
You work in an office that uses Linux and Windows servers. The network uses the IP protocol. You are sitting at a Windows workst
Westkost [7]

Answer:

The ping command.

Explanation:

In a network, workstations known as clients, users or nodes are the devices where data is needed or sents from. A server on the other hand, is a device in the network, configured to render a particular service like database, domain name service, web service etc.

When a link from a workstation to a server is down, the workstation looses connection the server. To confirm the connectivity of the link, "ping" the server ip address from the workstation using the command "ping 'server ip address'". This sends echo packets to the server, which is echoed back if there is connectivity.

6 0
4 years ago
Johnathan was assigned to complete a project with three other people. What benefit will he get from working with the team?
Lina20 [59]

Answer:

2.

Explanation:

working with other people can increase ones creativity

4 0
3 years ago
Codio python challenge (max.py)
dusya [7]

I hope this helps:

https://stackoverflow.com/questions/3989016/how-to-find-all-positions-of-the-maximum-value-in-a-list

4 0
3 years ago
Read 2 more answers
Other questions:
  • Effective collaboration requires a proactive and holistic strategy that integrates business goals and technology potential.
    15·1 answer
  • Mass Media does not play a large role in American society. Please select the best answer from the choices provided
    13·2 answers
  • Moore's Law states that the processing power of the latest computer chips doubles about every eighteen months. Assuming the grap
    6·1 answer
  • 6. The NADH and FADH2 produced during the Krebs cycle pass their electrons down the 7. __ __ __ __ __ __ __ __ __ __ __ __ __ __
    6·1 answer
  • Ben sends a few emails over the weekend to his relatives. Where should Ben place his laptop so that he can avoid slouching while
    11·1 answer
  • (Solved—15 Lines) In many jurisdictions a small deposit is added to drink containers to encourage people to recycle them. In one
    5·1 answer
  • Why should the Six-Step Process be considered as an iterative process?
    8·1 answer
  • A programmer is creating an algorithm that will be used to turn on the motor to open the gate in a parking garage. The specifica
    10·1 answer
  • A ______ system writes data on two or more disks simultaneously, thereby creating a complete copy of all the information on mult
    9·1 answer
  • Select the correct word to complete the sentence.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!