Preview

It 210 Checkpoint

Satisfactory Essays
Open Document
Open Document
374 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
It 210 Checkpoint
Associate Program Material
Appendix H

Repetition and Decision Control Structures

In one of the week 3 discussion questions we discussed the algorithm that would be required to make a peanut butter sandwich. In this CheckPoint you will need to take that one step further and create a program design to make a peanut butter sandwiches. Below you will find a partial program design; you need to complete it by adding the pseudocode in the required areas. You need to add one repetition (loop) control structure and one decision control to complete the program design. The user will decide how many sandwiches are made; this is where the loop will be used. The user will decide if the sandwich includes jelly, and, if it does, what flavor of jelly; to keep it simple we are only allowing grape or strawberry jelly.

Analysis

Process: 1. Ask user how many sandwiches to make 2. Ask user if they want jelly on their sandwich 3. If jelly is requested, ask user what flavor (grape or strawberry) of jelly they would like 4. Make peanut butter and, if required, jelly sandwiches

Input: NumberOfSandwiches (integer) IncludeJelly (string; values Yes/No) TypeOfJelly (string; values Grape/Strawberry)

Output: Sandwich

Design

Main Module

Declare NumberOfSandwiches as integer Declare IncludeJelly as string Declare TypeOfJelly as string Declare Continue as Boolean Set Continue to true

Do While Continue = true Call InputModule EndDo

End Main Module

InputModule

Display "How many sandwiches would you like to make? Enter 0 to end program." Input NumberOfSandwiches

If NumberOfSandwiches = 0 Set Continue = false Else Display "Do you want jelly on your sandwiches?" Input IncludeJelly

