Cardos
BSIT-201C
import java.io.*;
public class chie1
public static void main(String[] args)throws Exception {
BufferedReader ichie = new BufferedReader(new InputStreamReader(System.in));
double p;
double c;
double d;
double pac;
System.out.print("Enter product price: Php ");
p = Double.parseDouble(ichie.readLine());
System.out.print("Enter Sales Commossion rate (%) : ");
c = Double.parseDouble(ichie.readLine());
c = c / 100;
System.out.print("Enter Customer Discount rate (%) : ");
d = Double.parseDouble(ichie.readLine());
d = d / 100;
System.out.println("Amount of Sales Commision: Php " + computeSalesCommision(p,
c));
pac = p + computeSalesCommision(p, c);
System.out.println("Price after Amount of Sales Commision: Php " + pac);
System.out.println("Amount of Customer Discount: Php " +
computeCustomerDiscount(pac, d));
computeFinalPrice(pac, d);
}
public static double computeSalesCommision(double x, double y){
double com = 0;
com = x * y;
return com;
}
public static double computeCustomerDiscount(double x, double y){
double dis = 0;
dis = x * y;
return dis;
}
public static void computeFinalPrice(double x, double y){
double fPrice = 0;
fPrice = (x - (x * y));
System.out.println("Final
Product Price: Php " + fPrice);
}
}
Danchie S. Cardos
BSIT-201C
import java.io.*;
public class chie2 {
public static void main(String[] args)throws Exception {
BufferedReader soy = new BufferedReader(new InputStreamReader(System.in));
double hrate;
int rhours;
int othours;
Jenella B. Magpayo
BSIT-201C
import java.io.*;
public class jhen {
public static void main(String[] args)throws Exception {
BufferedReader jhen = new BufferedReader(new InputStreamReader(System.in));
double
double
double
double
pPrice;
cRate;
dRate;
pac;
commision = a * b;
return commision;
}
public static double computeCustomerDiscount(double a, double b){
double discount = 0;
discount = a * b;
return discount;
}
public static void
computeFinalPrice(double a,
double c){
double finalPrice = 0;
finalPrice = (a - (a * c));
System.out.println("Final Product Price: Php " + finalPrice);
}
}
Jenella B. Magpayo
BSIT-201C
import java.io.*;
public class Jhen2 {
public static void main(String[] args)throws Exception {
BufferedReader jhen = new BufferedReader(new InputStreamReader(System.in));
double hRate;
int rHours;
int otHours;
System.out.print("Enter the hourly rate : Php ");
hRate = Double.parseDouble(jhen.readLine());
System.out.print("Enter the regular hours : ");
rHours = Integer.parseInt(jhen.readLine());
System.out.print("Enter the overtime hours : ");
otHours = Integer.parseInt(jhen.readLine());
System.out.println("The weekly salary is Php " + computeOvertimePay(hRate, rHours,
otHours));
}
public static double computeOvertimePay(double a, double b, double c){
double overtimePay = 0;
overtimePay = (a * b) + (c * (a * 1.5));
return overtimePay;
}
}
Franceridley Quioc
BSIT 201C
import java.io.*;
public class Rids {
public static void main(String[] args)throws Exception {
BufferedReader rids = new BufferedReader(new InputStreamReader(System.in));
double
double
double
double
pP;
cRate;
discountR;
priceAfterCommision;
Franceridley Quioc
BSIT 201C
import java.io.*;
public class Ridscute {
public static void main(String[] args)throws Exception {
BufferedReader rds = new BufferedReader(new InputStreamReader(System.in));
double hourlyR;
int regularH;
int overtimeH;
Nesgil T. Supan
BSIT 201C
import java.io.*;
public class NesAss1 {
public static void main(String[] args)throws Exception {
BufferedReader nes = new BufferedReader(new InputStreamReader(System.in));
double
double
double
double
productP;
commisionR;
discountR;
priceAfterC;
Nesgil T. Supan
BSIT 201C
import java.io.*;
public class NesAss2 {
public static void main(String[] args)throws Exception {
BufferedReader nes = new BufferedReader(new InputStreamReader(System.in));
double hourlyR;
int regularH;
int overtimeH;
productPrice;
commisionRate;
discountRate;
priceAfterCommision;
proPrice;
comRate;
disRate;
priceAfterCommision;
ChesterLee D Marcelo
BSIT 201C
import java.io.*;
public class Chester1 {
public static void main(String[] args)throws Exception {
BufferedReader CLDM = new BufferedReader(new InputStreamReader(System.in));
double
double
double
double
proPrice;
comRate;
disRate;
priceAfterCommision;
ChesterLee D Marcelo
BSIT 201C
import java.io.*;
public class Chester2 {
public static void main(String[] args)throws Exception {
BufferedReader CLDM = new BufferedReader(new InputStreamReader(System.in));
double hourlyRate;
int regularHours;
int overtimeHours;
System.out.print("Enter the hourly rate : Php ");
hourlyRate = Double.parseDouble(CLDM.readLine());
System.out.print("Enter the regular hours : ");
regularHours = Integer.parseInt(CLDM.readLine());
System.out.print("Enter the overtime hours : ");
overtimeHours = Integer.parseInt(CLDM.readLine());
System.out.println("The weekly salary is Php " + computeOvertimePay(hourlyRate,
regularHours, overtimeHours));
}
public static double computeOvertimePay(double a, double b, double c){
double overtimePay = 0;
overtimePay = (a * b) + (c * (a * 1.5));
return overtimePay;
}
}
Regine Jimenez
BSIT-201C
import java.io.*;
public class RegPink {
public static void main(String[] args)throws Exception {
BufferedReader reg = new BufferedReader(new InputStreamReader(System.in));
double
double
double
double
prdctPrc;
comRate;
disRate;
pAfterCommision;
Regine Jimenez
BSIT-201C
import java.io.*;
public class RegPink2 {
public static void main(String[] args)throws Exception {
BufferedReader reg = new BufferedReader(new InputStreamReader(System.in));
double hrRte;
int regHrs;
int otHours;
System.out.print("Enter the hourly rate : Php ");
hrRte = Double.parseDouble(reg.readLine());
System.out.print("Enter the regular hours : ");
regHrs = Integer.parseInt(reg.readLine());
System.out.print("Enter the overtime hours : ");
otHours = Integer.parseInt(reg.readLine());
System.out.println("The weekly salary is Php " + computeOvertimePay(hrRte, regHrs,
otHours));
}
public static double computeOvertimePay(double a, double b, double c){
double overtimePay = 0;
overtimePay = (a * b) + (c * (a * 1.5));
return overtimePay;
}
}
Johnnel Igaya
BSIT-201C
import java.io.*;
public class SenpaiTheGreat01 {
public static void main(String[] args)throws Exception {
BufferedReader senpai = new BufferedReader(new InputStreamReader(System.in));
double
double
double
double
productPrice;
commisionRate;
discountRate;
priceAfterCommision;
Johnnel Igaya
BSIT-201C
import java.io.*;
public class SenpaiTheGreat02 {
public static void main(String[] args)throws Exception {
BufferedReader senpai = new BufferedReader(new InputStreamReader(System.in));
double hourlyRate;
int regularHours;
int overtimeHours;
System.out.print("Enter the hourly rate : Php ");
hourlyRate = Double.parseDouble(senpai.readLine());
System.out.print("Enter the regular hours : ");
regularHours = Integer.parseInt(senpai.readLine());
System.out.print("Enter the overtime hours : ");
overtimeHours = Integer.parseInt(senpai.readLine());
System.out.println("The weekly salary is Php " + computeOvertimePay(hourlyRate,
regularHours, overtimeHours));
}
public static double computeOvertimePay(double a, double b, double c){
double overtimePay = 0;
overtimePay = (a * b) + (c * (a * 1.5));
return overtimePay;
}
}
prc;
com;
dis;
prcAftrCmmsn;