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 12:40
How do i get the most points, without any effort?
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Describir textbook icon_person mira los dibujos y describe lo que está pasando. usa los verbos de la lista.
Answers: 1
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
History, 29.09.2019 08:20
question
History, 29.09.2019 08:20
Questions on the website: 13722360