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
________ is interpreted. Group of answer choices A. Python B. C C. C D. Ada E. Pascal
rusak2 [61]

The interpreted are;

  • A. Java
  • B. C++
  • D. C#
<h3>What is interpreted programming language?</h3>

An interpreted language is known to be a kind of languagewhere its implementations often carry out or execute instructions directly.

Note that The interpreted are;

  • A. Java
  • B. C++
  • D. C#

Learn more about Java from

brainly.com/question/25458754

#SPJ11

7 0
2 years ago
If you know the unit prices of two different brands of an item you are better able to
vitfil [10]

Answer:

TO UNDERSTAND TO ITS VALUES AND ITS  FEATURES

Explanation:

4 0
3 years ago
A list of sources used for in-text citations that appears at the end of a document is called:
jolli1 [7]
The correct answer is Works cited page
5 0
2 years ago
Which of the following statements are true about file naming conventions? Check all of the boxes that apply.
Korolek [52]

Answer:

last one check it and the second one

Explanation:

8 0
3 years ago
Read 2 more answers
What is the different between the patch Tool and the Headling Brush tool?​
KonstantinChe [14]

Answer:

Explanation:

The Healing Brush and Patch tools add extra features. They match the texture, transparency, lighting, and shading of the sampled area. Instead of replacing them, pixel for pixel, like the clone stamp. This causes the painted pixels to blend seamlessly into the rest of the image. Using the Healing Brush tool: 1. Select the Healing Brush tool in the toolbox.

7 0
3 years ago
Other questions:
  • When creating a professional presentation, how many typefaces are recommended at the most?
    5·1 answer
  • Search engines that search other search engines are called
    12·2 answers
  • A two-dimensional array can be viewed as ___________ and _____________.
    10·1 answer
  • Its a zoom call
    7·1 answer
  • Match each scenario to the absolute value expression that describes it. 1. the distance moved when going backwards five spaces i
    13·2 answers
  • p25: File Write and Read1) User enters a file name (such as "myMovies.txt").2) User enters the titles of 4 of their favorite mov
    12·1 answer
  • Which code must be included to use Turtle Graphics?
    14·2 answers
  • Chose the term that matches each definition.
    15·1 answer
  • If a system contains 1,000 disk drives, each of which has a 750,000- hour MTBF, which of the following best describes how often
    15·1 answer
  • A ____________ protocol is software that provides or facilitates a connection in which no information is retained by either send
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!