Computers and Technology
Computers and Technology, 27.07.2021 20:00, lunbrooks

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:10, passions3534ovf6dt
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
image
Computers and Technology, 23.06.2019 02:30, paolaviviana
Experimental data that is expressed using numbers is said to be
Answers: 1
image
Computers and Technology, 23.06.2019 03:00, Julianhooks
State 7 common key's for every keyboard
Answers: 1
image
Computers and Technology, 23.06.2019 03:50, dondre54
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
Do you know the correct answer?
What line number of the following code contains an error and what type of error is it? 1. double sal...

Questions in other subjects:

Konu
Social Studies, 21.08.2021 18:50
Konu
English, 21.08.2021 18:50
Konu
Chemistry, 21.08.2021 18:50