pllllllllllllz i need yr help or i'm ganna fail

plz plz plllllllllllllllllllllllllz i need yr help i's my last Assignment and i need marks 2 paaas..my brin cloooooooose i dont know how 2 write the program
:embarasse can u help me plzz!!!

1) Write a complete program to open a sequential file with the name Account.text
And write the following statements in it “This is a Account file , and this file will have companies account details about its employees”
Write into the file with one function and open and read the file content with another function using a functions and classes

2) Write a complete program for the calculation of salary with the following perks being given by the company
· Housing 10% of basic salary
· Travel allowance 5% of basic salary
· Commission on sale 2% of basic salary
Calculate and print the salary after adding all the above benefits to the salary
Write a base class employee and derived class salary
Base class will have all the benefit variables like housing, travel, commission and the derived class will have functions to calculate them and set them each benefit will be calculated in a separate function in the derived class
Print the calculated salary in the base class,
Take the basic salary from the user

plz plz plllllllllllllllllllllllllz i need yr help i's my last Assignment and i need marks 2 paaas..my brin cloooooooose i dont know how 2 write the program
:embarasse can u help me plzz!!!

1) Write a complete program to open a sequential file with the name Account.text
And write the following statements in it “This is a Account file , and this file will have companies account details about its employees”
Write into the file with one function and open and read the file content with another function using a functions and classes

2) Write a complete program for the calculation of salary with the following perks being given by the company
· Housing 10% of basic salary
· Travel allowance 5% of basic salary
· Commission on sale 2% of basic salary
Calculate and print the salary after adding all the above benefits to the salary
Write a base class employee and derived class salary
Base class will have all the benefit variables like housing, travel, commission and the derived class will have functions to calculate them and set them each benefit will be calculated in a separate function in the derived class
Print the calculated salary in the base class,
Take the basic salary from the user

Click to expand...

Thnxs 4 u bcs u let me 2 try 2 do the progrom in my oun..u know the bigest problem i dont know how 2 start 2 write a program << she is bad programer
u can say i'm stusy now 2 course cs101 & cs205 in this semester ..i had abaaaaaaad teacher in cs101 and she is not given us the steps How to write a program??
for now i have a very gooood teacher i wish God to protect her ..for now it's so difficult 4 me but i rely work hard..

i'm trying 2 do the second program..i know i'm not do eny thing i just write the steps but can eny budy explain for me what to do!!!!

plz plz plllllllllllllllllllllllllz i need yr help i's my last Assignment and i need marks 2 paaas..my brin cloooooooose i dont know how 2 write the program
:embarasse can u help me plzz!!!

1) Write a complete program to open a sequential file with the name Account.text
And write the following statements in it “This is a Account file , and this file will have companies account details about its employees”
Write into the file with one function and open and read the file content with another function using a functions and classes

2) Write a complete program for the calculation of salary with the following perks being given by the company
· Housing 10% of basic salary
· Travel allowance 5% of basic salary
· Commission on sale 2% of basic salary
Calculate and print the salary after adding all the above benefits to the salary
Write a base class employee and derived class salary
Base class will have all the benefit variables like housing, travel, commission and the derived class will have functions to calculate them and set them each benefit will be calculated in a separate function in the derived class
Print the calculated salary in the base class,
Take the basic salary from the user

Click to expand...

Thnxs 4 u bcs u let me 2 try 2 do the progrom in my oun..u know the bigest problem i dont know how 2 start 2 write a program << she is bad programer
u can say i'm stusy now 2 course cs101 & cs205 in this semester ..i had abaaaaaaad teacher in cs101 and she is not given us the steps How to write a program??
for now i have a very gooood teacher i wish God to protect her ..for now it's so difficult 4 me but i rely work hard..

i'm trying 2 do the second program..i know i'm not do eny thing i just write the steps but can eny budy explain for me what to do!!!!

2) Write a complete program for the calculation of salary with the following perks being given by the company
· Housing 10% of basic salary
· Travel allowance 5% of basic salary
· Commission on sale 2% of basic salary
Calculate and print the salary after adding all the above benefits to the salaryWrite a base class employee and derived class salaryBase class will have all the benefit variables like housing, travel, commission and the derived class will have functions to calculate them and set them each benefit will be calculated in a separate function in the derived classPrint the calculated salary in the base class,Take the basic salary from the user

Click to expand...

first of all write the code for this "Write a base class employee and derived class salary"

OMG :crazy:
my brain will broken:cuss:..i'm ganna say yeeees i do it "but" it's wrong
i work hard and hard and hard plllllz help i shoud submit today!!!!
:nonod:<<no comment
this is my secound program:happy:

ok thnxs 4 yr helpe ..i'm trying 2 do it right now
i have finsh from the first progrom can i know what's wrong!!!

Click to expand...

You could do it by yourself if you had followed my links.

one solution could be

Code:

/*
1) Write a complete program to open a sequential file with the name Account.text
And write the following statements in it “This is a Account file , and this file will have companies
account details about its employees”
Write into the file with one function and open and read the file content with another function using a
functions and classes
*/
#include<iostream>
#include<fstream>
#include<string>
using namespace std;
class FileHandling{
public:
void Read();
void Write();
};
void FileHandling::Read(){
ifstream fin;
fin.open("Account.text", ios::in);
string item;
getline(fin, item);
fin>>item;
cout<<"This is what i read from file:"<<endl<<item;
}
void FileHandling::Write(){
ofstream fout;
fout.open("Account.text", ios::out);
fout<<"This is a Account file , and this file will have companies account details about its employees"<<endl;
fout.close();
}
int main(){
FileHandling f;
f.Write();
f.Read();
getchar();
}

P.S. i am giving you the code just because the deadline has passed, in order to know your mistakes for the next time