Computer programming

posted by .

Ok so the question is this: 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 price of an item and its weight in pounds and ounces. It should then determine and display the unit price (the price per ounce) of an item.

I have up to the perform calculations and output modules programmed. Can someone help me get started on the perform calculations module?


  • Computer programming -

    Compute the mass in ounces,

    M (in oz.) = 16*(# of pounds) + (# of additional oz.)

    and divide that by the price in cents.

    Just how you do that depends upon the computer language that you use.

  • duaoh shzonml -

    xhomndlca mxvk yxwgt prtla vomcai zavlq fphdxg

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Question for math.

    how do i solve this? When x number of units are sold, the price of each unit (in dollars) is given by . Find the unit price when the following quantities are sold: 2,7,9,11. You seem to have omitted an equation after the word "by"
  2. computer science

    Write a program that will input an item’s wholesale cost and its markup percentage. The program will output the item’s retail price. The program should repeat for several input values. For example, if an item cost is 5.00 and markup …
  3. programming

    Create an application in C# that will accept sales information and calculate the total bill. There are 3 products which can be sold: Product 1 with price of $2.98 Product 2 with price of $4.50 Product 3 with price of $9.75 The application …
  4. programming

    3. Write a structured algorithm that prompts the user to input the name and the price of an item and the quantity purchased. It should print the name, price, quantity and amount due with appropriate labels.
  5. programming

    3. Your company needs to depreciate its assets. The accountant wants to record the purchase price, the useful life, and the estimated salvage value. Your program should be able to depreciate by the straight-line method. For example, …
  6. programming

    Write a program reads the city names and respective gas prices into 2 single-subscripted arrays in your program - one of type string, the other of type double. (We would call these "parallel arrays" - each corresponding location shows …
  7. computers

    compute the unit price for products sold the program should input the name and price of an item and its weight in pounds and ounces. Then it should determine and display the unit price write a pseudo code program that will allow a …
  8. computer programming

    Write a fortran program to compute the geometric information for a kite. The program should read the a, c and p lengths and compute the q length
  9. information technology

    write a pascal program which reads price of an item. the program should compute 25% discount on the original price, it should display the discounted amount and the discounted price of an item.
  10. object oriented programming

    Write a program to compute discount percentage given the marked price and selling price. the user inputs marked and selling price using keyboard

More Similar Questions