# data[].attributes.body
Siti Marizzety & Iqbal Ayman

# data[].attributes.body
aina atikah and siti najwa

# data[].attributes.headline
FATIN AMEERAH,         NORAINI                                NOR PUTERI AMIZA

# data[].attributes.subject
FATIN AMEERAH,         NORAINI                                NOR PUTERI AMIZA

# data[].attributes.body
LAB ASSIGNMENT 2

# data[].attributes.attachment_link.title
FATIN AMEERAH, NORAINI , NOR PUTERI AMIZA

# data[].attributes.body
Nur Syahira bt Mohamad Nor
Nur Sarah Zulaikha bt Muhadzir

# data[].attributes.body
Muhammad Imran
Najwa Alia

# data[].attributes.body
C++

# data[].attributes.attachment_link.readable_text
//work

#include<iostream>
using namespace std;

int main()
{
	int house_price,loan_amount,total_interest,deposite,loan_duration, total_loan,monthly_payment;
	
	cout<<"Price of the house:"<<endl;
	cin>> house_price;
	
	cout<<"deposite:"<<endl;
	cin>>deposite;
	
	cout<< "loan duration in years:"<<endl;
	cin>>loan_duration;
	
	
	
		loan_amount= house_price - deposite;
		total_interest=(2* loan_amount *0.02) +(13* loan_amount *0.025);
		total_loan= loan_amount + total_interest;
		monthly_payment= total_loan / (loan_duration*12);
		
		cout<<"Monthly payment="<<monthly_payment<<endl;
		
		return 0;
	
}

# data[].attributes.body
Flowchart

# data[].attributes.body
nur safwani binti ibrahim
khairunnisa athirah bt kamarulzaman

# data[].attributes.headline
Mohamad Haiqal Bin Sidek & Muhammad Amir Aiman Bin Mohd Asri

# data[].attributes.subject
Mohamad Haiqal Bin Sidek & Muhammad Amir Aiman Bin Mohd Asri

# data[].attributes.body
Lab Assignment 2

# data[].attributes.body
Muhammad Irfan Bin Hafazil
Izzat Hafizuddin Bin Zul Hilmi
yg bawah tu salah...ni yg betol

# data[].attributes.attachment_link.title
Muhammad irfan Bin Hafazil dan Izzat Hafizuddin Bin Zul Hilmi

# data[].attributes.headline
Muhammad Farhan bin Saharudin & Muhammad Khairul Idlan bin Md. Nizam

# data[].attributes.subject
Muhammad Farhan bin Saharudin & Muhammad Khairul Idlan bin Md. Nizam

# data[].attributes.body
Nur Istihara Binti Iskandar
Nurul Izzah Binti Shuib

# data[].attributes.body
Muhammad Fakhrurrazi bin Mohd Cairul Iqbal

Adam Darwisy Tan bin Mohd Alwee Tan

# data[].attributes.body
Nurul Irdina Khairina Mohamad Zamili

# data[].attributes.body
Muhammad Irfan Bin Hafazil
Izzat Hafizuddin Bin Zul Hilmi

# data[].attributes.attachment_link.title
Muhammad irfan Bin Hafazil dan Izzat Hafizuddin Bin Zul Hilmi

# data[].attributes.body
Mohammad Fitri Hakim Bin Mohd Misron

Muhamad Abdul Muhaimin Bin Rahim

# data[].attributes.body
Muhammad Danish Bin Sharifuddin
&
Mohammad Zharfan Bin norzamri

# data[].attributes.body
Muhaamad Nizamuddin Bin Noor Hisham

# data[].attributes.body
LAB ASSIGNMENT TODAY 10/10/2018

# data[].attributes.body
Maaf atas kelambatan , Madam

# data[].attributes.body
Umi Najihah binti Abdul Razak

# data[].attributes.body
Ainur Najwa bt Rozaidi

# data[].attributes.body
AZALEA BINTI MOHAMED SHUHAIMI
HUMAIRAH AISHAH BINTI ALUDIN

# data[].attributes.body
Nur Syahirah binti Mohamad Nor
Nur Sarah Zulaikha bt Muhadzir

# data[].attributes.attachment_link.readable_text

#include<iostream>
using namespace std;
int main()

{
	int hrs,min,totalmin;
	cout<<"enter hour= ";
	cin>>hrs;
	cout<<"enter minute= ";
	cin>>min;
	 
	totalmin=(hrs*60)+min;
	cout<<"total minute= "<<totalmin;
	return 0;
}

    

# data[].attributes.body
safwani dan marizzety

# data[].attributes.body
shahidatul ft nina

pseudocode

# data[].attributes.body
Danish

# data[].attributes.body
Muhaimin jpn
Fitri kor

# data[].attributes.body
Rabiatul Athirah dan Sabrina Huda

