subject

What line number of the following code contains an error and what type of error is it? 1. double sales_tax(amt) { 2. double sale = amt + (amt * .06); 3. return amt; 4. } 5. 6. int main() { 7. cout << "Welcome to the 6% tax calculator!\n"; 8. double total; 9. cout << "Please enter the total amount: "; 10. cin >> total; 11. cout << "The total amount after tax is: " << sales_tax(total); 12. } a. line 11, logic error b. line 3, syntax error c. line 1, runtime error d. line 1, syntax error

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
Answers: 2
question
Computers and Technology, 22.06.2019 23:00
Suppose s, t, and w are strings that have already been created inside main. write a statement or statements, to be added to main, that will determine if the lengths of the three strings are in order by length, smallest to largest. that is, your code should determine if s is strictly shorter than t, and if t is strictly shorter than w. if these conditions hold your code should print (the boolean value) true. if not, your code should print false. (strictly means: no ties) example: if s, t, and w are "cat", "hats", and "skies" your code should print true - their lengths are 3-4-5; but if s, t, and w are "cats" "shirt", and "trust", then print false - their lengths are 4-5-5 enter your code in the box below
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
You know the right answer?
What line number of the following code contains an error and what type of error is it? 1. double sal...
Questions
question
Mathematics, 24.10.2019 02:00
question
Biology, 24.10.2019 02:00
Questions on the website: 13722367