Professional Documents
Culture Documents
Lab Report Week 5 BS01202007
Lab Report Week 5 BS01202007
NO MATRIX: BS01202007
PROGRAM : BKEG, MELAKA 6
Exercise 4.3
1.
SOURCE CODE
#include <iostream>
int main()
int hour;
float total;
char code;
if(hour <= 3)
total = 1.00;
else
if(hour <= 3)
total = 1.50;
else
if(hour <= 3)
total = 2.00;
else
}
else //selain dari kod di atas... keluarkan error mesej
return 0;
OUTPUT
2.
SOURCE CODE
#include <iostream>
int main()
float total_cost;
{
total_cost = total_cost - (total_cost * 50/100);
return 0;
OUTPUT