Answer:
See explaination
Explanation:
#include <fstream>
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
// Fill in the code to define payfile as an input file
ifstream payfile;
float gross;
float net;
float hours;
float payRate;
float stateTax;
float fedTax;
cout << fixed << setprecision(2) << showpoint;
// Fill in the code to open payfile and attach it to the physical file
// named payroll.dat
payfile.open("payroll.dat");
// Fill in code to write a conditional statement to check if payfile
// does not exist.
if(!payfile)
{
cout << "Error opening file. \n";
cout << "It may not exist where indicated" << endl;
return 1;
}
ofstream outfile("pay.out");
cout << "Payrate Hours Gross Pay Net Pay"
<< endl << endl;
outfile << "Payrate Hours Gross Pay Net Pay"
<< endl << endl;
// Fill in code to prime the read for the payfile file.
payfile >> hours;
// Fill in code to write a loop condition to run while payfile has more
// data to process.
while(!payfile.eof())
{
payfile >> payRate >> stateTax >> fedTax;
gross = payRate * hours;
net = gross - (gross * stateTax) - (gross * fedTax);
cout << payRate << setw(15) << hours << setw(12) << gross
<< setw(12) << net << endl;
outfile << payRate << setw(15) << hours << setw(12) << gross
<< setw(12) << net << endl;
payfile >> hours ;// Fill in the code to finish this with the appropriate
// variable to be input
}
payfile.close();
outfile.close();
return 0;
}
Answer:
I think it's C. but not a 100%
Answer:
Elements
Explanation:
A computer code acts as a medium by which a person can communicate with the computer machine.
One such language is known as HTML or hypertext markup language. HTML stands for Hypertext markup language which is used to markup the language for web pages in computer.
The HTML series consists of a series of elements which are enclosed in the tags commonly called start tag and a stop tag.
Example <head>
here,
the head is a series of elements.
< start-tag
> stop-tag
Thus, element is the correct answer.
Answer:
The answer is "Procedure"
Explanation:
In the given statement certain information is missing, that is choices, which can be described as follows:
a. procedure
b. software
c. data
d. hardware
e. memory
The procedure is a way, that accomplishes any task in the following steps, if there is a long process so, we divide this process into parts or modules to accomplish the task, and certain alternative was wrong, that can be described as follows:
- Software is a program, that is accomplished in the procedure.
- data, It describes all procedures.
- hardware, It is a device, in which we work.
- memory, It stores all the data in a procedure.
Answer:
Open source software
Explanation:
Open source software is exactly what you think it is, the code to compile the software and run it is available to the public for use or modification.