Question: Short Answer 46. Use a logical OR to write a more concise equivalent of the following code: if(saleAmount >= 300) cout < < Delivery available

Short Answer

46. Use a logical OR to write a more concise equivalent of the following code:

if(saleAmount >= 300) cout << "Delivery available" << endl; else if(areaCode == LOCAL_CODE) cout << "Delivery available" << endl;

47. Write a program that projects sales goals for a salesperson for the next several years. The user should be prompted for a first years merchandise sales amount and a number of years to project the goals. For the first year, the salespersons goal is the current sales amount. After that, sales are projected to grow at a rate of 8 percent per year. You should use a do-while loop.

48. What happens if a subscript exceeds the size of an array?

49. How is the null character represented in C++?

50. What are some errors typically made by beginning programmers when they declare, call, and write functions?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!