Preview

Unit 7 Assignment 1

Satisfactory Essays
Open Document
Open Document
261 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Unit 7 Assignment 1
Unit 7 Assignment 1: Homework
Learning Objectives and Outcomes
Use pseudocode/flowcharts to represent repetition structures.
Create While, Do-While, and Do-Until conditional loops.
Describe the implications of an infinite loop.

Assignment Requirements
Answer:
I. Short Answer Review Questions 1-5, starting on page 213
1. You visually set them apart from surrounding code.
2. A pretest loop is a loop tests the conditions before performing the iteration. A posttest loop performs the iteration then test the condition.
3. A condition controlled loop repeats a specific number of times.
4. A count-controlled loop repeats a specific number of times.
5. Initiation, Test, and Increment
II. Algorithm Workbench Review Questions 1, 2, 7, and 8, starting on page 213
1. Main()
Dm number As Integer
Dm product As Integer

While product <100 Console.writeline(*enter a number*)
Number = Console.readline()
Product – numbers * 10 Console.writeline(*the number you entered: * &numbers& * Multiplied by ten is: * &product) End white

Console.writeline(*press enter to continue…*) Console.readkey() End sub
2. Declare Integer x = 1
While x > 0 Display “Enter a number. “ Input x
End While
Declare x as Integer = 1
Do
Display “Enter a number.”
Input x
If x ! = 0 then
Display “Try again”
End if
Until x = 0
3. Convert the While loop in the following code to a Do- While loop:
Declare Integer x = 1
While x > 0 Display " Enter a number."
Input x
End While
Declare x as integer = 1
Do
Display “ Enter a number:”
Input x
If x != 0 then
Display “ Try again”
End if
Until x = 0
Display “ The number you entered is correct”
III. Programming Exercises 1, 3, and 4, starting on page 214

Required Resources
Textbook

Submission Requirements
Submit your written answers to your instructor at the beginning of Unit 8.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    unit 5 assignment1

    • 309 Words
    • 2 Pages

    What type of install is the cable going into? Is everything in a fixed position? If you have an install where items are moved around without being disconnected, using highly flexible cable is necessary. Cables in these scenarios need to be flexible to meet those demands of mobility, and also for the life of the wire so that it does not crack, break, fray or short. We had a job at a university where we moved flat panels on a track system to create different screen sizes, and for that we had to make sure the cable would meet the demand.…

    • 309 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 7 Assignment 1

    • 609 Words
    • 3 Pages

    Switched circuit- A circuit created by the phone company in reaction to signaling (the user tapping telephone keys or a modem sending in the same digits), with the telco tearing down the circuit when the user is finished.…

    • 609 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 10 Assignment 1

    • 344 Words
    • 2 Pages

    * The onsite updates the responsibility of the onsite IT team, and ultimately the IT supervisor. The responsibility of the restore includes the same people plus the OK from management. All parties need to be kept updated with current…

    • 344 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 3 Assignment 1

    • 383 Words
    • 2 Pages

    Video Connectors – Video Graphics Adapter (VGA), Digital Video Interface (DVI), and S-Video (TV connection)…

    • 383 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 8 Assignment 1

    • 349 Words
    • 1 Page

    IP route: One entry in an IP routing table that lists some potential destination (usually a network ID or subnet ID) as forwarding instructions, including the interface out which the router should forward the IP packet.…

    • 349 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    Unit 4 Assignment 2

    • 717 Words
    • 3 Pages

    The purpose of this policy is to define standards for connecting to Richman investment’s network from any host. These standards are designed to minimize the potential exposure to Richman investments from damages which may result from unauthorized use of Richman investments resources. Damages include the loss of sensitive or company confidential data, intellectual property, damage to public image, damage to critical Richman investments internal systems, etc.…

    • 717 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 2 Assignment 2

    • 299 Words
    • 1 Page

    The evolution of the Ethernet standards will have a large effect on data storage requirements. As the speeds of these connections continue to increase, users and businesses will be able to transfer larger files faster and will required larger data storage to accommodate the increased demand of resources. Thirty years ago, when the standard was only 10MB, there was nowhere near the need for the data storage capacity as there is today, with the current standard being 100 Gbit, with 1 Tbit on the way. Data storage wasn’t as high in demand before because it would take an extremely long amount of time to transfer large files, but as the speed increases, so will the demand.…

    • 299 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    In the space provided below, copy and paste your VBScript Program Code. If it doesn’t fit, use the next page for the continuation of your sourcecode program…

    • 529 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 3 Assignment 1

    • 310 Words
    • 1 Page

    5. How long do you think it will take before the IPv4 addresses are completely exhausted? It could possibly become exhausted within the next two years or so.…

    • 310 Words
    • 1 Page
    Satisfactory Essays
  • Better Essays

    UNIT 2 ASSIGNMENT 1

    • 1061 Words
    • 5 Pages

    4. According to this chapter, which of the following concepts happens in a modern-day, end-to-end voice call between two home telephones in the United States? (Choose two answers.)…

    • 1061 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    COMP230 Week 4

    • 458 Words
    • 4 Pages

    WScript.Echo "The IP Address in Room " & room & " for computer " & computer & " is " & ipAddress(room-100,computer-1)…

    • 458 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 7 Assignment 3

    • 409 Words
    • 2 Pages

    Structuration Theory is a social theory based on several Theorists throughout time but notably Anthony Giddens. Basically Structuration Theory of our social systems stating that both structure and agents are equal in how we interact socially.…

    • 409 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Sas If Then Else

    • 1347 Words
    • 6 Pages

    Using IF THEN ELSE statements, LENGTH is to be use so that the new coloum create (Patient) will have defined length that is $12.…

    • 1347 Words
    • 6 Pages
    Good Essays
  • Good Essays

    1. Rewrite the following counter-control program to do while loop and for loop, in order to print out the biggest number inputted via keyboard.…

    • 1229 Words
    • 8 Pages
    Good Essays
  • Good Essays

    i am a pakistani

    • 747 Words
    • 3 Pages

    Code 1: 1. Write a c program to reverse a given number 2. C program to find reverse of a number 3. C program to reverse the digits of a number 4. Reverse of a number in c using while loop #include int main(){ int num,r,reverse=0;…

    • 747 Words
    • 3 Pages
    Good Essays

Related Topics