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
To meet the requirement for the number of vdss on board, what must be true about pyrotechnic vdss?
asambeis [7]

Answer: They must be dated.

Explanation: If pyrotechnic VDSs are used, they must be dated. Expired VDSs may be carried on board, but a minimum of three unexpired VDSs must be carried in the vessel.

5 0
3 years ago
Look at the following Python code:
aliya0001 [1]

Ump will be assigned to word2

word1[0:3] gets all of the letters from index 0 to index 3 exclusive (that means index 3 is not included)

4 0
3 years ago
A microsoft windows os component responsible for representing graphical objects and transmitting them to output devices such as
vaieri [72.5K]
A driver. A driver is basicly and application or component that helps communicate between you computer and a device(a mouse, keyboard, printer etc.) You may have know when you get a new mouse and connect it up, Windows always tries to find a driver and download it. 
5 0
3 years ago
Given an array arr, of type int, along with two int variables i and j, write some code that swaps the values of arr[i] and arr[j
Inessa05 [86]

You'll need a helper variable for this, so depending on your programming language, the solution becomes:

int helper;

helper = arr[i];

arr[i] = arr[j];

arr[j] = helper;

3 0
2 years ago
Is this statement true or false?
quester [9]

Answer:

NOPE

Explanation:

sometimes presentations can be for one person only. For instance if you work in a company sometimes you present for your boss only etc.

Hope this helped :)

6 0
3 years ago
Read 2 more answers
Other questions:
  • Ron is creating building blocks in Word. How can he make the building blocks that he created available?
    11·2 answers
  • What is the software called that allows the user to create, access, and manage a database? question 8 options:
    10·1 answer
  • What is the purpose of the overload keyword in the ip nat inside source list 1 pool nat_pool overload command?
    8·1 answer
  • Secondary hard drive whats its purpose
    5·1 answer
  • Choose the answer that best completes the
    8·2 answers
  • When you check your hard drive to see how much space is available, you are checking your
    15·1 answer
  • What do you think Amazon should fix?
    13·2 answers
  • Answer if you know Javascript, html, css, python, and Ruby.
    12·1 answer
  • To reduce the potential for repetitive stress injury you should use proper?
    6·1 answer
  • nts/viewer/classes/289ef1a5d7c341c284010 Select the compound inequality shown on the graph. 5 4 3 2 1 0 1 2 를 4​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!