Anda di halaman 1dari 22

Danchie S.

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;

System.out.print("Enter the hourly rate : Php ");


hrate = Double.parseDouble(soy.readLine());
System.out.print("Enter the regular hours : ");
rhours = Integer.parseInt(soy.readLine());
System.out.print("Enter the overtime hours : ");
othours = Integer.parseInt(soy.readLine());
System.out.println("The weekly salary is Php " + computeOvertimePay(hrate, rhours,
othours));
}
public static double computeOvertimePay(double x, double y, double z){
double otp = 0;
otp = (x * y) + (z * (x * 1.5));
return otp;
}
}

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;

System.out.print("Enter product price: Php ");


pPrice = Double.parseDouble(jhen.readLine());
System.out.print("Enter Sales Commossion rate (%) : ");
cRate = Double.parseDouble(jhen.readLine());
cRate = cRate / 100;
System.out.print("Enter Customer Discount rate (%) : ");
dRate = Double.parseDouble(jhen.readLine());
dRate = dRate / 100;
System.out.println("Amount of Sales Commision: Php " + computeSalesCommision(pPrice,
cRate));
pac = pPrice + computeSalesCommision(pPrice, cRate);
System.out.println("Price after Amount of Sales Commision: Php " + pac);
System.out.println("Amount of Customer Discount: Php " +
computeCustomerDiscount(pac, dRate));
computeFinalPrice(pac, dRate);
}
public static double computeSalesCommision(double a, double b){
double commision = 0;

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;

System.out.print("Enter product price: Php ");


pP = Double.parseDouble(rids.readLine());
System.out.print("Enter Sales Commossion rate (%) : ");
cRate = Double.parseDouble(rids.readLine());
cRate = cRate / 100;
System.out.print("Enter Customer Discount rate (%) : ");
discountR = Double.parseDouble(rids.readLine());
discountR = discountR / 100;
System.out.println("Amount of Sales Commision: Php " +
computeSalesCommision(pP, cRate));
priceAfterCommision = pP + computeSalesCommision(pP, cRate);
System.out.println("Price after Amount of Sales Commision: Php " +
priceAfterCommision);
System.out.println("Amount of Customer Discount: Php " +
computeCustomerDiscount(priceAfterCommision, discountR));
computeFinalPrice(priceAfterCommision, discountR);
}
public static double computeSalesCommision(double a, double b){
double commision = 0;
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);


}}

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;

System.out.print("Enter the hourly rate : Php ");


hourlyR = Double.parseDouble(rds.readLine());
System.out.print("Enter the regular hours : ");
regularH = Integer.parseInt(rds.readLine());
System.out.print("Enter the overtime hours : ");
overtimeH = Integer.parseInt(rds.readLine());
System.out.println("The weekly salary is Php " + computeOvertimePay(hourlyR,
regularH, overtimeH));
}
public static double computeOvertimePay(double a, double b, double c){
double overtimePay = 0;
overtimePay = (a * b) + (c * (a * 1.5));
return overtimePay;
}

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;

System.out.print("Enter product price: Php ");


productP = Double.parseDouble(nes.readLine());
System.out.print("Enter Sales Commossion rate (%) : ");
commisionR = Double.parseDouble(nes.readLine());
commisionR = commisionR / 100;
System.out.print("Enter Customer Discount rate (%) : ");
discountR = Double.parseDouble(nes.readLine());
discountR = discountR / 100;
System.out.println("Amount of Sales Commision: Php " + SalesCommision(productP,
commisionR));
priceAfterC = productP + SalesCommision(productP, commisionR);
System.out.println("Price after Amount of Sales Commision: Php " + priceAfterC);
System.out.println("Amount of Customer Discount: Php " +
CustomerDiscount(priceAfterC, discountR));
FinalPrice(priceAfterC, discountR);
}
public static double SalesCommision(double a, double b){
double commision = 0;
commision = a * b;
return commision;
}
public static double CustomerDiscount(double a, double b){
double discount = 0;
discount = a * b;
return discount;
}
public static void
FinalPrice(double a,
double c){
double finalPrice = 0;
finalPrice = (a - (a *
c));
System.out.println("Final
Product Price: Php " +
finalPrice);
}
}

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;

System.out.print("Enter the hourly rate : Php ");


hourlyR = Double.parseDouble(nes.readLine());
System.out.print("Enter the regular hours : ");
regularH = Integer.parseInt(nes.readLine());
System.out.print("Enter the overtime hours : ");
overtimeH = Integer.parseInt(nes.readLine());
System.out.println("The weekly salary is Php " + computeOvertimePay(hourlyR,
regularH, overtimeH));
}
public static double computeOvertimePay(double a, double b, double c){
double overtimePay = 0;
overtimePay = (a * b) + (c * (a * 1.5));
return overtimePay;
}
}