# data[].attributes.body
Najwa 'Alia

# data[].attributes.body
Rabiatul

# data[].attributes.body
Mohammad zharfan bin norzamri

# data[].attributes.body
pseudocode

# data[].attributes.headline
Muhammad Nizamuddin & Muhammad Irfan B. Harfazil (Pseudocode)

# data[].attributes.subject
Muhammad Nizamuddin & Muhammad Irfan B. Harfazil (Pseudocode)

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	int hours,min,valuemin;
	cout<<"Enter hours:";
	cin>>hours;
	cout<<"Enter minutes:";
	cin>>min;
	valuemin=(hours*60)+min;
	cout<<"display time in minutes:"<<valuemin;
	return 0;
	
	
}


# data[].attributes.attachment_link.readable_text
#include<stdio.h>
int main()
{
	int hours, minutes;
	printf("Input number of hours : ");
	scanf("%d",&hours);
	printf("Input number of minutes : ");
	scanf("%d",&minutes);
	printf("The values that you entered are %d hours %d minutes",hours,minutes);
	minutes = minutes + (hours*60);
	printf("\nThe values that you entered is %d minutes",minutes);
	return 0;
}

# data[].attributes.body
mohd zharfan bin norzamri

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

int main()
{
	int hour,min,minn,totalmin;
	
	cout<<"enter number of hours =";
	cin>>hour;
	min=hour*60;
	cout<<"enter number of minutes =";
	cin>>min;
	totalmin=min +min;
	
	cout<<"total minutes is "<<totalmin<<" minutes"<<endl;
	
	
	
	
}

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	int hours,min,totalmin=0;
	cout<<"Input time in hours : ";
	cin>>hours;
	cout<<"Input time in min : ";
	cin>>min;
	cout<<"Your input is "<<hours<<" hours "<<min<<" min."<<endl;
	totalmin=min+hours*60;
	cout<<"When it convert to min is equal to "<<totalmin<<" min "<<endl;
	system("pause");
	return 0;
}

# data[].attributes.body
Amir dan Haiqal

# data[].attributes.attachment_link.title
Pseudo code for lab asg 1 AMIR dan HAIQAL CS2301B

# data[].attributes.body
ASSINGMENT1

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
          { int hours,minute;
          
          cout<<"Please enter hours";
          cin>>hours;
          
          cout<<"Please enter minute";
          cin>>minute;
          
          minute=(hours*60)+minute;
          
          cout<<"value minute ="<<minute<<endl;
          
          return 0;
          
          
		  }

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

{
	int hours, minutes,new_minutes;
	cout<<"enter hours:";
	cin>>hours ;
	cout<<"enter minutes";
	cin>>minutes ;
	new_minutes=minutes + (hours*60);
	cout<<"new minutes is "<<new_minutes ;
	return 0;

	
}

# data[].attributes.body
SITI NAJWA BT MOHD ZULKIFFLI

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

{
	int hrs,min,tmin;
	cout<<"enter hour= ";
	cin>>hrs;
	cout<<"enter minute= ";
	cin>>min;
	 
	tmin=(hrs*60)+min;
	cout<<"total minute= "<<tmin;
	return 0;
}

# data[].attributes.body
NURUL AINA ATIKAH BINTI ROSLAN

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

int main ()
{
	int hours , minutes , total_minutes ;
	
	cout << "enter hours : " ;
	cin >> hours ;
	
	cout << "enter minutes : " ;
	cin >> minutes ;
	
	total_minutes = (hours*60) + minutes ;
	
	cout << " Total minutes : " << total_minutes ;
	
	return 0 ;
}

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

int main()
{
	int hours, minutes;
	cout<< "how many hours = " ;
	cin>> hours ;
	cout<< "how many minutes = ";
	cin>> minutes; 
	minutes = minutes +(hours*60);
	cout<<"total minutes is "<<minutes<<endl;
	 
}

# data[].attributes.body
Safwani dan Mari

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
 
 int main()
 
 {
 	int hours,min,ValueMin,TotalMin;
 	cout<<"Enter Hours \t ";
 	cin>>hours;
 	cout<<"Enter Minutes \t ";
 	cin>>min;
 	
 	    ValueMin = hours * 60;
 	    TotalMin = ValueMin + min;
 	    
 	    
 	cout<<"Total Minutes = "<<TotalMin;

 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	
 	return 0;
 }

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

int main()
{
	int hour, minutes, new_minutes;
	cout<< "Enter hour: ";
	cin>> hour;
	cout<< "Enter minutes: ";
	cin>> minutes;
	
	 new_minutes= (hour*60)+minutes;
	 
	cout<<"new minutes is  "<<new_minutes<<endl;
	 return 0;
	
}

