# It210 Checkpoint Week 2

Submitted By yf23
Words 333
Pages 2
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.
Then it should determine and display the unit price (the price per ounce) of that item and the total cost of the amount purchased. 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:
UnitPrice = PoundPrice/16
TotalPrice = PoundPrice*(Pounds + Ounces/16)
Analysis

Process: 1. Display a program title. 2. Prompt for the item name. 3. Prompt for the price of the item. 4. Prompt for the weight in pounds. 5. Prompt for ounces. 6. Convert pounds to ounces and add it to the input ounces. 7. Divide total price by ounces. 8. Display the price per ounce.
Input:

Item Name (string: item Name)
Item Price (real: price)
Item Weight in pounds (integer: pounds)
Fractional ounces (integer: ounces)

Output:

Unit price (real: unit Price)

Design

Main Module

Declare item Name as String
Declare price as real
Declare pounds in integer
Declare ounces as integer
Declare unit Price as real
Write Unit Price Program
Write This program computes the unit price for an item
Call Input Data Module
Call Perform Calculations Module
Call Output Results Module
End Program

End Main Module

Input Data Module

Write What is the items name
Input item Name
Write How much does the items cost?
Input price
Write What is the weight in pounds (no fractions) ?
Input pounds
Write What are the fractional ounces?
Input ounces

End Input Data Module

Perform Calculations Module

Set ounces = 16 + pounds + ounces unitPrice = price/ounces

End Perform Calculations Module

Output…...

### Similar Documents

#### It 242 Week 2 Checkpoint

Words: 306 - Pages: 2

#### Com 220 Week 2 Checkpoint

