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
ruslelena [56]
3 years ago
9

Mary is a big fan of tropical fish. She has a few tanks of fish at home. To maintain a healthy environment for the fish, she nee

ds to add conditioner to the water once a week. The amount of conditioner added is determined by the volume of the tank. According to the direction on the bottle, she has to add 1 ml of conditioner per 100 cubic inches of water. She wants a program to calculate exactly how much conditioner to add to a tank of water. All tanks are in rectangular shape. The program will ask for the length, the width and the height of the tank. It will calculate and display the amount of conditioner to be added. [Note: volume = length X width X height] Use the following two test cases for desk-checking [all in inches]:
length width height
20 22.5 10
16 10 15
Write a C++ programs that implements and then add code to write the result to an output file. Make sure you generate a description message with the data in the output file (i.e. The amount of conditioner to be added is 3 ml).
outFile << "The amount of conditioner to be added is "<< amount<<" ml"< Name output data file "conditioner.txt" .
Computers and Technology
1 answer:
astra-53 [7]3 years ago
7 0

Answer:

Answered below

Explanation:

# Program is written in Python programming language

conditioner_in_ml = 0

width = float(input("Enter width in inches: "))

height = float(input("Enter height in inches: "))

length = float (input("Enter length in inches: "))

#Calculate the volume

volume = width * length * height

#Calculate the amount of conditioner per 100 #cubic inches of volume

conditioner_in_ml = volume/ 100

print("The amount of conditioner required for $volume cubic inches is $conditioner_in_ml ml")

You might be interested in
Where is the start frame delimiter found in the Ethernet frame
Ksju [112]
Answer: The SFD is the eight-bit (one-byte) value that marks the end of the preamble, which is the first field of an Ethernet packet, and indicates the beginning of the Ethernet frame.
8 0
3 years ago
Help me please!! It would be appreciated :)
IgorC [24]

the tool that you use is called Lens Correction.

Hope this helped

-scav

6 0
3 years ago
Read 2 more answers
Change the screen resolution so you can view more information on your screen. Use the resolution that enables you to fit the mos
bulgar [2K]
On Windows 10, you are able to right-click the desktop, and select "Display Settings". From there you can see all attached displays that are connected to your computer. Select "Advanced display settings", and your resolution would be right there, for example, the resolution of my monitor is 3840×2160.
4 0
3 years ago
John typed 545 words in 35 minutes, what is his typing speed
Katarina [22]

Answer: 545 words per 35 mins

Explanation:

4 0
3 years ago
Read 2 more answers
A CRS is most commonly used for
BigorU [14]
It is mostly used to store and retrieve information
6 0
4 years ago
Other questions:
  • Who gave a demonstration of modern computer systems showing a mouse and when?
    8·1 answer
  • Windows domain policy to disable windows 10 update
    7·1 answer
  • I play Among us :) hbu
    7·2 answers
  • The _____ of each phrase in a melody can be drawn with a curved line that follows the direction of the note progression.
    15·1 answer
  • The __ contains the computers “brain,” the central processing unit (cpu)
    9·1 answer
  • Explain URL's parts with the help of an example.​
    10·1 answer
  • Write a computer program that determines how many grades are between 0 and 19.
    8·1 answer
  • HELP AASAP BRAINLIEST JUST HELP
    13·1 answer
  • In the 1760s and early 1770s, the British government wanted to raise money by taxing the residents of its colonies in North Amer
    8·1 answer
  • Write the pseudocode for a program that will process attendance records of CA students. The students attend college five days a
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!