Question

python Hi guys, I really need help with that please Can I get help with this...

python

Hi guys, I really need help with that please

Can I get help with this python program?

Please write clear

Show all the steps please, the outcome and follow the directions.

Volume
# Purpose: This program computes the volume (in liters) of a six-pack of soda cans and the total volume of a six-pack and a two-liter bottle.

Complete the following:

# Liters in a 12-ounce can and a two-liter bottle.


# Number of cans per pack.


# Calculate total volume in the cans and print the statement.


# Calculate total volume in the cans and a 2-liter bottle; and print the statement.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Explanation :

It is given six-pack soda cans so we know that total number of cans is 6 and it is also given that the volume of one can is 12 ounce so we convert 12 ounce to liter and as 1 ounce=0.0295735 liter so as 12 ounce.

and then add 2 to get the net volume.

CODE:

# first of all convert ounces to liters and compute the volume of one can into liters because its given that the volume of 1 can is 12 ounces
x=12
# volume of a can two lter bottle
vol_can_lit=x*0.0295735
# volume of a can and two lter bottle
vol_can2_lit=x*0.0295735+2
# number of cans in a pack
y=6
#total volume in cans
net_vol_cans=12*vol_can_lit
print("Total volume in cans:",net_vol_cans)
print("Total volume in cans and a 2-liter bottle",vol_can2_lit)

Add a comment
Know the answer?
Add Answer to:
python Hi guys, I really need help with that please Can I get help with this...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Hi guys can you please help me out with this I couldn’t do it in straight...

    Hi guys can you please help me out with this I couldn’t do it in straight lines. Please take look at the directions below the question :$ much thanks 37 m 10 m :Ξ 1,5 m 9 m Sheet pile 24 m k 10-3cm/sec Impermeable layer Figure 8.20 8.7 Draw a flow net for the weir shown in Figure 8.20. Calculate the rate of seepage under the weir.

  • Hi can someone please help me with this chemistry problem? I really appreciate it. The following...

    Hi can someone please help me with this chemistry problem? I really appreciate it. The following data was collected for the volume of the O2 produced in the decomposition of H2O2 Calculate the average rate of reactoion for each of the given time interval. Time mL O2 0.0 0.0 45.0 2.0 88.0 3.9 175.0 6.8 I would really appreciate steps on how to solve this, so I can finish the rest of the similar problems. Thank you!

  • Hi can i get help in this problem. Hopefully you guys can help me out.Thank You...

    Hi can i get help in this problem. Hopefully you guys can help me out.Thank You Draw the electron configuration for a neutral atom of titanium energy 1

  • hi guys im really lost what do i do here please explain to someone who have...

    hi guys im really lost what do i do here please explain to someone who have almost no clue thanks watch these videos early enough to give you time to sove tmese uesio 3.1 Portfolio theory Calculate the standard deviation of Pelle's portfolio, where he has invested 50 % of his money in Axfood and 50 % in Telia Sonera. Assume that the correlation coefficient between the two shares is 0.34 and that the standard deviation of Axfood is 24.24...

  • Hi guys I need answer for this problem as soon as possible please help. thank you...

    Hi guys I need answer for this problem as soon as possible please help. thank you very much in advance. 3. A convex mirror of focal length 30.0 cm is placed 20.0 cm to the left of a plane mirror. An object 10.0 cm tall is placed midway between the two mirrors. Determine the location and height of the first three images formed by convex mirror

  • Hi guys, i need the coding, please help me. (Must using KEIL uversion software). TQ Write...

    Hi guys, i need the coding, please help me. (Must using KEIL uversion software). TQ Write a coding for Counter to count from 00 until 99 (in decimal). Display the result at 2 BCD 7- segment attached to address 0x20000000 and 0x20000001.

  • Hi! I really need help:) a) What is the average molar mass of a mixture of...

    Hi! I really need help:) a) What is the average molar mass of a mixture of gases if 34.6g occupy 45.6L at 57.9 degrees C and 1045 mmHg? b) Determine the liters of Oxygen needed for the complete combustion of 769g of benzene (C6H6) if the teaction is run at 23.5 degrees C and 765mHg? 42. What is the average molar mass of a 57.9°C and 1045mmHg? af mass of a mixture of pases if 34.6g occupy 45.0L 43. Determine...

  • Python Programming 4th Edition: Need help writing this program below. I get an error message that...

    Python Programming 4th Edition: Need help writing this program below. I get an error message that says that name is not defined when running the program below. My solution: def main(): filename = "text.txt" contents=f.read() upper_count=0 lower_count=0 digit_count=0 space_count=0 for i in contents: if i.isupper(): upper_count+=1 elif i.islower(): lower_count+=1 elif i.isdigit(): digit_count+=1 elif i.isspace(): space_count+=1 print("Upper case count in the file is",upper_count) print("Lower case count in the file is",lower_count) print("Digit count in the file is",digit_count) print("Space_count in the file is",space_count)...

  • Please help. I need to write a Python program that can display which axis is aligned...

    Please help. I need to write a Python program that can display which axis is aligned with gravity based on Accelerometer readings. This is for a quadcopter drone if that helps.

  • Please guys i would really appreciate if you help me out of this asap. Thank you....

    Please guys i would really appreciate if you help me out of this asap. Thank you. 1. Discuss how walmart directs and influences their employees to work hard and achieve their goals 2. Discuss what is walmart doing to meet their financial goals 3.How does Walmart motivate their employees to achieve their financial goals

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT