Computers and Technology

Price of groceries Use input to prompt for these float values:
price of oranges per pound
pounds of oranges purchased
price of apples per pound
pounds of apples purchased
Calculate these float values:
total price of oranges
total price of apples
total price of groceries
Display results as
Oranges: {total price of oranges}
Apples: {total price of apples}
Total: {total price of groceries}
where values in {} are calculated values
Tests
OrangesApplesOutput
PriceLbs. PriceLbs.
.6821.292Oranges: 1.36
Apples: 2.58
Total: 3.94
1.293.61.741.1Oranges: 4.64
Apples: 1.91
Total: 6.55
Be sure to fill out author and date
Be sure to separate input from calculation from output
# author:
# date:
# purpose: Calculate Price of Groceries
# input
# calculations
# output
please help ASAP. thank you
python EDU program

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, dondre54
in 2007, floridians died in alcohol-related collisions.a.  501b.  1,051c.  5,015d.  10,839
Answers: 1
image
Computers and Technology, 24.06.2019 22:30, Jxsolvez
To include a watermark or page border on a word document, you will first need to navigate to the tab. file home insert design
Answers: 1
image
Computers and Technology, 25.06.2019 03:00, achewitt3965
What judgment would you make about open systems interconnect? not useful that it is a technology that it is a model that it does not pertain to technology
Answers: 1
image
Computers and Technology, 25.06.2019 10:20, lydialinton23
Write a program that lets the user play the game of rock, paper, scissors against the computer. the program should work as follows. 1. when the program begins, a random number in the range of 1 through 3 is generated. if the number is 1, then the computer has chosen rock. if the number is 2, then the computer has chosen paper. if the number is 3, then the computer has chosen scissors. (don’t display the computer’s choice yet.) 2. the user enters his or her choice of “rock”, “paper”, or “scissors” at the keyboard. (you can use a menu if you prefer.) 3. the computer’s choice is displayed. 4. a winner is selected according to the following rules: • if one player chooses rock and the other player chooses scissors, then rock wins. (the rock breaks the scissors.) • if one player chooses scissors and the other player chooses paper, then scissors wins. (scissors cuts paper.) • if one player chooses paper and the other player chooses rock, then paper wins. (paper wraps rock.) • if both players make the same choice, the game must be played again to determine the winner. be sure to divide the program into functions that perform each major task. include the code and the console output from running your program with test inputs in your report.
Answers: 3