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

  Converts live multimedia content for real-time streaming

Converts live multimedia content for real-time streaming

  Develop an interface evaluation questionnaire

Develop an interface evaluation questionnaire that contains 20 generic questions that would apply to most interfaces.

  Which value of border-collapse will give each cell

Which value of border-collapse will give each cell of a table a border that can be specified independently of adjacent cells?

  Calculate the day of the week for that date

If the user enters garbage or the wrong number of digits, we expect the output to be garbage - The calendar has changed over the centuries

  Identify major points to include in communications plan

Identify the major points you would include in a communications plan at this point in the project? what advice would you give your project team to help it manage the user expectations?

  Social and ethical issues in information systems

Prepare a research proposal on social and ethical issues in information systems.

  Infrastructure document and a revised project plan

This assignment consists of two (2) sections: an infrastructure document and a revised project plan. You must submit both sections as separate files for the completion of this assignment. Label each file name according to the section of the assign..

  Write a condition-controlled while loop

Write a condition-controlled while loop that allows the user to enter the calories they burned. Stop looping when the user enters a negative number. Display the Total and Average number of calories burned.

  Describe the challenges faced by us customs

Based on the assigned readings, your responses are to be in your own words with no copying except for minimal quotes that must be properly cited. What I am looking for here are your own thoughts and opinions that demonstrate your understanding of the..

  Airline business upgraded to the same application

Few things in the airline business are more daunt-ing than upgrading to a new reservations system. Do it well, and customers are none the wiser; mess it up, and a carrier risks losing customers and tarnishing its brand. Discount carriers JetBlue A..

  What are your thoughts about your results

What are your thoughts about your results?  What are you feelings towards this assignment?  How would you improve it? Submit this with your assignment.

  In the context of network management how can the similar

question 1. in the context of network management how can the same manageability features contribute simultaneously to

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