# data[].attributes.body
Construct pseudocode and a complete C++ program for the problem :
Design a C++ program which will input the value of time in terms of hours and minutes. The program will convert the value into minutes. The sample of input and output as shown below :

If user input : 11 hours 30 minutes

The output will be : 690 minutes

# data[].attributes.body
& Danish

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

int main()
{
	int hours,minutes,answersz;
	cout<<"enter hours =";
	cin>> hours;
	cout<<"enter minutesz ";
	cin>>minutes;
	
	answersz=hours*60+minutes;
	cout<<"the answersz issss "<<answersz<<" minutes";
	

	
}

# data[].attributes.body
Algo No 9
sabrina huda

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

int main ()
{
	int hours, Minute, minute ;
	cout<<"Enter Hour's"<<endl;
	cin >> hours;
	cout<<"Enter Minute"<<endl;
	cin >>Minute;
	
	minute= (hours*60) + Minute;
	
	cout<<"Minute= " <<minute<<endl;
	
	
	
}

# data[].attributes.body
Umi Najihah bt  abd Razak

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

{
	int hour,minutes;
	
  cout<<"Enter hour";
  cin>>hour;
  cout<<"Enter minutes";
  cin>>minutes;
  hour=hour*60;
  cout<<"output will be"<<hour+minutes<<endl;

	
	
	
	
	
	return 0;
}

# data[].attributes.body
Rabiatul Athirah bt Azman

# data[].attributes.attachment_link.readable_text

#include<iostream>
using namespace std;

int main()
{
	int hours, Minutes, minutes;
	cout<<"Enter Hours"<<endl;
	cin>>hours;
	cout<<"Enter Minutes"<<endl;
	cin>>minutes;
	
	Minutes=(hours*60) + minutes;
	
	cout<<"Minutes = "<<Minutes<<endl;
}

# data[].attributes.body
Humairah x Azalea

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

{
	int minutes,hrs;
	cout<<"Enter total hours:";
	cin>> hrs;
	cout<<"Enter total minutes: ";
	cin>>minutes;
	minutes= (hrs*60)+minutes;
	cout<<"Total minutes are :"<<minutes;
	
	return 0;
}

# data[].attributes.body
Nurul Irdina Khairina Mohamad Zamili

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	int min,hour;
	
	cout<<"Enter hour :  ";
	cin>>hour;
	cout<<"Enter minute :  ";
	cin>>min;
	
	min=(hour*60)+min;
	
	cout<<"The minute : ";
	cout<<min;
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	return 0;
}

# data[].attributes.body
Amir dan Haiqal

# data[].attributes.attachment_link.readable_text

#include <iostream>

using namespace std;

int main()
{
	int hours , minutes , time ;
	cout<<"enter hours = ";
	cin>>hours ;
	cout<<"enter minutes= ";
	cin>>minutes ;
	 
	 time= (60*hours) + (minutes);
	cout<<"the time in minutes ="<<time<<endl;
	return 0 ;
	

}


# data[].attributes.body
Ainur Najwa bt Rozaidi

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

{
	int hour,min;

	cout<<"Enter hours : ";
	cin>>hour;
	
	cout<<"Enter minutes : ";
	cin>>min;
	
	hour=hour*60;
	
	cout<<"The output will be : "<<hour+min<<" minutes"<<endl;
	
	return 0;
}


# data[].attributes.body
Nur Sarah Zulaikha bt Muhadzir
Nur Syahirah bt Mohamad Nor

# data[].attributes.attachment_link.readable_text
#include<iostream>
using namespace std;
int main()
{
	int hours,min,valueinmin;
	cout<<"enter time in hours:";
	cin>>hours;
	cout<<"enter time in minutes:";
	cin>>min;
	valueinmin=(hours*60)+min;
	cout<<"display time in minutes:"<<valueinmin;
	return 0;
	
	
}


# data[].attributes.body
Muhammad Nizamuddin Bin Noor Hisham
Muhammad Irfan B. Hafazil

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

int main()
{
	int hrs, min, time;
	cout<<"Enter Hour: ";
	cin>>hrs;
	cout<<"Enter Minutes: ";
	cin>>min;
	time=(hrs*60)+min;
	cout<<"The total time in minutes: "<<time<<endl;
	
	return 0;
}

# data[].attributes.body
Istihara & Izzah :)

# data[].attributes.attachment_link.readable_text




#include<iostream>
using namespace std;

int main()
{
	int hours,min,convert_to_min;
	cout<<"value hours is:"<<endl;
	cin>>hours;
	cout<<"value min is:"<<endl;
	cin>>min;
	 	convert_to_min= (hours*60)+min;
	 
	 
	 cout<<"value in min is"<<convert_to_min<<endl;
	 return 0;
	 
	
}

