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:
Explanation:
Cooper Black is an ultra-bold serif typeface intended for display use that was designed by Oswald Bruce Cooper and released by the Barnhart Brothers & Spindler type foundry in 1922.
Answer:
The memory and the processing unit communicate through the Memory Address Register (MAR) and the Memory Data Register (MDR).
Explanation:
Yes, horizontal rows are periods. “All of the elements in a
period have a similar number of atomic orbitals. Each element in the top row
(the principal time frame) has one orbital for its electrons. The greater part
of the components in the second column (the second time frame) has two orbitals
for their electrons. It goes down the occasional table that way. As of now, the
most extreme number of electron orbitals or electron shells for any element is
seven."<span>
<span>The vertical columns are groups. "The elements in a
group have the same number of electrons in their outer orbital [and thus the
same charge]. Every element in the first column (bunch one) has one electron in
its external shell. Each element on the second segment (assemble two) has two
electrons in the external shell. As you continue tallying the segments, you'll
know what numbers of electrons are in the external shell.</span></span>