If IncludeJelly = “Yes” Display “What type of jelly; Grape or Strawberry?” Input TypeOfJelly EndIf set

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Bus/210 Week 2 Checkpoint

    • 473 Words
    • 2 Pages

    In a joint-stock company an entrepreneur raises capital by issuing stock certificates of its ownership. This involves selling shares of the stock to investors that guarantee them the right to a certain percentage of the company’s profits. For example, suppose John holds shares of Mike’s Auto Repair Shop, which is a joint stock company. These shares give John a percentage of the vote on Mike’s management decisions, board elections, etc. The shares also give John unlimited responsibility for Mike’s outstanding unpaid liabilities. In other words, unless John sells his shares of Mike’s Auto Repair Shop, he is liable in whole and in part for principal and interest obligations on bonds or other outstanding loans. Since John holds shares of a joint stock company, he is putting his own assets at risk of being liquidated if Mike were to file for bankruptcy.…

    • 473 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    7. The program will calculate and display a final total for the items that are purchased.…

    • 498 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The differences between analog and digital can be described as the differences between interlaced and progressive scan on an LCD or plasma TV. I remembered purchasing my very first flat-screen, a generic-branded 42” plasma TV from an online outlet about 2 years ago that had 1080i (interlaced) scan and an HDMI input. I did not do an overwhelming amount of research on the technology at the time prior to purchasing the TV, because at $650 plus shipping, it seemed too good of a deal to pass up, especially for a plasma TV that also had 1080. After about 6-7 months later, the term “you get what you paid for” comes to mind. The screen had become gooey green for some reason and the majority of the time made the TV completely unwatchable. Although this story about my purchase has nothing to do with comparing the differences between interlaced or progressive scan, I did my homework afterwards to ensure that my next purchase would be 100% compatible with my video games that supported up to 1080p.…

    • 328 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Checkpoint It 205

    • 276 Words
    • 2 Pages

    The FDCA project is an evolution into the technology age for the U.S. Census Bureau. Implementing handheld electronic devices improves the effectiveness of the collection process because it cuts down the use of paper for recording data, it replaces hardcopy maps that collectors would carry to find their way around, saves time and money, and makes staying organized easier to do which improves data quality and credibility.…

    • 276 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It 210 Week 8 Checkpoint

    • 358 Words
    • 2 Pages

    |Graphical Interface/Central Computer |Communicates with the door, microwave |Incoming messages are from the user,|Outgoing messages tell the generator to |…

    • 358 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    It237 Week 2 Checkpoint

    • 414 Words
    • 2 Pages

    Throughout this paper I will be describing external, embedded, and inline types of cascading style sheets. Also, I will be providing a pro and a con for each type of cascading style sheet.…

    • 414 Words
    • 2 Pages
    Good Essays
  • Good Essays

    It250

    • 272 Words
    • 2 Pages

    Which of the following symbols instructs the shell to redirect the output of a command to the specified file instead of the screen and overwrite the file?…

    • 272 Words
    • 2 Pages
    Good Essays
  • Good Essays

    It/205 Week 8 Checkpoint

    • 339 Words
    • 2 Pages

    A census is the process of acquiring and recording information from the general public to determine population or housing numbers. For the 2010 census, the United States Census Bureau decided to implement a program called Field Data Collection Automation (FDCA). The program was intended to improve the data collection process by using handheld electronic devices. The mobile handhelds were to canvass addresses during the initial stage of the census.The FDCA program was important to the U.S. Census Bureau because it would replace the millions of paper forms and maps that were previously required to complete the census (Laudon&Laudon, 2011, p413). It was also important because it was meant to reduce costs, improve data quality, improve data collection efficiency, and encourage people to participate. Unfortunately, the FDCA program had problems.…

    • 339 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    IT140 Ip1

    • 1028 Words
    • 5 Pages

    Windows 7 operating system was produced for personal computers, business desktops, laptops, netbooks, tablet PCs, and media center PCs. This version was released on October 22, 2009, which was less than three years that Windows Vista was released. Windows 7 upgraded design worked with Windows Vista applications and its hardware. A few of Windows 7 new features are the advances in touch and handwriting recognition. It supports RAW image format with the addition of Windows Imaging Component. This enables previewing and metadata display in Internet explorer. Also full size viewing for slideshows in Windows Photo Viewer.…

    • 1028 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Bus/210 Week 1 Checkpoint

    • 255 Words
    • 2 Pages

    A local business that I frequent is Walmart. I go there on almost a weekly basis to get groceries and other necessities. The three main components of a business model are its business commerce, business occupation, and business organization.…

    • 255 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Unit 2 Hum 215 Aiu

    • 818 Words
    • 4 Pages

    Before our modern day , Latin was spoken among the most educated. Written literature was in Latin. The origins of language is an important aspect of our culture. We write and speak to get points across. The President of the United States makes his arguments to the Senate and other countries by using English. If we were in the period of time, everything important would be in Latin. The journey of language was not an overnight change. Other languages also help shape our language as we know it now.…

    • 818 Words
    • 4 Pages
    Good Essays
  • Good Essays

    It/205 Week 5 Checkpoint

    • 593 Words
    • 3 Pages

    As stated in our text, there are various categories of e-commerce and these types are, Business -to-consumer, which is the electronic commerce involving retailing products and services to individual shoppers. BarnesandNoble.com, which sells books, software, and music to individual consumers, is an example of B2C e-commerce. Another category would be Business-to-business, which is the electronic commerce involving the sales of goods and services among businesses. ChemConnect’s Web site for buying and selling chemicals and plastics is an example of B2B e-commerce. The next category on the list is Consumer-to-consumer, which is the electronic commerce involving consumers selling directly to consumers. For example, eBay, the giant Web auction site, enables people to sell their goods to other consumers by auctioning their merchandise off to the highest bidder, or for a fixed price. Craigslist is the most widely used platform used by consumers to buy and sell directly from others. There are two more examples that are emerging as we speak and they are mobile smartphones and dedicated e-readers like the Kindle using cellular networks, and mobile smartphones and small tablet computers using Wi-Fi wireless networks. The use of handheld wireless devices for purchasing goods and services from any location has been defined as mobile commerce.…

    • 593 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Aed222 Checkpoint Week 6

    • 331 Words
    • 2 Pages

    Early Intervention can help to enhance the child 's development, provide support and assistance to the family, and to maximize the child 's and family 's benefit to society. Children who are found to be profoundly gifted will be given academic based test and a creativity based test. This will identify what level of intervention is needed if any.…

    • 331 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It 218 Week 4 Checkpoint

    • 290 Words
    • 2 Pages

    A one dimensional array is a variable that holds more than one index value such as car [ 13 ]. A Two dimensional array will hold two different index values such as…

    • 290 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Currency Conversion Design Assignment—Hierarchy Chart Complete a hierarchy chart for the application by typing into the textboxes below. Main Module Display_Results Module Get_Int_Value Module Display_MenuModule Convert_Currency Module Currency Conversion Development Assignment—Flowcharts Complete the flowcharts for the assignment by typing into the textboxes below.…

    • 337 Words
    • 2 Pages
    Satisfactory Essays

Related Topics