...shows the solutions to the following questions: Commonly confused words 1. All over the world, people struggle to (ensure/insure) that wild animals do not damage their property. 2. As people move (farther/further) out into former wilderness areas, animals may become a bigger problem. 3. In some cases, wild animals (adapt/adopt) to humans rather easily. 4. In the northeastern United States, for example, many homeowners are searching for a repellent to keep (dear/deer) away. 5. Lion urine, deer blood, wolf hair, and soap have all been used as deer repellents, but the results (vary/very) from place to place and from deer to deer. 6. Bird lovers will try almost anything to protect feeders from rodents, but most repellents have little (affect/effect) on seed-loving squirrels. 7. Farmers in Zimbabwe must deal with wild elephants (who's/whose) raids threaten both villagers and crops. 8. Elephants are smarter (than/then) deer or squirrels. 9. The enormous elephants are also a (grate/great) threat to the safety of both the crops and people who grow them. 10. Farmers in Zimbabwe are now using a hot pepper repellent to (brake/break) elephants of the crop-raiding habit. Commonly confused words 1. Fares on most airlines can be a grate bargain. 2. If you're willing to travel in economy class and buy your ticket in advance, you can fly for very little money. 3. Off course, their is a catch. 4. The airlines know that many......

Words: 380 - Pages: 2

#### Aed 200 Week 2 Checkpoint Social Justice

Words: 2669 - Pages: 11

#### Aed 200 Week 2 Checkpoint Social Justice

Words: 2901 - Pages: 12

#### Bus 210 Week 2 Checkpoint Business Organization

Words: 1639 - Pages: 7

#### Hcp 220 Week 2 Checkpoint Mathematical Functions

...HCP 220 Week 2 Checkpoint Mathematical Functions https://hwguiders.com/downloads/hcp-220-week-2-checkpoint-mathematical-functions/ HCP 220 Week 2 Checkpoint Mathematical Functions Accuracy and precision in the calculation of doses, dosages, and rates of infusion of intravenous solutions are often based on percents, ratios, and proportions. The exercises for this CheckPoint provide opportunities to perform various mathematical functions pharmacy technicians must master. Assume the role of a pharmacy technician. A pharmacist gives you a physician’s order sheet, a prescription, and asks you to prepare a 2% solution of sodium chloride (NaCl). You check the stock in the pharmacy but discover you have only a 3% solution of NaCl. Hint: 2g NaCl:100mL of solution::3g NaCL:x mL of 3% solution. Showall your calculations in a Microsoft® Word document Completethe following exercises. Refer to p. 22 for worked examples. 1. Solve the equation for x to determine how many mL of 3% solution you need. 2. Convert 3% to a fraction. 3. Convert 2% to a decimal. 4. Percents are often used to show the strength of solutions. Which solution is stronger, the 2% or the 3%? 5. What does 3% of sodium chloride mean, i.e., how many parts are in a 100? 6. Referring to the proportion regarding NaCl in the scenario, show the product of the means equals the product of the extremes. 7. Convert 25% to a fraction. 8. What percent of 15 ounces is 5 ounces? 9. Convert...

Words: 6205 - Pages: 25

#### Hcr 210 Week 2 Checkpoint

Words: 1321 - Pages: 6

#### Acc 220 Week 2 Checkpoint

Words: 405 - Pages: 2

#### Acc 227 Week 2 Checkpoint Cvp Analysis

Words: 361 - Pages: 2

#### Acc 230 Week 2 Checkpoint Differentiating

Words: 556 - Pages: 3

#### Acc 260 Week 2 Checkpoint

Words: 571 - Pages: 3

#### Week 2 Checkpoint Mm522

...Week 2 Checkpoint MM522   1. Question : (TCO A, B, C) Describe a value proposition and provide an example. How important is value to the consumer? Answer: (Chapter 1, p. 13) A value proposition is a set of benefits that companies offer to customers to satisfy their needs. An intangible value proposition can be made tangible by offering a combination of products, services, information, and purchasing experiences.  2. Question : (TCO A, B, C) How would you describe relationship marketing? Why are these relationships so important to successful marketing? Answer: (Chapter 1, pp. 20–22) Relationship marketing aims to build mutually satisfying long-term relationships with key constituents (consumers, employees, marketing partners, and members of the financial community) in order to earn and keep their business. It is important to recognize the need to create prosperity for all these constituents and balance the returns for all key stakeholders.  3. Question : (TCO A, B, C) What are the similarities and differences between holistic marketing and integrated marketing communications? Answer: (Chapter 1, pp. 19–22) Holistic marketing recognizes the breadth and interdependencies of marketing program design, development, and implementation – “everything matters” in marketing. Integrated marketing communications recognizes the added value of a comprehensive marketing plan. A marketers’ task is to create marketing activities and assemble fully integrated marketing......

Words: 582 - Pages: 3

#### It210 Week 2 Appendix F

...Associate Program Material Appendix F Application-Level Requirements Application-Level Requirements List 1. The program will prompt the user for data input of type and amount of currency to be converted. 2. The program will prompt the user to input the type of the destination currency. 3. The program will locate and display the current currency rates for types listed by the user. 4. The program will perform calculations to convert value from one type of currency to another type of currency indicated by the user. 5. The program will display the calculated total amount of the currency desired using the total of the original currency. 6. The program will prompt the user to indicate if another conversion is desired. Input-Process-Output Chart Complete the following input-process-output chart for the application using a structured programming approach. |Input |Process |Output | |Origin currency |Get user input. |Origin currency | |Origin currency amount | |Origin currency amount | |Destination currency |Get user input. |Destination currency | |Value of......

Words: 262 - Pages: 2

#### Week 2 Checkpoint

...Week 2 Checkpoint/Organizational Data and Information Daniel Barr XBIS/219 July 6, 2012 Shawn Rieder Week 2 Checkpoint/Organizational Data and Information Based on the information located on the BIRT Sample Database website, the software allows the user the ability to track many aspects of the defined business. It includes eight different tables. Offices, employees, customers, orders, order details, payments, products, and product lines. By using this software program the user can generate reports based on the data entered. The website also includes an ER-diagram which shows the different departments or types of data and how they are tied to other departments. The software allows for data to be entered by multiple sources, such as different stores and incorporates that data and combines that information to give the company a better picture of the entire company. Of course, information generated by data entry is only as good as the data entered. It is critical that companies train employees to correctly enter data into the system. Incorrect data entered into the system will generate reports that will not be accurate. There are several options available for companies. One option would be to purchase software for data management. Another option which is steadily growing is hiring a firm to store your data as well as manage the data as well. References: UOP Library An Overview of Business Intelligence Technology. Communications Of The ACM [serial......

Words: 280 - Pages: 2