SlideShare a Scribd company logo
1 of 3
Unit it designing structured programs (a) Gross pay = Hours
worked times Rate (b) F.L.C.A. (Social Security and Medicare
taxes) = 7.65% of Gross pay (c) Net pay = Gross pay - F.I.C.A.
write a program to print out payroll information for each
employee. The problem definition is shown in Figure 7.4.
Interactive processing, For each customer loan approved at
Dollars-And-Sense Bank do play a line indicating the monthly
payment for that customer. Enter the following information
from the keyboard: CUSTOMER NAME: AMT OF LOAN
(PRINCIPAL): YEARLY INTEREST RATE: LENGTH OF
LOAN (IN YEARS): See the example on the next page.
Problem definition for programming Assignment 2. what are
the monthly payments on a twenty-year loan of $20, 000 at
12%? P = 20000 R = .12 N = 20 years Monthly payment =
20000 * (.12/12) - (20000 * (.12/12)/(1 - (1.01)^240)) = 20000
* (.01) - (20000 * .01/(1 - (1.01)^240)) = 200 - (-20.22) =
220.22 Round monthly payments to the nearest penny. Design
the interactive screen displays yourself.
Solution
Program:
import java.util.Scanner;
class payroll{
{
public static void main(string[] args)
{
Scanner input=new Scanner(System.in);
system.out.println("enter employee name:");
string employee=input.next();
system.out.println("Enter number of hours worked:");
double hours=input.nextDouble();
system.out.println("enter hourly pay rate:");
double pay=input.nextDouble();
double gross_pay=pay*hours;
system.out.println("enter federal tax withholding rate:");
double fedtax=input.nextDouble();
double fedtaxr=fedtax*0.20;
system.out.println("enter social security and medicine tax :");
double social_security=input.nextDouble();
double social_security=statetax*0.20;
double deductions=fedtaxer;
double total _pay=gross_pay - deductions;
system.out.println("employee name:"+employee);
system.out.println("hours worked:"+hours);
system.out.println("enter payrate:"+pay);
system.out.println("enter gross pay:"+gross_pay);
system.out.println("Deductions");
system.out.println("t Federal withholding(20.0%):"+fedtaxr);
system.out.println("t State withholding (9.0%)"+statetaxr);
system.out.println("t Total deductions: "+deduction);
system.out.println("Total pay:" + total_pay);
}
}

More Related Content

Similar to Unit it designing structured programs (a) Gross pay = Hours worked t.docx

Introduction to Interest
Introduction to Interest Introduction to Interest
Introduction to Interest WajeehaAhmed4
 
bond valuation.ppt
bond valuation.pptbond valuation.ppt
bond valuation.pptjaya912174
 
BUS 640 Become Exceptional--bus640.com
 BUS 640 Become Exceptional--bus640.com BUS 640 Become Exceptional--bus640.com
BUS 640 Become Exceptional--bus640.comclaric129
 
Summerfuel finance 2016 class 10 7 21
Summerfuel finance  2016 class  10 7 21Summerfuel finance  2016 class  10 7 21
Summerfuel finance 2016 class 10 7 21Kevin McWilliams
 
MATH 133 / TUTORIALOUTLET DOT COM
MATH 133 / TUTORIALOUTLET DOT COMMATH 133 / TUTORIALOUTLET DOT COM
MATH 133 / TUTORIALOUTLET DOT COMalbert0102
 
Chapter_3_Time_Value_of_Money.pdf
Chapter_3_Time_Value_of_Money.pdfChapter_3_Time_Value_of_Money.pdf
Chapter_3_Time_Value_of_Money.pdfSudipBalLama
 
BUS 640 Education Counseling--bus640.com
BUS 640 Education Counseling--bus640.comBUS 640 Education Counseling--bus640.com
BUS 640 Education Counseling--bus640.comclaric58
 
BUS 640 Education for Service--bus640.com
BUS 640 Education for Service--bus640.comBUS 640 Education for Service--bus640.com
BUS 640 Education for Service--bus640.comwilliamwordsworth9
 
BUS 640 Achievement Education--bus640.com
BUS 640 Achievement Education--bus640.comBUS 640 Achievement Education--bus640.com
BUS 640 Achievement Education--bus640.comagathachristie168
 
BUS 640 Redefined Education--bus640.com
BUS 640 Redefined Education--bus640.comBUS 640 Redefined Education--bus640.com
BUS 640 Redefined Education--bus640.comagathachristie206
 
Acc 422-week-4-wiley plus-ex-13
Acc 422-week-4-wiley plus-ex-13Acc 422-week-4-wiley plus-ex-13
Acc 422-week-4-wiley plus-ex-13albyalcot91
 
Acc 422-week-4-wiley plus-ex-13
Acc 422-week-4-wiley plus-ex-13Acc 422-week-4-wiley plus-ex-13
Acc 422-week-4-wiley plus-ex-13indi3540
 
Build a ModelBuild a Model112618Chapter10Problem23Gardial Fish.docx
Build a ModelBuild a Model112618Chapter10Problem23Gardial Fish.docxBuild a ModelBuild a Model112618Chapter10Problem23Gardial Fish.docx
Build a ModelBuild a Model112618Chapter10Problem23Gardial Fish.docxbartholomeocoombs
 
BUS 640 Remember Education--bus640.com
BUS 640 Remember Education--bus640.comBUS 640 Remember Education--bus640.com
BUS 640 Remember Education--bus640.comchrysanthemu65
 
BUS 640 Inspiring Innovation -- bus640.com
BUS 640 Inspiring Innovation -- bus640.comBUS 640 Inspiring Innovation -- bus640.com
BUS 640 Inspiring Innovation -- bus640.comkopiko103
 
BUS 640 Education Planning--bus640.com
BUS 640 Education Planning--bus640.comBUS 640 Education Planning--bus640.com
BUS 640 Education Planning--bus640.comWindyMiller43
 
BUS 640 Introduction Education--bus640.com
BUS 640 Introduction Education--bus640.comBUS 640 Introduction Education--bus640.com
BUS 640 Introduction Education--bus640.comkopiko222
 
B-13.01On April 1, 20X4, Rojas purchased land by giving $100,000 i.docx
B-13.01On April 1, 20X4, Rojas purchased land by giving $100,000 i.docxB-13.01On April 1, 20X4, Rojas purchased land by giving $100,000 i.docx
B-13.01On April 1, 20X4, Rojas purchased land by giving $100,000 i.docxikirkton
 
Gj11e ch02
Gj11e ch02Gj11e ch02
Gj11e ch02geojan88
 

Similar to Unit it designing structured programs (a) Gross pay = Hours worked t.docx (19)

Introduction to Interest
Introduction to Interest Introduction to Interest
Introduction to Interest
 
bond valuation.ppt
bond valuation.pptbond valuation.ppt
bond valuation.ppt
 
BUS 640 Become Exceptional--bus640.com
 BUS 640 Become Exceptional--bus640.com BUS 640 Become Exceptional--bus640.com
BUS 640 Become Exceptional--bus640.com
 
Summerfuel finance 2016 class 10 7 21
Summerfuel finance  2016 class  10 7 21Summerfuel finance  2016 class  10 7 21
Summerfuel finance 2016 class 10 7 21
 
MATH 133 / TUTORIALOUTLET DOT COM
MATH 133 / TUTORIALOUTLET DOT COMMATH 133 / TUTORIALOUTLET DOT COM
MATH 133 / TUTORIALOUTLET DOT COM
 
Chapter_3_Time_Value_of_Money.pdf
Chapter_3_Time_Value_of_Money.pdfChapter_3_Time_Value_of_Money.pdf
Chapter_3_Time_Value_of_Money.pdf
 
BUS 640 Education Counseling--bus640.com
BUS 640 Education Counseling--bus640.comBUS 640 Education Counseling--bus640.com
BUS 640 Education Counseling--bus640.com
 
BUS 640 Education for Service--bus640.com
BUS 640 Education for Service--bus640.comBUS 640 Education for Service--bus640.com
BUS 640 Education for Service--bus640.com
 
BUS 640 Achievement Education--bus640.com
BUS 640 Achievement Education--bus640.comBUS 640 Achievement Education--bus640.com
BUS 640 Achievement Education--bus640.com
 
BUS 640 Redefined Education--bus640.com
BUS 640 Redefined Education--bus640.comBUS 640 Redefined Education--bus640.com
BUS 640 Redefined Education--bus640.com
 
Acc 422-week-4-wiley plus-ex-13
Acc 422-week-4-wiley plus-ex-13Acc 422-week-4-wiley plus-ex-13
Acc 422-week-4-wiley plus-ex-13
 
Acc 422-week-4-wiley plus-ex-13
Acc 422-week-4-wiley plus-ex-13Acc 422-week-4-wiley plus-ex-13
Acc 422-week-4-wiley plus-ex-13
 
Build a ModelBuild a Model112618Chapter10Problem23Gardial Fish.docx
Build a ModelBuild a Model112618Chapter10Problem23Gardial Fish.docxBuild a ModelBuild a Model112618Chapter10Problem23Gardial Fish.docx
Build a ModelBuild a Model112618Chapter10Problem23Gardial Fish.docx
 
BUS 640 Remember Education--bus640.com
BUS 640 Remember Education--bus640.comBUS 640 Remember Education--bus640.com
BUS 640 Remember Education--bus640.com
 
BUS 640 Inspiring Innovation -- bus640.com
BUS 640 Inspiring Innovation -- bus640.comBUS 640 Inspiring Innovation -- bus640.com
BUS 640 Inspiring Innovation -- bus640.com
 
BUS 640 Education Planning--bus640.com
BUS 640 Education Planning--bus640.comBUS 640 Education Planning--bus640.com
BUS 640 Education Planning--bus640.com
 
BUS 640 Introduction Education--bus640.com
BUS 640 Introduction Education--bus640.comBUS 640 Introduction Education--bus640.com
BUS 640 Introduction Education--bus640.com
 
B-13.01On April 1, 20X4, Rojas purchased land by giving $100,000 i.docx
B-13.01On April 1, 20X4, Rojas purchased land by giving $100,000 i.docxB-13.01On April 1, 20X4, Rojas purchased land by giving $100,000 i.docx
B-13.01On April 1, 20X4, Rojas purchased land by giving $100,000 i.docx
 
Gj11e ch02
Gj11e ch02Gj11e ch02
Gj11e ch02
 

More from Komlin1

Theodore Robert (Ted) BundyReview the case of Theodore Robert (Ted.docx
Theodore Robert (Ted) BundyReview the case of Theodore Robert (Ted.docxTheodore Robert (Ted) BundyReview the case of Theodore Robert (Ted.docx
Theodore Robert (Ted) BundyReview the case of Theodore Robert (Ted.docxKomlin1
 
Theory and Research Related to Social Issue By now, you have had t.docx
Theory and Research Related to Social Issue By now, you have had t.docxTheory and Research Related to Social Issue By now, you have had t.docx
Theory and Research Related to Social Issue By now, you have had t.docxKomlin1
 
Theory and the White-Collar OffenderOur previous week’s discussion.docx
Theory and the White-Collar OffenderOur previous week’s discussion.docxTheory and the White-Collar OffenderOur previous week’s discussion.docx
Theory and the White-Collar OffenderOur previous week’s discussion.docxKomlin1
 
There are 2 questions part A and B. All questions and relevant att.docx
There are 2 questions part A and B. All questions and relevant att.docxThere are 2 questions part A and B. All questions and relevant att.docx
There are 2 questions part A and B. All questions and relevant att.docxKomlin1
 
There are 2 discussions Topic 1 & Topic 2 (They both require refere.docx
There are 2 discussions Topic 1 & Topic 2 (They both require refere.docxThere are 2 discussions Topic 1 & Topic 2 (They both require refere.docx
There are 2 discussions Topic 1 & Topic 2 (They both require refere.docxKomlin1
 
Theoretical PerspectiveIdentify at least one human developme.docx
Theoretical PerspectiveIdentify at least one human developme.docxTheoretical PerspectiveIdentify at least one human developme.docx
Theoretical PerspectiveIdentify at least one human developme.docxKomlin1
 
THEIEPGOALSSHOULD BE WRITTEN INAWORDDO.docx
THEIEPGOALSSHOULD BE WRITTEN INAWORDDO.docxTHEIEPGOALSSHOULD BE WRITTEN INAWORDDO.docx
THEIEPGOALSSHOULD BE WRITTEN INAWORDDO.docxKomlin1
 
Theories of Behavior TimelineComplete the following tabl.docx
Theories of Behavior TimelineComplete the following tabl.docxTheories of Behavior TimelineComplete the following tabl.docx
Theories of Behavior TimelineComplete the following tabl.docxKomlin1
 
Thematic Issues Globalization; Islam & the West.docx
Thematic Issues Globalization; Islam & the West.docxThematic Issues Globalization; Islam & the West.docx
Thematic Issues Globalization; Islam & the West.docxKomlin1
 
The written portion of the research paper should be 9-11 pages in le.docx
The written portion of the research paper should be 9-11 pages in le.docxThe written portion of the research paper should be 9-11 pages in le.docx
The written portion of the research paper should be 9-11 pages in le.docxKomlin1
 
The World since 1945Country Report- SAUDI ARABIA     Histo.docx
The World since 1945Country Report- SAUDI ARABIA     Histo.docxThe World since 1945Country Report- SAUDI ARABIA     Histo.docx
The World since 1945Country Report- SAUDI ARABIA     Histo.docxKomlin1
 
The world runs on Big Data.  Traditionally, Data has been expressed .docx
The world runs on Big Data.  Traditionally, Data has been expressed .docxThe world runs on Big Data.  Traditionally, Data has been expressed .docx
The world runs on Big Data.  Traditionally, Data has been expressed .docxKomlin1
 
the    1.The collaborative planning Methodology is the f.docx
the    1.The collaborative planning Methodology is the f.docxthe    1.The collaborative planning Methodology is the f.docx
the    1.The collaborative planning Methodology is the f.docxKomlin1
 
The word stereotype originally referred to a method used by printers.docx
The word stereotype originally referred to a method used by printers.docxThe word stereotype originally referred to a method used by printers.docx
The word stereotype originally referred to a method used by printers.docxKomlin1
 
The Value of Critical Thinking  Please respond to the followin.docx
The Value of Critical Thinking  Please respond to the followin.docxThe Value of Critical Thinking  Please respond to the followin.docx
The Value of Critical Thinking  Please respond to the followin.docxKomlin1
 
The Value Chain Concept Please respond to the following·.docx
The Value Chain Concept Please respond to the following·.docxThe Value Chain Concept Please respond to the following·.docx
The Value Chain Concept Please respond to the following·.docxKomlin1
 
The wealth and energy between 1880 and 1910 was a unique and dynamic.docx
The wealth and energy between 1880 and 1910 was a unique and dynamic.docxThe wealth and energy between 1880 and 1910 was a unique and dynamic.docx
The wealth and energy between 1880 and 1910 was a unique and dynamic.docxKomlin1
 
The Value of Research in Social PolicyWhile research can be intere.docx
The Value of Research in Social PolicyWhile research can be intere.docxThe Value of Research in Social PolicyWhile research can be intere.docx
The Value of Research in Social PolicyWhile research can be intere.docxKomlin1
 
The United States’ foreign policy until the end of the nineteenth ce.docx
The United States’ foreign policy until the end of the nineteenth ce.docxThe United States’ foreign policy until the end of the nineteenth ce.docx
The United States’ foreign policy until the end of the nineteenth ce.docxKomlin1
 
The Value Chain Concept Please respond to the followingDescribe.docx
The Value Chain Concept Please respond to the followingDescribe.docxThe Value Chain Concept Please respond to the followingDescribe.docx
The Value Chain Concept Please respond to the followingDescribe.docxKomlin1
 

More from Komlin1 (20)

Theodore Robert (Ted) BundyReview the case of Theodore Robert (Ted.docx
Theodore Robert (Ted) BundyReview the case of Theodore Robert (Ted.docxTheodore Robert (Ted) BundyReview the case of Theodore Robert (Ted.docx
Theodore Robert (Ted) BundyReview the case of Theodore Robert (Ted.docx
 
Theory and Research Related to Social Issue By now, you have had t.docx
Theory and Research Related to Social Issue By now, you have had t.docxTheory and Research Related to Social Issue By now, you have had t.docx
Theory and Research Related to Social Issue By now, you have had t.docx
 
Theory and the White-Collar OffenderOur previous week’s discussion.docx
Theory and the White-Collar OffenderOur previous week’s discussion.docxTheory and the White-Collar OffenderOur previous week’s discussion.docx
Theory and the White-Collar OffenderOur previous week’s discussion.docx
 
There are 2 questions part A and B. All questions and relevant att.docx
There are 2 questions part A and B. All questions and relevant att.docxThere are 2 questions part A and B. All questions and relevant att.docx
There are 2 questions part A and B. All questions and relevant att.docx
 
There are 2 discussions Topic 1 & Topic 2 (They both require refere.docx
There are 2 discussions Topic 1 & Topic 2 (They both require refere.docxThere are 2 discussions Topic 1 & Topic 2 (They both require refere.docx
There are 2 discussions Topic 1 & Topic 2 (They both require refere.docx
 
Theoretical PerspectiveIdentify at least one human developme.docx
Theoretical PerspectiveIdentify at least one human developme.docxTheoretical PerspectiveIdentify at least one human developme.docx
Theoretical PerspectiveIdentify at least one human developme.docx
 
THEIEPGOALSSHOULD BE WRITTEN INAWORDDO.docx
THEIEPGOALSSHOULD BE WRITTEN INAWORDDO.docxTHEIEPGOALSSHOULD BE WRITTEN INAWORDDO.docx
THEIEPGOALSSHOULD BE WRITTEN INAWORDDO.docx
 
Theories of Behavior TimelineComplete the following tabl.docx
Theories of Behavior TimelineComplete the following tabl.docxTheories of Behavior TimelineComplete the following tabl.docx
Theories of Behavior TimelineComplete the following tabl.docx
 
Thematic Issues Globalization; Islam & the West.docx
Thematic Issues Globalization; Islam & the West.docxThematic Issues Globalization; Islam & the West.docx
Thematic Issues Globalization; Islam & the West.docx
 
The written portion of the research paper should be 9-11 pages in le.docx
The written portion of the research paper should be 9-11 pages in le.docxThe written portion of the research paper should be 9-11 pages in le.docx
The written portion of the research paper should be 9-11 pages in le.docx
 
The World since 1945Country Report- SAUDI ARABIA     Histo.docx
The World since 1945Country Report- SAUDI ARABIA     Histo.docxThe World since 1945Country Report- SAUDI ARABIA     Histo.docx
The World since 1945Country Report- SAUDI ARABIA     Histo.docx
 
The world runs on Big Data.  Traditionally, Data has been expressed .docx
The world runs on Big Data.  Traditionally, Data has been expressed .docxThe world runs on Big Data.  Traditionally, Data has been expressed .docx
The world runs on Big Data.  Traditionally, Data has been expressed .docx
 
the    1.The collaborative planning Methodology is the f.docx
the    1.The collaborative planning Methodology is the f.docxthe    1.The collaborative planning Methodology is the f.docx
the    1.The collaborative planning Methodology is the f.docx
 
The word stereotype originally referred to a method used by printers.docx
The word stereotype originally referred to a method used by printers.docxThe word stereotype originally referred to a method used by printers.docx
The word stereotype originally referred to a method used by printers.docx
 
The Value of Critical Thinking  Please respond to the followin.docx
The Value of Critical Thinking  Please respond to the followin.docxThe Value of Critical Thinking  Please respond to the followin.docx
The Value of Critical Thinking  Please respond to the followin.docx
 
The Value Chain Concept Please respond to the following·.docx
The Value Chain Concept Please respond to the following·.docxThe Value Chain Concept Please respond to the following·.docx
The Value Chain Concept Please respond to the following·.docx
 
The wealth and energy between 1880 and 1910 was a unique and dynamic.docx
The wealth and energy between 1880 and 1910 was a unique and dynamic.docxThe wealth and energy between 1880 and 1910 was a unique and dynamic.docx
The wealth and energy between 1880 and 1910 was a unique and dynamic.docx
 
The Value of Research in Social PolicyWhile research can be intere.docx
The Value of Research in Social PolicyWhile research can be intere.docxThe Value of Research in Social PolicyWhile research can be intere.docx
The Value of Research in Social PolicyWhile research can be intere.docx
 
The United States’ foreign policy until the end of the nineteenth ce.docx
The United States’ foreign policy until the end of the nineteenth ce.docxThe United States’ foreign policy until the end of the nineteenth ce.docx
The United States’ foreign policy until the end of the nineteenth ce.docx
 
The Value Chain Concept Please respond to the followingDescribe.docx
The Value Chain Concept Please respond to the followingDescribe.docxThe Value Chain Concept Please respond to the followingDescribe.docx
The Value Chain Concept Please respond to the followingDescribe.docx
 

Recently uploaded

How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxMichaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxRugvedSathawane
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfJerry Chew
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MysoreMuleSoftMeetup
 
PS-Policies-on-Enrolment-Transfer-of-Docs-Checking-of-School-Forms-and-SF10-a...
PS-Policies-on-Enrolment-Transfer-of-Docs-Checking-of-School-Forms-and-SF10-a...PS-Policies-on-Enrolment-Transfer-of-Docs-Checking-of-School-Forms-and-SF10-a...
PS-Policies-on-Enrolment-Transfer-of-Docs-Checking-of-School-Forms-and-SF10-a...nhezmainit1
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxMichaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
PS-Policies-on-Enrolment-Transfer-of-Docs-Checking-of-School-Forms-and-SF10-a...
PS-Policies-on-Enrolment-Transfer-of-Docs-Checking-of-School-Forms-and-SF10-a...PS-Policies-on-Enrolment-Transfer-of-Docs-Checking-of-School-Forms-and-SF10-a...
PS-Policies-on-Enrolment-Transfer-of-Docs-Checking-of-School-Forms-and-SF10-a...
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 

Unit it designing structured programs (a) Gross pay = Hours worked t.docx

  • 1. Unit it designing structured programs (a) Gross pay = Hours worked times Rate (b) F.L.C.A. (Social Security and Medicare taxes) = 7.65% of Gross pay (c) Net pay = Gross pay - F.I.C.A. write a program to print out payroll information for each employee. The problem definition is shown in Figure 7.4. Interactive processing, For each customer loan approved at Dollars-And-Sense Bank do play a line indicating the monthly payment for that customer. Enter the following information from the keyboard: CUSTOMER NAME: AMT OF LOAN (PRINCIPAL): YEARLY INTEREST RATE: LENGTH OF LOAN (IN YEARS): See the example on the next page. Problem definition for programming Assignment 2. what are the monthly payments on a twenty-year loan of $20, 000 at 12%? P = 20000 R = .12 N = 20 years Monthly payment = 20000 * (.12/12) - (20000 * (.12/12)/(1 - (1.01)^240)) = 20000 * (.01) - (20000 * .01/(1 - (1.01)^240)) = 200 - (-20.22) = 220.22 Round monthly payments to the nearest penny. Design the interactive screen displays yourself. Solution Program: import java.util.Scanner; class payroll{ { public static void main(string[] args) { Scanner input=new Scanner(System.in);
  • 2. system.out.println("enter employee name:"); string employee=input.next(); system.out.println("Enter number of hours worked:"); double hours=input.nextDouble(); system.out.println("enter hourly pay rate:"); double pay=input.nextDouble(); double gross_pay=pay*hours; system.out.println("enter federal tax withholding rate:"); double fedtax=input.nextDouble(); double fedtaxr=fedtax*0.20; system.out.println("enter social security and medicine tax :"); double social_security=input.nextDouble(); double social_security=statetax*0.20; double deductions=fedtaxer; double total _pay=gross_pay - deductions; system.out.println("employee name:"+employee); system.out.println("hours worked:"+hours); system.out.println("enter payrate:"+pay); system.out.println("enter gross pay:"+gross_pay); system.out.println("Deductions"); system.out.println("t Federal withholding(20.0%):"+fedtaxr); system.out.println("t State withholding (9.0%)"+statetaxr); system.out.println("t Total deductions: "+deduction); system.out.println("Total pay:" + total_pay);
  • 3. } }