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:

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 9PP
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr