Question: // Debug 4-1 // function counts down from higher number to lower number entered // e.g., if numbers entered are 4 and 8 // output

 // Debug 4-1 // function counts down from higher number to

// Debug 4-1 // function counts down from higher number to lower number entered // e.g., if numbers entered are 4 and 8 // output is: 8 7 6 5 4

#include #include void main() { void countDown(double highest, double lowest); double high, low, temp; cout>high; cout>low; if(high

______________________

// Debug 4-2 // User enters price // program computes tax rate // 5% at $10 and under, otherwise 7%

#include #include void main() { double askPrice(); double calcTax(double price); double price; double taxRate; askPrice(); calcTax(); cout>price; return price; } double calcTax() { double rate; if(price

_____________________

// Debug 4-3 // Function displays course information // instructor defaults to Staff // enrollment defaults to 30

#include #include void main() { void displayCourseInfo(char instructor[] = "Staff", int enrollment = 30, char course[]); displayCourseInfo("ENG101"); displayCourseInfo("Bossert", "PSY151"); displayCourseInfo("Dykeman", 24, "CIS200"); getch(); } void displayCourseInfo(char course[], char instructor[], int enrollment) { cout

______________________

// Debug 4-4 // uses Circle class

#include #include class Circle { int radius; }; void main() { void printArea(Circle c); void printDiameter(Circle c); Circle aBigCircle, aLittleCircle; aBigCircle.radius = 50; aLittleCircle.radius = 4; printArea(aBigCircle); printDiameter(aBigCircle); printArea(aLittleCircle); printDiameter(aLittleCircle); getch(); } void printArea(Circle) { double area; area = radius * radius * 3.14159; cout Based on the comments in the files, determine the problems, correct them and run them

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!