Question: Correct the code below making absolutely no changes to main(). Instead, alter 1) prototype for calcDiscount(), definition of function calcDiscount(), and add your name into
Correct the code below making absolutely no changes to main(). Instead, alter 1) prototype for calcDiscount(), definition of function calcDiscount(), and add your name into signature function. In other words, if 100.0 is entered the amount owed output should be 90.00
/************************************************************* ****Change only 1) function calcDiscount, 2) its prototype *** ****and 3) place your name in signature function!************* **************************************************************/ #include#include using namespace std; #define DISC_RATE 0.1 //Function prototypes void signature(void); double calcDiscount(double); int main() { // Declare variaables double amtOwing, discount; //Input amouont owed cout > amtOwing; //Calculate discount and update amount owing discount = calcDiscount(amtOwing); //Output discount and undated amount owed cout 1488700740 03/04/2017 11:59pm
Text Entry
Copy and paste or type your submission right here. Keyboard ShortcutsHTML Editor Rich Content Editor
CancelSubmit Assignment
CancelUpdate Description
Additional Comments:
CancelUpdate Comments
Additional Comments:
Rubric
Can't change a rubric once you've started using it.
Find a Rubric
Title:
Find Rubric
Title
You've already rated students with this rubric. Any major changes could affect their assessment results.
Title
Criteria Ratings Pts This criterion is linked to a Learning Outcome Description of criterion view longer description threshold: 5 pts Edit criterion description Full Marks 5 pts blank Edit rating Delete rating {C} Add new rating category after current rating No Marks 0 pts blank_2 Edit rating Delete rating {C} Add new rating category after current rating This area will be used by the assessor to leave comments related to this criterion. pts / 5 pts -- This criterion is linked to a Learning Outcome Description of criterion view longer description threshold: 5 pts Edit criterion description Full Marks 5 pts blank Edit rating Delete rating {C} Add new rating category after current rating No Marks 0 pts blank_2 Edit rating Delete rating {C} Add new rating category after current rating This area will be used by the assessor to leave comments related to this criterion. pts / 5 pts -- Total Points: 5 out of 5 Criterion Find Outcome
I'll write free-form comments when assessing students
Use this rubric for assignment grading
Hide score total for assessment results
CancelCreate Rubric
Previous
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

Find Rubric