Preview

Unit 7 Programming

Satisfactory Essays
Open Document
Open Document
334 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Unit 7 Programming
Unit 7 HW
S.A. pg. 213 #1-5, A.W. 1, 2, 7, 8
P.E. pg. 214 #1, 3, 4
S.W.
1. It makes the program easier to read and debug.
2. A pretest loop tests its condition before performing an iteration; while a post-test loop tests its condition after an iteration.
3. A loop that uses a true/false condition to control the number of iterations.
4. A loop that iterates a specific number of times.
5. Initialization, test, and increment

A.W.
1. Declare Integer num
Declare Integer product = 0
While product < 100 Display “Enter a number to be multiplied by 10” Input num Set product = num * 10 Display product
End While
2. Declare Integer num1
Declare Integer num2
Declare Integer sum
3. Declare String condition
Do
Display “Enter first number to be added” Input num1 Display “Enter second number to be added” Input num2 Set sum = num1 + num2 Display “The sum is “ & sum Set sum = 0 Display “Would you like to add another set of numbers, yes or no?” Input condition
While condition == “yes”

7. Declare integer x
Do
Display “Enter a number” Input x
While x > 0
8. Declare String sure = “n”
While sure != “y” and sure != “Y” Display “Are you sure you want to quit?” Input sure
End While
P.E.
1. Declare Integer bugs
Declare Integer day
Declare Integer total = 0
For day = 1 to 7 Display “Enter the amount of bugs collected from Day “ & day Input bugs total = total + bugs bugs = 0
End For
Display “The total amount of Bugs for the week is “ & total
3. Declare Double budget
Declare Double total = 0
Declare Double expense
Declare String keepGoing
Declare Double balance
Display “What is your budget for the month?”
Input budget
Do
Display “Enter an expense from the month” Input expense total = total + expense Display “The total expense so far is “ & total Display “Anymore expenses, y or n?” Input keepGoing
While keepGoing == “y”
Set balance = budget –

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Unit 7 P4 Business

    • 360 Words
    • 2 Pages

    The ordering process can sometimes be a source of unnecessary costs. This might happen as OBS deals with too many suppliers and there is no clear ordering policy or guidelines as ordering is not centralised. Thus there are insufficient internal controls against mistakes and/or fraud. Reducing the number of suppliers that OBS deal with can often result in savings, especially if it gives you the opportunity to improve relationships with the remaining suppliers and negotiate lower prices and better payment terms.…

    • 360 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 7 Lab 7.1

    • 391 Words
    • 3 Pages

    Include feedlines connecting radio transmitters and receivers with their antennas, computer network (Internet) connections, and distributing cable television signals.…

    • 391 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 Unit 6 Programming

    • 420 Words
    • 5 Pages

    print (” These are not primary colors . I can ’ t mix them !”)…

    • 420 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    It210 Week 4 Psuedocode

    • 584 Words
    • 3 Pages

    Program Pseudocode Currency_Convertor Main Module Delcare USDollars As Float Declare Rate1 As Float Declare Rate2 As Float Declare Rate3 As Float Declare Rate4…

    • 584 Words
    • 3 Pages
    Good 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

    Unit 7 Assignment 1

    • 261 Words
    • 2 Pages

    2. A pretest loop is a loop tests the conditions before performing the iteration. A posttest loop performs the iteration then test the condition.…

    • 261 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 week 2

    • 320 Words
    • 3 Pages

    1. Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height.…

    • 320 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It 210 Checkpoint

    • 374 Words
    • 2 Pages

    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.…

    • 374 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    PT1420 Unit 3 Labs

    • 270 Words
    • 2 Pages

    The Network Systems Administration degree is awarded after 90 credits and Nolan Owen has 70 left to take before graduation.…

    • 270 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    In this report I will briefly explain about the features and functions of different operating systems. I have chosen to compare windows 7 Mac OS.…

    • 537 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Programing Problems

    • 721 Words
    • 3 Pages

    IT 210 13 Programming Problems Pseudocode for chapter 2 checkpoint Frank T. Hartman IT 210 13 Programming Problems Pseudocode for chapter 2 checkpoint Frank T. Hartman Programming Problem 1 Main Module Declare SalesAmount As Real Declare CommissionRate As Real Declare CommissionEarned…

    • 721 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    It 210 Week 7

    • 286 Words
    • 2 Pages

    2. Display the contents of the file GRADES created in Problem 1. Each student’s record should appear on a separate line and include the total score (the sum of the three tests) for that student. For example, a line of output might be as follows:…

    • 286 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    UNIT 2

    • 470 Words
    • 3 Pages

    5.) Write the pseudocode for a program that will determine the average miles per gallon a car gets. (Inputs should be miles driven and gallons of gas used)…

    • 470 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Unit 079

    • 3487 Words
    • 14 Pages

    If you are becoming a home based child carer then you must be aware of the current legislation and the role in which regulatory bodies play. If you wish to register for becoming a childminder in Northern Ireland you must do so through your local Health and Social Services Trust. A childminder must by law register with the local Health and Social Services Trust and the purpose of registration is to protect children, to provide reassurance to parents using childcare and to ensure that childminding services meet acceptable standards. To achieve registration a childminder is required to comply with standards of safety, equipment, numbers of children etc. The home environment is checked to ensure that it meets the standards required and that it is suitable to care for children. References and health checks are required as are criminal record checks on all individuals in the household over the age of 10. The Children (NI) Order 1995 states that registration should be completed within three months of receipt of the completed application form. Following on from registration, childminders are inspected annually by the Health and Social Services Trust. NICMA recognise that childminding is a professional day care service and as such, the registration process is the first step towards the provision of quality childminding. The Children (NI) Order 1995 states that a registered childminder is, "a person who looks after 1 or more children under the age of 12, for more than 2 hours per day, on domestic premises, for reward". Registered Childminders are self-employed day care providers who work in their own home to provide care and education for other people’s children within a family setting. Unlike nannies and au pairs, they are inspected and registered by Social Services on a regular basis. Registered childminders may be registered to care for up to 6 children between the ages of 0 - 12 years of age (including their own children) and only registered…

    • 3487 Words
    • 14 Pages
    Powerful Essays
  • Satisfactory Essays

    Design a modular program that asks the user to enter a distance in kilometers, and the converts that distance to miles. The conversion formula is as follows:…

    • 620 Words
    • 5 Pages
    Satisfactory Essays