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

  Using both printed material and online resource

Using both printed material and online resource

  Explaining accuracy when using training set data

Explain what can you say about accuracy when using training set data and when using separate percentage to train?

  Backoff algorithm for contention

Two CSMA/CD stations are each trying to transmit long (multiframe) files. After each frame is sent, they contend for the channel, using the binary exponential backoff algorithm.

  How an object would be instantiated using both types

explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of cons..

  Write a complete main method that would print your last name

Suppose your name was George Gershwin. Write a complete main method that would print your last name, followed by a comma, followed by a space and your first name. Question 2 Declare a variable named myMenu suitable for holding references to Menu o..

  Types of eai approaches

Types of EAI Approaches

  Describe technology had an impact on consumers health care

Describe at least two ways technology has had an impact on consumers of health care. In what ways has technology improved our ability as health care organizations to market ourselves in our communities?

  Security models and cloud operations

From the first e-Activity, analyze the industry researched for each security model would be most applicable, and explain why you believe that to be the case. Identify the security models from your findings.

  Addresses design issues and evaluation issues

A new design for an interactive device or some software application. It will provide the student with an overall look at the entire lifecycle of design from an HCI perspective. Feel free to incorporate techniques and references from the readings o..

  Compute the global boolean or of all input values on ring

Consider an anonymous ring of size n. Each node v stores an input boolean value i(v). When the algorithm terminates, then every node is to store the output in its private variable. Every node knows n, in that n can be a part of code.

  Reflect upon the it strategies

Reflect upon the IT strategies that are used to encourage economic development. Select two strategies and discuss how economic factors affect the strategies that a government may use to facilitate economic development.

  Experiment based analysis and simulation based analysis

Outline two advantages and two limitations (each) of experiment-based analysis and simulation-based analysis.

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