Sanita Mark David


BSIT 201C
import java.io.*;
public class SataAss1 {
public static void main(String[] args)throws Exception {
BufferedReader sata = new BufferedReader(new InputStreamReader(System.in));
double
double
double
double

productPrice;
commisionRate;
discountRate;
priceAfterCommision;

System.out.print("Enter product price: Php ");


productPrice = Double.parseDouble(sata.readLine());
System.out.print("Enter Sales Commossion rate (%) : ");
commisionRate = Double.parseDouble(sata.readLine());
commisionRate = commisionRate / 100;
System.out.print("Enter Customer Discount rate (%) : ");
discountRate = Double.parseDouble(sata.readLine());
discountRate = discountRate / 100;
System.out.println("Amount of Sales Commision: Php " +
computeSalesCommision(productPrice, commisionRate));
priceAfterCommision = productPrice + computeSalesCommision(productPrice,
commisionRate);
System.out.println("Price after Amount of Sales Commision: Php " +
priceAfterCommision);
System.out.println("Amount of Customer Discount: Php " +
computeCustomerDiscount(priceAfterCommision, discountRate));
computeFinalPrice(priceAfterCommision, discountRate);
}
public static double computeSalesCommision(double a, double b){
double commision = 0;
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);
}
}

Sanita Mark David


BSIT 201C
import java.io.*;
public class SataAss2 {
public static void main(String[] args)throws Exception {
BufferedReader sata = new BufferedReader(new InputStreamReader(System.in));
double hourlyRate;
int regularHours;
int overtimeHours;

System.out.print("Enter the hourly rate : Php ");


hourlyRate = Double.parseDouble(sata.readLine());
System.out.print("Enter the regular hours : ");
regularHours = Integer.parseInt(sata.readLine());
System.out.print("Enter the overtime hours : ");
overtimeHours = Integer.parseInt(sata.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;
}

Alyssa Camille Siapno


BSIT 201C
import java.io.*;
public class Aya1 {
public static void main(String[] args)throws Exception {
BufferedReader black = new BufferedReader(new InputStreamReader(System.in));
double
double
double
double

proPrice;
comRate;
disRate;
priceAfterCommision;

System.out.print("Enter product price: Php ");


proPrice = Double.parseDouble(black.readLine());
System.out.print("Enter Sales Commossion rate (%) : ");
comRate = Double.parseDouble(black.readLine());
comRate = comRate / 100;
System.out.print("Enter Customer Discount rate (%) : ");
disRate = Double.parseDouble(black.readLine());
disRate = disRate / 100;
System.out.println("Amount of Sales Commision: Php " +
computeSalesCommision(proPrice, comRate));
priceAfterCommision = proPrice + computeSalesCommision(proPrice, comRate);
System.out.println("Price after Amount of Sales Commision: Php " +
priceAfterCommision);
System.out.println("Amount of Customer Discount: Php " +
computeCustomerDiscount(priceAfterCommision, disRate));
computeFinalPrice(priceAfterCommision, disRate);
}
public static double computeSalesCommision(double a, double b){
double commision = 0;
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);
}
}

Alyssa Camille Siapno


BSIT 201C
import java.io.*;
public class Aya2 {
public static void main(String[] args)throws Exception {
BufferedReader black = new BufferedReader(new InputStreamReader(System.in));
double hourlyRate;
int regularHours;
int overtimeHours;
System.out.print("Enter the hourly rate : Php ");
hourlyRate = Double.parseDouble(black.readLine());
System.out.print("Enter the regular hours : ");
regularHours = Integer.parseInt(black.readLine());
System.out.print("Enter the overtime hours : ");
overtimeHours = Integer.parseInt(black.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;
}
}

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;

System.out.print("Enter product price: Php ");


proPrice = Double.parseDouble(CLDM.readLine());
System.out.print("Enter Sales Commossion rate (%) : ");
comRate = Double.parseDouble(CLDM.readLine());
comRate = comRate / 100;
System.out.print("Enter Customer Discount rate (%) : ");
disRate = Double.parseDouble(CLDM.readLine());
disRate = disRate / 100;
System.out.println("Amount of Sales Commision: Php " +
computeSalesCommision(proPrice, comRate));
priceAfterCommision = proPrice + computeSalesCommision(proPrice, comRate);
System.out.println("Price after Amount of Sales Commision: Php " +
priceAfterCommision);
System.out.println("Amount of Customer Discount: Php " +
computeCustomerDiscount(priceAfterCommision, disRate));
computeFinalPrice(priceAfterCommision, disRate);
}
public static double computeSalesCommision(double a, double b){
double commision = 0;
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);
}
}

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;

