subject

I am so stuck on this. I need help with AP Computer Science Coding Unit 3, Lesson 10
A supermarket wants to install a computerized weighing system in its produce department. Input to this system will consist of a single letter identifier for the type of produce, the weight of the produce purchase is in pounds and decimals are acceptable, and the cost per pound of the produce.
Input Screen: Ask the following questions for input.
Please enter each of the following:
Description of Item (accept a string as input, but you will only print the first 3 letters from the String. Ex. Input: banana and Output: ban)
Weight of Item (accept a decimal as input)
Price per pound of item (accept a decimal as input)
Output Screen: Print a label showing the input information also with the total cost of the purchase. The label should have the following appearance. Make sure the output is neatly formatted and easy to read.


Penney Spender Supermarket
Produce Department

ITEM WEIGHT COST/LB COST
ban 2.0 lb $1.98 $3.96

Thank you!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 14:00
Var add = function( x, y ) { return ( x + y ); } alert( add (5, 3) ); 11. (refer to code example 2.) the function a. accepts 2 parameters and returns 2 values. b. accepts 2 parameters and returns 1 value. c. accepts 2 parameters and does not return a value. d. does not accept a parameter and returns 1 value.
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
If your accelerator suddenly gets stuck what should you do
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
In the context of the box model, what is the difference between a margin and a padding? a. a padding lies outside a box border, while a margin lies inside it. b. a padding lies inside a box border, while a margin lies outside it. c. a padding can be adjusted independently, while a margin depends on the size of its box. d. a padding depends on the size of its box, while a margin can be adjusted independently.
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
You know the right answer?
I am so stuck on this. I need help with AP Computer Science Coding Unit 3, Lesson 10
A super...
Questions
question
Mathematics, 21.08.2019 20:30
Questions on the website: 13722363