1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vovangra [49]
3 years ago
6

Write a program that projects sales goals for a salesperson for the next several years.The user should be prompted for a first y

ear’s merchandise sales amount and a number of years to project the goals. For the first year, the salesperson’s 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.
Computers and Technology
1 answer:
iragen [17]3 years ago
5 0

Answer:

// program in C++.

#include <iostream>

using namespace std;

// main function

int main() {

// variables

int y, count=1;

double s_amt;

// interest rate

const double rate = 0.08 ;

// ask to enter first year amount

cout << "Enter the first year's sale amount: ";

// read amount

cin >> s_amt;

// ask to enter years

cout << "Enter the number of years to project the goals: ";

// read years

cin >> y;

// find goal amount of each years

do{

// print year and goal for that year

cout <<"Goal for year "<<count<<" is "<<s_amt<<endl;

// increase the count

count +=1;

// find new Goal amount

s_amt += s_amt*rate;

} while(count <= y);

  return 0;

}

Explanation:

Read the first years sale amount from user and assign it to variable "s_amt". Read the years from user and assign it to variable "y".Initialize interest rate "i=0.08".Then with the help of do while loop find goal amount of each year.

Output:

Enter the first year's sale amount: 25000                                                                                  

Enter the number of years to project the goals: 4                                                                          

Goal for year 1 is 25000                                                                                                  

Goal for year 2 is 27000                                                                                                  

Goal for year 3 is 29160                                                                                                  

Goal for year 4 is 31492.8

You might be interested in
Someone help me
valkas [14]

The program is an illustration of loops.

Loops are used to perform repetitive and iterative operations.

The program in C++ where comments are used to explain each line is as follows:

#include <iostream>

using namespace std;

int main(){

   //This declares and initializes all variables

   string star = "*", blank = " ", temp;

   //The following iteration is repeated 8 times

   for (int i = 1; i <= 8; i++) {

       //The following iteration is repeated 8 times

       for (int j = 1; j <= 8; j++) {

           //This prints stars

           if (j % 2 != 0) {

               cout << star;

           }

           //This prints blanks

           else if (j % 2 == 0) {

               cout << blank;

           }

       }

       //This swaps the stars and the blanks

       temp = star;

       star = blank;

       blank = temp;

       //This prints a new line

       cout << endl;

   }

}

Read more about similar programs at:

brainly.com/question/16240864

5 0
2 years ago
Assume the variable costOfBusRental has been declared as an int and assigned the amount that it costs to rent a bus. Also assume
Basile [38]

It’s a total price divided to a number of riders involved. So costPerRider = costOfBusRental/maxBusRiders

4 0
3 years ago
An investigator obtains consent and HIPAA authorization from subjects to review their medical records and HIV status. He plans t
matrenka [14]

Answer:D. A HIPAA violation

Explanation:

The Health Insurance Portability and Accountability Act of 1996 is a legislation that was designed to protect or safeguard medical records of patients, to eliminate and prevent healthcare fraud and protect health care coverage of employees .

It helps to ensure that patients' information remains private and their record are secured.

The updated rules of this act includes the HIPAA Privacy Rule, HIPAA Security Rule, HIPAA Omnibus Rule, and the HIPAA Breach Notification Rule.

A HIPAA violation is a failure to comply with any aspect of HIPAA standards and provisions and in this case it was theft of records; he should have ensured that the computer is placed in a secured place or the information is locked even when the computer get stolen.

7 0
3 years ago
PLS HURRY!!<br> Look at the image below!
Verizon [17]

Answer:

control

Explanation:

6 0
2 years ago
Which method is used to edit a function that has been created and inserted into a cell?
8_murik_8 [283]

Answer:

A

Explanation:

A

4 0
3 years ago
Read 2 more answers
Other questions:
  • President Roosevelt's Fireside Chats were:
    12·2 answers
  • Sets of rules that a computer uses to solve problems?
    11·2 answers
  • A ________ -tier design includes a middle layer between the client and server that processes the client requests and translates
    11·1 answer
  • What field would you use to store a value from another table?
    11·1 answer
  • How can you put a logo on html without breaching the copyright, design and patents act
    12·1 answer
  • Which of the actions below will not create more room on your hard drive?
    11·1 answer
  • Which of these is most closely associated with system control? (1 point) (Points : 1.5) boundary
    10·1 answer
  • Mark is flying to Atlanta. The flight is completely full with 200 passengers. Mark notices he dropped his ticket while grabbing
    15·1 answer
  • What is Error Code: 232011
    11·2 answers
  • Which of the following is an example of group dynamics?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!