Design logic by drawing a flowchart and writing pseudocode

Assignment Help Basic Computer Science
Reference no: EM13922252

"Looping (Part 1)"

Design the logic by drawing a flowchart and writing pseudocode for a program that outputs every number from 1 through 20.

"Looping (Part 2)"

Examine the pseudocode that follows the introductory comments, then find and correct all the bugs. Correct all bugs in the file and be sure to clearly highlight the corrections.

1. Debugging

This program should display every fifth year starting with 2015, e.g., 2015, 2020, 2025, and so on for 30 years.

start
Declarations
num year
num START_YEAR = 2015
num FACTOR = 5
num END_YEAR = 30
year = START_YEAR
while year <= END_YEAR
output year
endwhile
stop

2. Debugging

This program displays every combination of three-digits.

start
Declarations
num digit1 = 0
num digit2 = 0
num digit3 = 0
while digit1 <= 9
while digit2 <= 9
while digit3 <= 9
output digit1, digit2, digit3
digit1 = digit1 + 1
endwhile
digit2 = digit2 + 1
endwhile
digit3 = digit3 + 1
endwhile
stop

Reference no: EM13922252

Questions Cloud

Build and execute two programs requiring decisions : You will code, build, and execute two programs requiring decisions. The first program will determine the smaller of two numbers input on the screen. The second program will calculate the shipping charge based on the purchase amount input on the sc..
Design and applying a range of appropriate deployment method : Discuss the technologies and security resources that support and are available in network infrastructure management by demonstrating the practical and conceptual usage by preparing the design and applying a range of appropriate deployment method
Advance to subsidiary : Checking account balance $939,320; certificate of deposit $1,445,300; cash advance to subsidiary of $982,280; utility deposit paid to gas company $198. what is the cash balance.
Statistics and advertising : In Week 4, you explored ttests, which allowed you to compare a sample to a population or compare twogroups to one another. You analyzed a study about how visualization techniquesimpact how long it takes people with insomnia to fall asleep. But wha..
Design logic by drawing a flowchart and writing pseudocode : Examine the pseudocode that follows the introductory comments, then find and correct all the bugs. Correct all bugs in the file and be sure to clearly highlight the corrections.
Dobson manufacturing company : Dobson Manufacturing Company uses a job order cost system with manufacturing overhead applied to products on the basis of direct labor dollars. At the beginning of the most recent period, the company estimated its total direct labor cost to be $59,60..
Dependent t test-independent t test : For this assignment, we are interested in finding out whether participation in a creative writing course results in increased scores of a creativity assessment. For this part of the activity, you will be using the data file "Activity 4a.sav".
Windows server 2008 active directory : This is an individual project where you will engage the many components of planning the implementation of Windows Server 2008 Active Directory. With increased use of computer technology, many medical practices, clinics and doctor's offices are mov..
Analysis of consumer demand : how does utility figure in the analysis of consumer demand

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd