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

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Discussion: html/css

Discussion: HTML/CSS,  "JavaScript Placement"  Please respond to the following: Compare and contrast the process of adding JavaScript and a Cascading Style Sheet to a Website. Determine if they can be used simultaneously in a page. If so, explain wh..

  What are the contents of given register

Memory location 2000H has the word 5000H stored in it. What does each location contain after INC BYTE PTR[2000H]. Also after DEC WORD PTR[2000H]

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Accuracy and completeness of computations

Analysis right and you have to develop a plausible argument to "prove" that your analysis is correct

  Program to enter up to 20 integers in the array of long

Write down a program which asks user in order to enter up to 20 integers in the array of longs.The program must utilize the function Find_It() in order to situate the integer within the array.

  Creating loop to find number of items bought based on price

Make a block using a loop that will find the number of items that can be bought based on the price of the item and the total amount available to spend.

  Build a student record managing system application

Build a student record managing system application

  Program has function named presentvalue for calculations

Write a program that has a function named presentValue that performs this calculation. The function should accept the future value, annual interest rate, and number of years as arguments.

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Application development and programming languages

Application Development and Programming Languages,  Programming languages have evolved since the First Generation Languages (1GLs) in the 1940s. The 1GLs were machine languages, which interacted directly with hardware. 2GLs were assembly languages. F..

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