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

  Involves linux programming

Involves LInux Programming

  Line of developmental training and inspirational materials

The Becoming Company is a full service provider for a line of developmental training and inspirational materials including videos, music, and books called Drive Change.

  Set of strings of balanced parentheses

Show that the set of strings of balanced parentheses is not defined by any regular expression. Hint: The proof is similar to the proof for the language E above. Suppose that the set of balanced strings had a deterministic finite automaton of m states

  Implement a sequence recognizer

Implement a sequence recognizer that outputs 1 whenever a sequence of input bits ends in "0010" or "100". This circuit receives (as input) one bit per clock cycle and outputs the value 1 whenever the sequence 0010 or 100 appears

  Preferred storage method for vsphere

For this discussion, select your preferred storage method for vSphere and explain why this is your preferred method.•Is one storage method easier to configure and support than another? If so, which one do you feel is easier? Explain what separates th..

  What is meant by fundamentals vs application mass

a) What is meant by "fundamentals vs. application mass". b) What is meant by timelessness of a fundamental truth c) What part of a system constantly evolves and d) What are the pre-requisites for a..

  Show her to install and used it in my network administration

and show her to install and used it in my network admistaion class

  Implement a binary search or avl tree

You are to implement a Binary Search or AVL tree containing the details of known criminals.  The criminal object must minimally contain the following information.

  Gather and compile information

Gather and compile information

  What are the benefits of using tangible interfaces

What are the benefits of using tangible interfaces compared with other interfaces like GUI, pen-based or gesture?

  Expressions to a minimum sop or pos

Simplify each of the subsequent expressions to a minimum SOP or POS and sketch the circuit using AND, OR, and NOT gates.

  The sum of the angles of a triangle is always 180

The sum of the angles of a triangle is always 180. Get two angles from the user and display what the final angle must be in order to complete the triangle. Run the program to see the exact format of the output.

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