SlideShare une entreprise Scribd logo
1  sur  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);
}
}

Contenu connexe

Similaire à 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 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
 
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
 
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
 

Similaire à 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 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
 
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
 
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
 

Plus de 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
 

Plus de 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
 

Dernier

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 

Dernier (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 

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