//Nur Afikah Binti Mohd Hayazi A20EC0220
#include <iostream>
#include <iomanip>

using namespace std;

int main ()
{
	struct Subject{
		string name;
		char code[3];
		int credit;
		
	};
	
	struct Tutor {
		string name;
		int hourPW;
		Subject subjectname;
		
	};
	
	Tutor T [4];
	double avg [4];
	 for ( int i = 0 ; i < 2 ; i++)
	 {
	 
	 	cout<<"Tutor "<<i+1<<" : ";
	 	cin>>T[i].name>>T[i].hourPW>>T[i].subjectname.name>>T[i].subjectname.code>>T[i].subjectname.credit;
	    avg[i] = T[i].hourPW / 7.0 ;
	 }
	 
	    cout<<"\n\nNo  Name  Hourperweek  Subject  Code  Credit Average "<<endl;
	 for (int i = 0 ; i < 2 ; i++ )
	 {
	 	cout<<"Tutor "<<i+1<<"  "<<T[i].name<<"  "<<T[i].hourPW<<"        "<<T[i].subjectname.name<<"   "<<T[i].subjectname.code<<"     "<<T[i].subjectname.credit<<"     "<<fixed<<setprecision(2)<<avg[i]<<endl;
	 }
	 
}   

