Program to compute unit price of items sold

Assignment Help Programming Languages
Reference no: EM1344239

Q1) Manager of a Supermarket would like to be able to calculate the unit price of items sold there. To do this the program should input the name and the price of the item and its weight in pounds and ounces. Then it should determine and display the unit price(the price per ounce of the item)of that item and total cost of the amount purchased. You will need the following variables: Item name (a string) Pounds(a float) Ounces(a float) Pound Price(a float) Unit Price (a float) Total(price a float)
You will need the following formulas: Unit Price = Pound Price/16 Total Price= Pound Price*(pound + ounces/16)
Using RAptor.

Reference no: EM1344239

Questions Cloud

Explaining reasonable values for items in risk register : Suggest reasonable values for the items in the risk register for this asset and threat, and provide justifications for your choices.
Explain the significance of statement : An organization that does not invest in its employees may be less attractive to prospective employees and may have a more difficult time retaining current employees"
Management component of m and a activity : In the financial management component of M and A activity, valuing a firm extremely important given how many deals fail and how many Acquirers overpay.
Compute only the arc elasticity : Compute only the arc elasticity. So by using the midpoints formula, for this family, the price elasticity of demand.
Program to compute unit price of items sold : Manager of a Supermarket would like to be able to calculate the unit price of items sold there. To do this the program should input the name and the price of the item.
Illustrate what is the present macroeconomic situation : Illustrate what is the present macroeconomic situation (e.g. worrying about inflation also/or recession) in the U.S.
Eliminate all management discretion in reporting : The best standards are the ones that eliminate all management discretion in reporting.
Calculate the initial outlay : A company is thinking replacing a machine. The machine was purchased six years ago for $80,000 and has been depreciating over an eight year life. The old machine will be sold for a market value of $14,500.
Describe how coca-cola able to retain most of the profits : Use the five forces framework and your knowledge of the soft drink industry to describe how Coca-Cola and Pepsi are able to retain most of the profits in this industry.

Reviews

Write a Review

Programming Languages Questions & Answers

  What is the throughput of the system

what is the throughput of the system

  Timer interrupt to coordinate peripherals on microcontroller

The timer interrupts to coordinate peripherals on the microcontroller. Use code from prior labs to drive the peripherals and will make minor modifications to use the interrupts.

  Unix systems administration

Unix Systems Administration

  Program that prompts user to enter five test scores

Write the algorithm for a program that prompts the user to enter five test scores.

  Write a paper on memory management

Write a paper on Memory Management

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write a program that uses the curve class hierarchy

Write a program that uses the curve class hierarchy. The program should define several different objects, output their area, circumference, etc. It should also use the printcurve function.

  Build a student record managing system application

Build a student record managing system application

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Communicate with a pc using the rs232c serial protocol

In this assignment we will use the UART0 peripheral to communicate with a PC using the RS232C serial protocol.

  Describe purpose of keyword super in programs

Describe purpose of keyword 'super' in programs

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd