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 23:00
What is one of the main problems that can occur when implementing a large number of new systems within an organization?
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Write a program that reads a file consisting of students’ test scores in the range 0–200. it should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
question
Computers and Technology, 24.06.2019 21:30
Jenny wants to create an animated short video to add to her website. which software will she use to create this animated video?
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
Social Studies, 16.12.2019 23:31
question
Spanish, 16.12.2019 23:31