Flash Speed Questions

The solution time is much shorter than you think.

#include #include #include using namespace std; int main() { // fill in the code to define payfile as an input file 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 // fill in code to write a conditional statement to check if payfile // does not exist. { cout << "error opening file. \n"; cout << "it may not exist where indicated" << endl; return 1; } cout << "payrate hours gross pay net pay" << endl << endl; // fill in code to prime the read for the payfile file. // fill in code to write a loop condition to run while payfile has more // data to process. { 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; payfile >> // fill in the code to finish this with the appropriate // variable to be input } payfile. close(); return 0; } required: assume that the data file has hours, payrate, statetax, and fedtax on one line for each employee. statetax and fedtax are given as decimals (5% would be 0.05). complete this program by filling in the code (places in bold). Get the answer
Category: ecology | Author: Mona Eva

ecology

Sarah Aksinia 55 Minutes ago

#include ad libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully f

art

Selma Yafa 1 Hours ago

#include using namespace std; class inventorytag { public: inventorytag(); int getquantityremaining() const; void addinventory(int numitems); private:

geography

Selma Yafa 1 Hours ago

#include using namespace std; void printfactorial(int factcounter, int factvalue){ int nextcounter; int nextvalue; if (factcounter == 0) { // base cas