Posted: December 8th, 2015

Unit Price Programming Problem

 Unit Price Programming Problem

Required

Design a program that solves the following problem:

The manager of the Super Supermarket would like to be able to compute the unit price for products sold there. To do this, the program should input the name and total price of an item and its weight in pounds and ounces. Then it should determine and display the unit price (the price per ounce) of that item. You will need the following variables:

 

ItemName (a String)

Pounds (a Float)

Ounces (a Float)

PoundPrice (a Float)

TotalPrice (a Float)

UnitPrice (a Float)

 

 You will need the following formulas:

PoundPrice = TotalPrice /(Pounds + Ounces/16)

UnitPrice = PoundPrice/16

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Live Chat+1-631-333-0101EmailWhatsApp