subject

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
This program should be a short piece of code that prints all of the positive integers from 1 to 100 as described more fully below. the program may contain multiple methods, and if using an oo language, should be contained within a single class or object. the program should be designed so that it begins execution when invoked through whichever mechanism is most common for the implementation language. â–ş print out all positive integers from 1 to 100, inclusive and in order. â–ş print messages to standard output, matching the sample output below. â–ş in the output, state whether the each integer is 'odd' or 'even' in the output. â–ş if the number is divisible by three, instead of stating that the number is odd or even, state that the number is 'divisible by three'. â–ş if the number is divisible by both two and three, instead of saying that the number is odd, even or divisible by three; state that the number is 'divisible by two and three'. â–ş design the logic of the loop to be as efficient as possible, using the minimal number of operations to perform the required logic. sample output the number '1' is odd. the number '2' is even. the number '3' is divisible by three. the number '6' is divisible by two and three.
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
You know the right answer?
Price of groceries Use input to prompt for these float values:
price of oranges per pound
Questions
question
Social Studies, 14.10.2020 01:01
question
English, 14.10.2020 01:01
Questions on the website: 13722359