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, 21.06.2019 21:40
Write c function that can replace all the positive elements to 0 and negative to 1 in undefined length one-dimensional array. test your program in the main program by defining one-dimensional array of 6 elements
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 23.06.2019 11:20
Http is the protocol that governs communications between web servers and web clients (i.e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
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
Physics, 19.03.2020 20:10
question
Computers and Technology, 19.03.2020 20:11
Questions on the website: 13722359