It210 Checkpoint Week 2

In: Computers and Technology

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

It210 Week 4 Sunday

...Wk 4 Sunday Test Day 7 Daniel [Danny] R. Lehrman CRT205 2/10/13 Dr. Laurene Madern FOX News 2/8/13 8:00 PM-9:00 PM. MSNBC news 2/8/13 10:00 PM to 10:45 PM. Note: I watched at my neighbor’s house. We only buy TV during the football season, and we only get the basic package so I can buy the NFL package. Basic Dish TV does not have FOX or MSNBC. I focused to focus on these two segments from each channel. On FOX News, The Bill O’Reilly Factor segment, the discussion of gun rights laws is clearly slanted toward legal ownership of guns. I don’t enjoy hate type of humor or information. Bill attempts to substantiate the Conservative parties views toward gun control with the standard NRA-Conservative argument that Americans should bear the right to own arms, arms of any type. Not limited to sporting guns or collectables. His comments are sarcastic and confusing because they are vague, with no clear and factual point made. The fact is that Bill O’Reilly said nothing new as far as conservative views and gun rights are concerned. He continued to justify his argument by saying “guns don’t kill people, people kill people”. His argument is specious in design because it is a rationalization. People, in fact, use guns. Bill went as far as mentioning Hitler, and Nazi Germany’s very strict gun control laws. German soldiers took the guns from the Jewish people, and then turned on a defenseless people. Gun laws said to be made with “good” intentions that took guns out of...

Words: 800 - Pages: 4

It210

...Associate Program Material Appendix G Sequential and Selection Process Control Structure In the following example, the second line of the table specifies that tax due on a salary of $2,000.00 is $225.00 plus 16% of excess salary over $1,500.00 (that is, 16% of $500.00). Therefore, the total tax is $225.00 + $80.00, or $305.00. Salary Range in Dollars Base Tax in Dollars Percentage of Excess 1. 1 0.00-1,499.99 0.00 15 % 2. 2 1,500.00-2,999.99 225.00 16 % 3. 3 3,000.00-4,999.99 465.00 18 % 4. 4 5,000.00-7,999.99 825.00 20 % 5. 5 8,000.00-14,999.99 1425.00 25 % Input Processes Output First Name Last Name Salary 1. Get User Input First Name Last Name Salary Salary 2. Find Range Category Salary Range Salary Range Percentage of Excess Base Tax 3. Find Base Tax and Percentage of Excess Percentage Excess Total Base Tax Salary Percentage Excess Total Base Tax 4. Find Gross Salary Gross Salary First Name Last Name Salary Gross Salary 5. Display Gross Salary First Name Last Name Salary Gross Salary Main Module Declare Name as string Declare SalaryAmt as real Declare Base as real Declare Excess as real Declare Salary as real Declare ReRun as string Call Input Data Module Call Range Module Call Salary1 Module Call Salary2 Module Call Salary3 Module Call Salary4 Module Call Salary5 Module Call Output Module End Main Module Input Data Module Write, “Insert......

Words: 348 - Pages: 2

It210

...University of Phoenix Associates Program Material (revised by Albert Mink) Final Project Application-Level Requirements List Complete the following list of application-level requirements for the Metric Conversion program. The first requirement has already been entered for you. 1. The Metric Conversion Program will display a Main Menu to the user listing the available metric-to-U.S. measurement conversions available, along with an option to quit the program. 2. The Metric Conversion Program will confirm user entry is valid (1 to 5) or closes if entry is 6. 3. If entry 1 to 5 is entered the Metric Conversion Program will prompt for entry of metric measurement. 4. The Metric Conversion Program will verify the metric measurement is valid (0.0 to 10000.0) or prompt for valid entry. 5. The Metric Conversion Program will convert the entered metric measurement to corresponding amount using conversion formula. 6. The Metric Conversion Program displays converted amount. Input-Process-Output Chart Complete the following Input-Process-Output chart for the Metric Conversion program. The first process has already been entered for you. |Input |Process |Output | | |Display Main Menu |Main Menu | |Measurement Section...

Words: 1502 - Pages: 7

It 242 Week 2 Checkpoint

...Week 2 Checkpoint Alonzo Burger IT/242 Adam Moneypenny 4/4/2014 Week 2 Checkpoint The business world is constantly evolving and part of that evolution is the way it uses wide area networks. Business’s often employ several different types of data in order to stay current but also to maximize their profits. On a typical wide area network, three types of medium that often are used are voice, traditional data, and video. Because of the reliance on telephone calls, businesses have many options. A private branch exchange is used by many larger businesses that need more than one employee to have access to a phone call. This is simply a phone switch that is either bought or leased in which a company can control. This gives their employees an easy way to access a certain call from many levels of a facility, but also gives them the option of calling within the network. Voice over internet protocol is using the internet to send telephone calls. A traditional private branch exchange makes use of existing telephone systems while voice over internet protocol instead relies on internet service provider’s network. A private branch exchange can also have voice over internet protocol functionality. Traditional data and video are also things a company may need to use in order to conduct business. Video data is as it implies data that gets processed in the form of a video. Video files can be traditional data files for sending, but streaming services can also be used. A video stream......

