# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main()
{
		string first;
    int hours;
    double computed_pay;
    float sum=0,average=0;
    for( int a = 1; a <= 5; a = a + 1 )
    {
	cout << "Enter the Employee's name : "; 
    cin >> first;
    cout << "Enter Hours worked: ";
    cin >> hours;

    cout << "\n";
    cout << "---------- Employee Information -----------" << endl;
    cout << "Employee: " << first << " " <<  endl;
    cout << "Time worked: " << hours << "hours" << endl;
    
    {
    computed_pay =hours * 8 - (0.1);
    cout << "The Net Salary : RM " << computed_pay;
    cout << "\n" << "\n" << "\n";
    }
    
}
    average=(computed_pay/5);
    cout << "The Total Average is : = " << average << endl<<endl;
    
	
	cout << "NOOR ASIQIN BINTI NOR HISHAM"<<endl;
	cout << "25DDT17F1013"<<endl;
	cout << "DDT1A"<<endl;
		
	return 0;

}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;

int main()
{
	float GrossSalary, BasicSalary, Allowance, Overtime, TotalDeduction, IncomeTax, LoanDeduction, NetSalary;
	
	
	cout << "TOTAL SALARY EMPLOYEE: " <<endl<<endl;

	cout << "Basic salary: RM" ;
	cin >> BasicSalary;
	cout << "allowance: RM" ;
	cin >> Allowance;
	cout << "overtime: RM" ;
	cin >> Overtime;
	cout << "income tax: RM" ;
	cin >> IncomeTax;
	cout << "loan deduction: RM" ;
	cin >> LoanDeduction;
	
	cout << "*****************************************"<<endl;
	
	GrossSalary=BasicSalary+Allowance+Overtime;
	TotalDeduction=IncomeTax+LoanDeduction;
	NetSalary=GrossSalary-TotalDeduction;
	
	cout << "Gross Salary: RM" << GrossSalary <<endl;
	cout << "Total Deduction: RM" << TotalDeduction <<endl;
	cout << "Net Salary: RM" << NetSalary <<endl<<endl;
	cout << "NOOR ASIQIN BINTI NOR HISHAM" <<endl;
	cout << "25DDT17F1013" <<endl;
	cout << "DDT1A" <<endl;
	
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;

int main()
{
	int num=1;
	float total,sum=0;
	
	while (sum<=9)
	{
		int num;
		cout << "Enter a number: ";
		cin >> num;
		total=total+sum;
		sum=sum+1;
	}
	
	sum=total+10;
	cout << "Total sum: "<<sum<<endl;
	
	cout << "NOOR ASIQIN BINTI NOR HISHAM"<<endl;
	cout << "25DDT17F1013"<<endl;
	cout << "DDT1A"<<endl;
	
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;

int main()
{
	int num_of_year;
	
	cout << "Please enter number of year :";
	cin >> num_of_year;
	
	if (num_of_year<0)
		cout << "Invalid number of year !"<<endl;
		
	else if (num_of_year==0)
		cout << "None !"<<endl;
		
	else if (num_of_year>1&&num_of_year<=5)
		cout << "Elementary !"<<endl;
		
	else if (num_of_year>=6&&num_of_year<=8)
		cout << "Middle School !"<<endl;
		
	else if (num_of_year>9&&num_of_year<=12)
		cout << "High School !"<<endl;
		
	else 
		cout << "collage !"<<endl;
		
	cout << "NOOR ASIQIN BINTI NOR HISHAM"<<endl;
	cout << "25DDT17F1013"<<endl;
	cout << "DDT1A"<<endl;
	
	return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;

int main()
{
	float GrossSalary, BasicSalary, Allowance, Overtime, TotalDeduction, IncomeTax, LoanDeduction, NetSalary;
	
	cout << "\n***************************************\n";
	cout << "\n\t\Calculate Payroll"<<endl;
	cout << "\n***************************************\n";
	 
	cout << "Basic salary: RM" ;
	cin >> BasicSalary;
	cout << "allowance: RM" ;
	cin >> Allowance;
	cout << "overtime: RM" ;
	cin >> Overtime;
	cout << "income tax: RM" ;
	cin >> IncomeTax;
	cout << "loan deduction: RM" ;
	cin >> LoanDeduction;
	
	cout << "*****************************************"<<endl;
	
	GrossSalary=BasicSalary+Allowance+Overtime;
	TotalDeduction=IncomeTax+LoanDeduction;
	NetSalary=GrossSalary-TotalDeduction;
	
	cout << "Gross Salary: RM" << GrossSalary <<endl;
	cout << "Total Deduction: RM" << TotalDeduction <<endl;
	cout << "Net Salary: RM" << NetSalary <<endl<<endl;
	
	cout << "NOOR ASIQIN BINTI NOR HISHAM" <<endl;
	cout << "25DDT17F1013" <<endl;
	cout << "DDT1A" <<endl;
	
	return 0;
	
}

# data[].attributes.attachment_link.readable_text
#include <iostream>                                                  //pre-processor direct

using namespace std;

int main ()                                                          //main function
{
	float loanAmount, loanInterestRate, TotalAmountPaidIncludingInterest, TotalInterestPaid, AmountPaidPerMonth; 
	int loanTenure, totalOfYears;
	
	cout << "ENTER WELCOME TO BUNNY INTERNATIONAL BANK "<<endl;     //output 
	cout << "insert loan amount : " ;                                        //loanAmount
	cin >> loanAmount ;                                             //output of loanAmount
	cout << "insert loan and interest :" ;                                  //loanInterestRate
	cin >> loanInterestRate ;                                       //output of loanInterestRate
	cout << "insert loan tenure : "   ;                                      //loanTenure
	cin >> loanTenure ;                                             //output of loanTenure

	cout << "*"<<endl;
	cout << "**"<<endl;
	cout << "***"<<endl;
	
	TotalInterestPaid=loanAmount*loanInterestRate/100*loanTenure;
	TotalAmountPaidIncludingInterest=loanAmount+TotalInterestPaid;
	totalOfYears=loanTenure*12;
	AmountPaidPerMonth=TotalAmountPaidIncludingInterest/totalOfYears;
	
	cout << "PLease insert your loan amount(RM) : " <<TotalInterestPaid <<endl;
	cout << "Please insert loan interest rate in (%) : " << TotalAmountPaidIncludingInterest <<endl;
	cout << "Amount paid per month :" << AmountPaidPerMonth <<endl<<endl;

	cout << "SYUKRAN JAZILAN..." <<endl;
	cout << "NOOR ASIQIN BINTI NOR HISHAM" <<endl;                         //programmer name
	cout << "25DDT17F1013" <<endl;                                         //programmer id
	cout << "DDT1A" <<endl;                                                //programmer class
	cout << "ABDUL FARID BIN AZMI" <<endl;                                 
	
	return 0;
}
