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 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
  • Satisfactory Essays

    Unit 8 assignment 1

    • 347 Words
    • 2 Pages

    IP Address – A 32-bit binary number, often written in the DDN format, that hosts use as their unique identifier in a TCP/IP network, much like a postal mailing address in the postal system.…

    • 347 Words
    • 2 Pages
    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 8 Assignment 1

    • 320 Words
    • 1 Page

    An important improvement that was added in Windows Vista was the removable media policies. It allowed for the use of USB drives, flash memory cards, external USB hard drives, and CD/DVD writers. These however posed a huge security problem for companies because it allowed the users to easily copy data from their systems, or even place unwanted viruses or malware onto their network. This lead to a lot of companies removing or just destroying these devices so that they wouldn’t work on their workstations.…

    • 320 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    unit 3 assignment 4

    • 4187 Words
    • 14 Pages

    It is not only individuals in the consumer marketplace that have the potential to buy, as buyers also exist in the business to business market. B2B markets are individuals that have the responsibility of purchasing on behalf of the business. Cadbury have both individual and business to business consumers. They trade with all major supermarkets and superstores, but also sell to local and private shops. This way they can broaden their distribution and reach customers and consumers everywhere.…

    • 4187 Words
    • 14 Pages
    Powerful 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

    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
  • 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

Related Topics