System.out.print("Enter product price: Php ");


prdctPrc = Double.parseDouble(reg.readLine());
System.out.print("Enter Sales Commossion rate (%) : ");
comRate = Double.parseDouble(reg.readLine());
comRate = comRate / 100;
System.out.print("Enter Customer Discount rate (%) : ");
disRate = Double.parseDouble(reg.readLine());
disRate = disRate / 100;
System.out.println("Amount of Sales Commision: Php " +
computeSalesCommision(prdctPrc, comRate));
pAfterCommision = prdctPrc + computeSalesCommision(prdctPrc, comRate);
System.out.println("Price after Amount of Sales Commision: Php " +
pAfterCommision);
System.out.println("Amount of Customer Discount: Php " +
computeCustomerDiscount(pAfterCommision, disRate));
computeFinalPrice(pAfterCommision, disRate);
}
public static double computeSalesCommision(double a, double b){
double commision = 0;
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);
}
}

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;

System.out.print("Enter product price: Php ");


productPrice = Double.parseDouble(senpai.readLine());
System.out.print("Enter Sales Commision rate (%) : ");
commisionRate = Double.parseDouble(senpai.readLine());
commisionRate = commisionRate / 100;
System.out.print("Enter Customer Discount rate (%) : ");
discountRate = Double.parseDouble(senpai.readLine());
discountRate = discountRate / 100;
System.out.println("Amount of Sales Commision: Php " +
computeSalesCommision(productPrice, commisionRate));
priceAfterCommision = productPrice + computeSalesCommision(productPrice,
commisionRate);
System.out.println("Price after Amount of Sales Commision: Php " +
priceAfterCommision);
System.out.println("Amount of Customer Discount: Php " +
computeCustomerDiscount(priceAfterCommision, discountRate));
computeFinalPrice(priceAfterCommision, discountRate);
}
public static double computeSalesCommision(double a, double b){
double commision = 0;
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);
}
}

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;
}
}

Genesis Ray L. Miclat


BSIT 201C
import java.io.*;
public class Gens1 {
public static void main(String[] args)throws Exception {
BufferedReader grlm = new BufferedReader(new InputStreamReader(System.in));
double
double
double
double

prc;
com;
dis;
prcAftrCmmsn;

System.out.print("Enter product price: Php ");


prc = Double.parseDouble(grlm.readLine());
System.out.print("Enter Sales Commision rate (%) : ");
com = Double.parseDouble(grlm.readLine());
com = com / 100;
System.out.print("Enter Customer Discount rate (%) : ");
dis = Double.parseDouble(grlm.readLine());
dis = discountRate / 100;
System.out.println("Amount of Sales Commision: Php " +
computeSalesCommision(prc, com));
prcAftrCmmsn = prc + computeSalesCommision(prc, com);
System.out.println("Price after Amount of Sales Commision: Php " + prcAftrCmmsn);
System.out.println("Amount of Customer Discount: Php " +
computeCustomerDiscount(prcAftrCmmsn, dis));
computeFinalPrice(prcAftrCmmsn, dis);
}
public static double computeSalesCommision(double a, double b){
double cmmsn = 0;
cmmsn = a * b;
return cmmsn;
}
public static double computeCustomerDiscount(double a, double b){
double dscnt = 0;
dscnt = a * b;
return dscnt;
}
public static void computeFinalPrice(double a, double c){
double fnlPrc = 0;
fnlPrc = (a - (a * c));
System.out.println("Final Product Price: Php " + fnlPrc);
}
}

Genesis Ray L. Miclat


BSIT 201C
import java.io.*;
public class Gens2 {
public static void main(String[] args)throws Exception {
BufferedReader grlm = new BufferedReader(new InputStreamReader(System.in));
double hr;
int rglrHrs;
int ovrtmHrs;
System.out.print("Enter the hourly rate : Php ");
hr = Double.parseDouble(grlm.readLine());
System.out.print("Enter the regular hours : ");
rglrHrs = Integer.parseInt(grlm.readLine());
System.out.print("Enter the overtime hours : ");
ovrtmHrs = Integer.parseInt(grlm.readLine());
System.out.println("The weekly salary is Php " + computeOvertimePay(hr, rglrHrs,
ovrtmHrs));
}
public static double computeOvertimePay(double a, double b, double c){
double pay = 0;
Pay = (a * b) + (c * (a * 1.5));
return pay;
}
}

Anda mungkin juga menyukai