Question: Python and using if statements, if- else statement, comparing strings, logical operators and Boolen variables. 1. AU.S.customary gillis a measure of volume that is equal

 Python and using if statements, if- else statement, comparing strings, logical
Python and using if statements, if- else statement, comparing strings, logical operators and Boolen variables.

1. AU.S.customary gillis a measure of volume that is equal to 32 fluid drams. One dram is equal to 1/8 of a U.S.fluid Ounce. Yes, these are real measurements. if you know the number of fluid Ounces, you can calculate the number of drams (d) as dramoucos and the number of gills as gilin - ounces / Write a program that asks the user to enter the number of ounces of apple cider they want to purchase to take home. It should then calculate and display the correct number of gills and drams. If the result is more than 1024 drams, a message should display indicating that the amount they want is large and they will need to purchase their oder in gations if the result is less than 100 drams, a message should display indicating that the amount they want is too small and perhaps they should just order a pint. 2. When mixed, the primary colors - red, blue, and yellow - Create secondary colors. Orange, green, and purple. o Mix red and blue to get purple o Mix blue and yellow to get green o Mix yellow and red to get orange Design a program which prompts the user to enter two of the primary colors. If anything other than "red"blue" or "yellow is entered the program should display an error message. If they enter two of the same color, an error message should display. Otherwise, the program should display the name of the new secondary color

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!