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
goblinko [34]
3 years ago
9

An employee in your company earns $32,500 annually. Write a program that determines and displays the amount of his/her gross pay

for each pay period, if he/she is paid twice a month (24 pay checks per year) and if he/she is paid bi-weekly (26 check per year).
have posted this with my code but i keep getting an error. help would be appreciated
int main()
class FrankVoelker_program1{
double Pay = 32500,
bimth = Pay / 24,
biweek = Pay / 26;
cout << "Annual earnings: $" << Pay << end1;
cout << "Bimonthly earnings: $" << bimth << endl;
cout << "Biweekly earnings: $" << biweek << endl;
23:1: error: expected initializer before 'class'
Computers and Technology
1 answer:
OverLord2011 [107]3 years ago
8 0

Answer:

The reason for the error is that the pay is declared and initialized as double, which should be a larger float data type and the main function should be in curly braces. The class should best be declared and initialized before the main function.

Explanation:

class Fvp{

Fvp( double earning ){

  double pay = earning;

  float bimth = pay/24;

  float biweek = pay/26;

}

}

int main( ) {

  Fvp john(32500.00);

  cout << '' Annual earnings: $'' << john.pay << endl;

  cout << '' Bimonthly earnings: $'' << john.bimth << endl;

  cout << '' Biweekly earnings: $'' << john.biweek << endl;

}

You might be interested in
Which is a safe Internet behavior?
Westkost [7]
Don’t give out personal information
7 0
4 years ago
Compare computer virus and worm ​
Zina [86]

Answer:

You can say they're somewhat alike, since a worm wiggles into a tight spot, just like how a computer virus wiggles into your computer-

Hope this helps-

7 0
4 years ago
Read 2 more answers
Which type of keyboard improves accuracy and reduces the strain on the wrists?
klasskru [66]
That would be an Ergonomic keyboard, due to the fact that it is laid out in such a way that doesn't harm your wrists
4 0
3 years ago
Read 2 more answers
What is the job title of someone who works with video and/or film?
boyakko [2]
Producer, videographer
4 0
4 years ago
Suppose that the tuition for a university is $10,000 this year and increases 4% every year. In one year, the tuition will be $10
Nataliya [291]

Answer:

<em>The programming language is not stated; however, I'll answer using Python programming language (</em><em>Se</em><em>e attachment</em><em> </em><em>for</em><em> </em><em>proper </em><em>for</em><em>mat</em><em>)</em>

tuition = 10000

rate = 0.04

for i in range(1,15):

tuition = tuition + tuition * rate

if i <= 10:

print("Year "+str(i)+" tuition:",end=" ")

print(round(tuition,2))

if i == 14:

print("Tuition 4th year after:",end=" ")

print(round(tuition,2))

Explanation:

<em>The first 2 lines initializes tuition and rate to 10000 and 0.04 respectively</em>

tuition = 10000

rate = 0.04

<em>The next line iterates from year 1 to year 14</em>

for i in range(1,15):

<em>This line calculates the tuition for each year</em>

tuition = tuition + tuition * rate

<em>The next 3 lines prints the tuition for year 1 to year 10</em>

if i <= 10:

print("Year "+str(i)+" tuition:",end=" ")

print(round(tuition,2))

<em>The next 3 lines prints the tuition at the 4th year after year 10 (i.e. year 14)</em>

if i == 14:

print("Tuition 4th year after:",end=" ")

print(round(tuition,2))

5 0
3 years ago
Other questions:
  • Which cell formatting is most likely to use $?
    11·2 answers
  • The tone a writer takes is referred to as the writing _____.
    7·2 answers
  • In the world of computers, the term ____ refers to the computerâs physical components, such as the monitor, keyboard, motherboar
    14·1 answer
  • Take some time to do some research about small businesses in your area. Select one and using HTML design a simple site that educ
    11·1 answer
  • To expand the interface within CengageNOWv2, you need to click on the:_______.
    15·1 answer
  • Which function would you use to make sure all names are prepared for a mailing label?
    10·2 answers
  • Select the characteristics that describe the evolution of computers that predate the personal computer (select all correct answe
    12·1 answer
  • Consider the following high-level recursive procedure: long long int flong long int n, long long int k long long int b b k+2; if
    9·1 answer
  • Question 5 (frue/False Worth 3 points)
    7·1 answer
  • Please what do you guys think about this ?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!