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

  Top-down recursive descent parser

Write a hand-coded top-down recursive descent parser.

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Program to perform a search of an employee list

Write a /bash/bin program to perform a search of an employee list.

  Describe purpose of keyword super in programs

Describe purpose of keyword 'super' in programs

  Program that prompts user to enter five test scores

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

  Statement to read variables of type double

Suppose two variables p1 and p2 of type POINT, with two fields, x and y, both of type double, have been declared. Write a statement that reads values for p1 and p2 in that order.

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Program to compute perimeter and area of rectangle

Write a program that asks for length L and the width W of a rectangle, then compute perimeter and area of the rectangle.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Basics of hypertext markup language

The basics of Hypertext Markup Language and World Wide Web.

  Create a multi-threaded competition

Create a multi-threaded competition in which opposing Robin Hoods will attack one another and try to take each other's gold coins.

  Examine the boxplot

Examine the boxplot and briefly discuss the overall pattern of electricity usage for the households.

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