Words: 306 - Pages: 2

It210 Week 6 Assignment

...Currency Conversion Test Cases Display Menu Valid Menu Selection or Errors | Inputs | Expected Output or Message | Canadian | Menu Selection = 1 | Do you want to continue with the conversion Yes or No?Currency_Type = 1 | Costa Rica | Menu Selection=1 | Do you wish to continue with this conversion yes or no?Currency Type= 1 | Australian | Menu Selection= 2 | Do you wish to continue with this conversion yes or no?Currency Type= 2 | Europe | Menu Selection= 3 | Do you wish to continue with this conversion yes or no?Currency Type= 3 | Singapore | Menu Selection= 4 | Do you wish to continue with this conversion yes or no?Currency Type= 4 | Colombian | Menu Selection= 5 | Do you wish to continue with this conversion yes or no?Currency Type= 5 | Exit | Menu Selection= 6 | Are you sure you would like to exit the program? | India | Menu Selection= 1 | The Country entered is invalid | Jupiter | Menu Selection= 2 | The Country entered is invalid | Peru | Menu Selection= 3 | The Country entered is invalid | Get International Values Valid International Values | Input | Expected Output | 100 CAD | 100.00 | International Value = 100 | 10000 CRC | 10000.00 | International Value=10000 | 25 AUD | 25.00 | International Value=25 | 2000 EUR | 2000.00 | International Value=2000 | 75 SGD | 75.00 | International Value= 75 | 6000 COP | 6000.00 | International Value=6000 | 2 CRC | 20000.00 | International Value=20000 | 60 AUD | 60.00...

Words: 704 - Pages: 3

Com 220 Week 2 Checkpoint

...This document of COM 220 Grammar Exercise 3 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...

Words: 380 - Pages: 2

It210 Checkpoint Week 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......

Words: 333 - Pages: 2

Acc 220 Week 2 Checkpoint

...ACC 220 WEEK 2 CHECKPOINT To purchase this visit here: http://www.nerdypupil.com/product/acc-220-week-2-checkpoint/ Contact us at: nerdypupil@gmail.com ACC 220 WEEK 2 CHECKPOINT CheckPoint: Proprietorships, Partnerships, & Corporations Explain the differences between a proprietorship, a partnership, and a corporation in 200 to 300 words. Why would an entrepreneur want to choose one over the other? If you were starting a new business, which would you choose? Explain why. Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 220 Week 2 Checkpoint in order to ace their studies. ACC 220 WEEK 2 CHECKPOINT To purchase this visit here: http://www.nerdypupil.com/product/acc-220-week-2-checkpoint/ Contact us at: nerdypupil@gmail.com ACC 220 WEEK 2 CHECKPOINT CheckPoint: Proprietorships, Partnerships, & Corporations Explain the differences between a proprietorship, a partnership, and a corporation in 200 to 300 words. Why would an entrepreneur want to choose one over the other? If you were starting a new business, which would you choose? Explain why. Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 220 Week 2 Checkpoint in order to ace their studies. ACC 220 WEEK 2 CHECKPOINT To purchase this visit here: http://www.nerdypupil.com/product/acc-220-week-2-checkpoint/ Contact us at: nerdypupil@gmail.com ACC 220 WEEK 2 CHECKPOINT CheckPoint: Proprietorships, Partnerships...

Words: 405 - Pages: 2

Acc 227 Week 2 Checkpoint Cvp Analysis

...ACC 227 WEEK 2 CHECKPOINT CVP ANALYSIS To purchase this visit here: http://www.nerdypupil.com/product/acc-227-week-2-checkpoint-cvp-analysis/ Contact us at: nerdypupil@gmail.com ACC 227 WEEK 2 CHECKPOINT CVP ANALYSIS ACC 227 Week 2 Checkpoint CVP Analysis Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 227 Week 2 Checkpoint CVP Analysis in order to ace their studies. ACC 227 WEEK 2 CHECKPOINT CVP ANALYSIS To purchase this visit here: http://www.nerdypupil.com/product/acc-227-week-2-checkpoint-cvp-analysis/ Contact us at: nerdypupil@gmail.com ACC 227 WEEK 2 CHECKPOINT CVP ANALYSIS ACC 227 Week 2 Checkpoint CVP Analysis Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 227 Week 2 Checkpoint CVP Analysis in order to ace their studies. ACC 227 WEEK 2 CHECKPOINT CVP ANALYSIS To purchase this visit here: http://www.nerdypupil.com/product/acc-227-week-2-checkpoint-cvp-analysis/ Contact us at: nerdypupil@gmail.com ACC 227 WEEK 2 CHECKPOINT CVP ANALYSIS ACC 227 Week 2 Checkpoint CVP Analysis Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 227 Week 2 Checkpoint CVP Analysis in order to ace their studies. ACC 227 WEEK 2 CHECKPOINT CVP ANALYSIS To purchase this visit here: http://www.nerdypupil.com/product/acc-227-week-2-checkpoint-cvp-analysis/ Contact us at: nerdypupil@gmail.com ACC 227 WEEK 2 CHECKPOINT CVP ANALYSIS ACC 227......

