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 good way to improve your credit score
labwork [276]
Pay your bills and don't be late
8 0
4 years ago
. Briefly describe an SQL DML statement for storing new data into a table.
STatiana [176]

DML stands for Data Manipulation Language.

SQL DML statements consist of insert, update and delete statements.

Out of these three, insert is used to add new data to the table.

The update command modifies the existing data in the given table.

The delete command removes the data from the given table.

Syntax

INSERT INTO table_name ( column1, column2, …….. )

VALUES ( value1, value2, ……… )

The table_name represents the table in which data is to be inserted.

All the columns in the table_name need to be specified in the brackets in the insert into clause.

All the values in the values clause should correspond to the columns, both in the order in which the columns are mentioned and the data type of the values should match the respective column.

Example

Consider the table Person consisting of columns id, name, gender having data type integer, varchar and varchar, respectively.

In order to add data to all the columns of the Person table, the command is as follows.

Insert into Person ( id, name, gender )

Values ( 101, “Alexis”, “Male” );

In the above command, value is present for each column in the respective order. Also, the format of the data match the format of the columns.

Other versions of the insert command add data only to some columns in the table.

Insert into Person ( id, name )

Values ( 102, “Aayesha” );

The above command adds data only to two columns as mentioned.

Also, null value can be added using insert command.

Insert into Person ( id, name, gender )

Values ( 103, “Brainly dot com”, null );

Since null value appears at number three, the corresponding column to this value is also number three, i.e., gender column.

This inserts null value as the gender for Brainly dot com.

3 0
3 years ago
Antifreeze is not considered a hazardous waste by the EPA unless it is used or otherwise becomes contaminated.
Ahat [919]

False might be the answer

6 0
3 years ago
Read 2 more answers
1byte= ________ bits
ludmilkaskok [199]

Explanation:

1 byte=8bits

1 nibble = 4bits

1MB= 8000000bits

1PB= 1000TB

1ZB= 1000000000000EB

3 0
3 years ago
1. To collect data from two websites with different URLs using a single Google Analytics property, what feature must be set up?
Finger [1]

Answer:Cross domain tracking

Explanation: Cross domain tracking is the tracking activity of the several domains in the Google Analytics property's single unit. This tool works for tracking by the means of debugging and finding solution of the problem.

Cross tracking is also seen as the complex task and the solution is not east to obtain.This tools comes into action when domain session need the tracking of two or more domains or sub-domains.

6 0
4 years ago
Other questions:
  • Consider an application that transmits data at a steady rate (for example, the sender generates an N-bit unit of data every k ti
    8·1 answer
  • What is the unit of electric power?
    15·1 answer
  • Assume inputFile is a Scanner object used to read data from a text file that contains a number of lines. Each line contains an a
    9·1 answer
  • The availability of the appropriate compiler guarantees that a program developed on one type of machine can be compiled on a dif
    9·1 answer
  • In a geographic file arranged by state and then city, you would file a letter from a company that does not have an individual or
    6·1 answer
  • What specific authentication method has no encryption for user credentials or data, and is not recommended for most applications
    14·1 answer
  • What does the format painter button do?
    13·1 answer
  • To find out where a particular command is taken from, you can use the _____________ command.
    14·1 answer
  • Choose the answer that best completes the
    8·2 answers
  • Dr.Sanchez is creating a quiz for a history class. It will have true or false questions. What kind of variable will be needed to
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!