Part 1 The following 2 debugging assignments begins with some comments (lines that begin with 2 slashes) that describes the program. Examine the pseudocode that follows the introductory comments. Discover the syntax and logic errors and fix the pseudocode in the area labeled, Correct the pseudocode below.   Pseudocode Debugging Exercise 1   // This pseudocode is intended to compute the number // of miles per gallon you get with your automobile. start         input milesTraveled         input gallonsOfGasUsed         milesPerGallon = milesTraveled + gallonsOfGas         output milsperGallon start       Correct the pseudocode below   Pseudocode Debugging Exercise 1   // This pseudocode is intended to compute the number // of miles per gallon you get with your automobile. start         input milesTraveled         input gallonsOfGasUsed         milesPerGallon = milesTraveled + gallonsOfGas         output milsperGallon start           Pseudocode Debugging Exercise 2   // This pseudocode is intended to describe // computing the per day cost of your rent // in a 30-day month start         input rent         costPerDay = rent * 31         output rent stop       Correct the pseudocode below   Pseudocode Debugging Exercise 2   // This pseudocode is intended to describe // computing the per day cost of your rent // in a 30-day month start         input rent         costPerDay = rent * 31         output rent stop           Part 2 The following debugging assignment contains a flowchart that contains syntax and/or logical errors. Examine the flowchart and then find and correct all the bugs. Use Draw.io to draw your corrected flowchart. Save your corrected flowchart as a .drawio file (Use the Save As option in Drawio). Export your flowchart as a JPG file (Export JPG option in Drawio). Insert the picture (JPG file saved in the step above) in the space provided below.   Debugging Exercise 3     Put corrected Debugging Exercise 3 here:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Unit 1 Debugging Exercises

 

Part 1

The following 2 debugging assignments begins with some comments (lines that begin with 2 slashes) that describes the program. Examine the pseudocode that follows the introductory comments. Discover the syntax and logic errors and fix the pseudocode in the area labeled, Correct the pseudocode below.

 

Pseudocode Debugging Exercise 1

 

// This pseudocode is intended to compute the number

// of miles per gallon you get with your automobile.

start

        input milesTraveled

        input gallonsOfGasUsed

        milesPerGallon = milesTraveled + gallonsOfGas

        output milsperGallon

start

 

 

 

Correct the pseudocode below

 

Pseudocode Debugging Exercise 1

 

// This pseudocode is intended to compute the number

// of miles per gallon you get with your automobile.

start

        input milesTraveled

        input gallonsOfGasUsed

        milesPerGallon = milesTraveled + gallonsOfGas

        output milsperGallon

start

 

 

 

 

 

Pseudocode Debugging Exercise 2

 

// This pseudocode is intended to describe

// computing the per day cost of your rent

// in a 30-day month

start

        input rent

        costPerDay = rent * 31

        output rent

stop

 

 

 

Correct the pseudocode below

 

Pseudocode Debugging Exercise 2

 

// This pseudocode is intended to describe

// computing the per day cost of your rent

// in a 30-day month

start

        input rent

        costPerDay = rent * 31

        output rent

stop

 

 

 

 

 

Part 2

The following debugging assignment contains a flowchart that contains syntax and/or logical errors.

  1. Examine the flowchart and then find and correct all the bugs.
  2. Use Draw.io to draw your corrected flowchart.
  3. Save your corrected flowchart as a .drawio file (Use the Save As option in Drawio).
  4. Export your flowchart as a JPG file (Export JPG option in Drawio).
  5. Insert the picture (JPG file saved in the step above) in the space provided below.

 

Debugging Exercise 3

 

 

Put corrected Debugging Exercise 3 here:

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
C-string
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education