Words: 361 - Pages: 2

Acc 230 Week 2 Checkpoint Differentiating

...ACC 230 WEEK 2 CHECKPOINT DIFFERENTIATING To Download this course, visit this link http://www.nerdypupil.com/product/acc-230-week-2-checkpoint-differentiating/ Or email us at support@nerdypupil.com ACC 230 WEEK 2 CHECKPOINT DIFFERENTIATING CheckPoint: Differentiating Depreciation Methods Resource:Ch. 2 of Understanding Financial Statements Compose a 200- to 300-word response to Question 2.4 on p. 74 (Ch. 2). In addition, include a summary of the advantages and disadvantages of using different depreciation methods, such as straightline versus accelerated. Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 230 Week 2 CheckPoint Differentiating in order to ace their studies. ACC 230 WEEK 2 CHECKPOINT DIFFERENTIATING To Download this course, visit this link http://www.nerdypupil.com/product/acc-230-week-2-checkpoint-differentiating/ Or email us at support@nerdypupil.com ACC 230 WEEK 2 CHECKPOINT DIFFERENTIATING CheckPoint: Differentiating Depreciation Methods Resource:Ch. 2 of Understanding Financial Statements Compose a 200- to 300-word response to Question 2.4 on p. 74 (Ch. 2). In addition, include a summary of the advantages and disadvantages of using different depreciation methods, such as straightline versus accelerated. Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 230 Week 2 CheckPoint Differentiating in order to ace their studies. ACC 230 WEEK 2 CHECKPOINT...

Words: 556 - Pages: 3

Acc 260 Week 2 Checkpoint

...ACC 260 WEEK 2 CHECKPOINT To purchase this visit here: http://www.nerdypupil.com/product/acc-260-week-2-checkpoint/ Contact us at: nerdypupil@gmail.com ACC 260 WEEK 2 CHECKPOINT CheckPoint: Unethical Practices of Arthur Andersen • Resource: Business & Professional Ethics • Due Date: Day 4 [Individual forum] • Read the Arthur Andersen’s Troubles Ethics Case on pp. 107-113 (Ch. 2) of the text. • Answer questions 1, 3, and 4 on p. 113 in 200 to 300 words. When responding to question 3, focus solely on the Enron case. Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 260 Week 2 Checkpoint in order to ace their studies. ACC 260 WEEK 2 CHECKPOINT To purchase this visit here: http://www.nerdypupil.com/product/acc-260-week-2-checkpoint/ Contact us at: nerdypupil@gmail.com ACC 260 WEEK 2 CHECKPOINT CheckPoint: Unethical Practices of Arthur Andersen • Resource: Business & Professional Ethics • Due Date: Day 4 [Individual forum] • Read the Arthur Andersen’s Troubles Ethics Case on pp. 107-113 (Ch. 2) of the text. • Answer questions 1, 3, and 4 on p. 113 in 200 to 300 words. When responding to question 3, focus solely on the Enron case. Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 260 Week 2 Checkpoint in order to ace their studies. ACC 260 WEEK 2 CHECKPOINT To purchase this visit here: http://www.nerdypupil.com/product/acc-260-week-2-checkpoint/ Contact us at: nerdypupil...

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

Acc 220 Week 2 Checkpoint

...Checkpoint Proprietorship is a business owned by one person or married couple and they operate the business by themselves. They are responsible for all liabilities of business and they will also receive all income. Partnership is when there are two or more people that own the business which mean they all have unlimited liability for the debts of the business. It also means that income is split between each partner of course depending on the amount of money or assets that each person invested. Corporation is a company owned by stockholders and they are not responsible for the corporation’s debts. This also means that there is less stress being part of a corporation as a stockholder than a proprietorship and partnership. An entrepreneur would want to choose one over the other so they can start their business. By looking over the advantages that each one have, they can decides which one could be the best one to meet their goals. I just think that they have to look at everything that is available to them including how much money they have. This way they would be able to know if they can start a business by themselves or they may need a partner to start the business. If I would start a new business, I think that I would choose to go with proprietorship because it is one of the easiest one of them all. I do understand that I would have to come up with all of the money but I can start small. Another reason that I think I would like to be a......

Words: 296 - Pages: 2