ࡱ> WYV'` 9bjbj 8<R 8,t8h(%8'8'8'8'8'8'8$:hv<K8K8S`8"""6%8"%8""a4@5 ?-FP 47$v8085<w!<(55<I6 "GxK8K8S"^8  Programming Concepts for Mechanical Engineers On Death and TaxesTitle: Tax Calculator Problem: Florida citizens pay the federal income tax, social security tax and the Medicare tax. Federal Income Tax: According to the Internal Revenue Service, a single status US citizen would have paid 2007 federal income taxes according to the following chart. If taxable income isover-- But not over-- The tax is: $0 $7,825 10% of the amount over $0 $7,825 $31,850 $782.50 plus 15% of the amount over 7,825 $31,850 $77,100 $4,386.25 plus 25% of the amount over 31,850 $77,100 $160,850 $15,698.75 plus 28% of the amount over 77,100 $160,850 $349,700 $39,148.75 plus 33% of the amount over 160,850 $349,700 no Read the example carefully: If you made $95,000, your taxes would be 0.28*(95000-77100)+15,698.75 Social Security tax: In 2007, this was 6.2% on income up to $97,500. Any part of the income above $97,500 is not taxed for social security. Medicare tax: In 2007, this was of 1.45% on all income. Assume all income is taxable. Specifications: 1. You are going to write your own MATLAB function called tax_calculator with the form function [fedtax, sstax, meditax,totaltax]=tax_calculator(income) where income is the persons income fedtax is the federal tax sstax is the social security tax meditax is the Medicare tax. This Mfile needs to be saved as tax_calculator.m Then you will write another MFile called tax_test.m that uses the MATLAB function tax_calculator to calculate the taxes based on a persons income. 2. Write a pseudo-code for the function tax_calculator that calculates the three taxes rounded off to the nearest dollar and the total tax based on the persons taxable income. 3. Input the income of the person via the input command when you run the tax_test.m Mfile and output the federal tax, social security tax, Medicare tax, and the total tax. Display the inputs and the outputs by using the fprintf command complete with explanation and proper format of each input and output. 4. Run the tax_test.m program for the following incomes $32,000 $85,000 $169,000 5. What you need to submit Name, Section Number and Pseudo code on a separate page Mfile of the function tax_calculator on a separate page (See sample handout for format) Mfile where you are using the function tax_calculator printing the inputs and outputs (See sample handout for format) Separate Command Window output for each income. Each command window output should only have your name, section number, group number, income, the three taxes and the total tax. Put comments in the two MFiles as given in sample handout.      FILENAME tax_calculator.doc  PAGE 1 ./24ABCHIYZ[bcem  ' * + , b d e f ; < { | ƿٱ٭٩ٝhv"6B*CJ\aJph333hv"CJaJ hv"5\hbhv"hmoUhVShx`hlhl>* hnaJ hn5aJhn56aJ hlaJhnhl hn56hnCJaJ hl5\ hn5\ hn5,./BCZYF$Ifgdll\zkd$$Ifed*Il]&! t0`'6344 labit*Ip ytv"$$Ifa$gdll'$$Ifa$gdll'R28Z[e f $$Ifa$K$$IfgdVSl\$Ifgdll\h$If`hgdll\ g___$IfK$kdv$IfK$L$4F $06    34ab ytv" h```$IfK$kd:$IfK$L$F $06    34ab ytv"   ; h```$IfK$kd$IfK$L$F $06    34ab ytv"; < D M { h```$IfK$kd$IfK$L$F $06    34ab ytv"{ | h```$IfK$kd}$IfK$L$F $06    34ab ytv" h```$IfK$kd>$IfK$L$F $06    34ab ytv" 0 1 jOO4$-DIfM gdl$-DIfM gdVSlkd$IfK$L$F $06    34abytv" $ & / 1 D F L M P T W X [ ` f q    ) 0 L Q c ÿÿxqx hi\] h5w\]h5wh5w\]hn56\]hl56\]hlhl5 hl5 hl>*hlhVShv"hmoUhlhlhl>*hv"6B*CJ\aJph333#hnh6B*CJ\aJph333&hv"hv"56B*CJ\aJph333)1   ) ! > o p $If[$\$gdXl\$If[$\$^gdil\$If[$\$gdll\p$-DIfM ^pgdllc q 0 8 > ^ n o .< "-0¾ƮƉ}w hXaJ hlaJ h}AaJhXhX6hihXhn hn\]hn56\]h5w5\]hXhl6hlh}Ah5w hlh5wh5wh5w\] hX\]hXhX6\] h5w\]hXh5w6\]-p &.6@A\}} & F$Ifgd5wl\$Ifgdll\ & F$Ifgd5wl\$IfgdXl\$$Ifa$gdll\$If[$\$gdll\0BLPZcf&()019:>ABABab+1MNOPQRSUVXY[\^_ijĽ hnCJjhnCJUh9jh9Uhnh}ACJaJ h}A56hnCJaJ h}Ah5wh5whlhbhX hX6hXh}A6h}A hXaJ hbaJ:bNOPo\$Ifgdll\zkd$$Ifed*Il]&! t0`'6344 labit*Ip ytv" & F$Ifgd5wl\PQRTUWXZ[]^0123}{{{{{{{{y{{{ed*Igdlzkd6$$Ifed*Il]&! t0`'6344 labit*Ip ytv"j|}%&,-./0129俻h9hnhu0JCJmHnHuhn0JCJjhn0JCJU hnCJjhnCJUhKoCJmHnHu 3456789ed*Igdl61h/R :pi/ =!`"@#`$`% t$$Ifed*I!vh5`'#v`':Vl t`'65!/ ait*Ip ytv"$IfK$L$!vh5 55#v #v#v:V 406,5/ 34ytv"$IfK$L$!vh5 55#v #v#v:V 06,5/ 34ytv"$IfK$L$!vh5 55#v #v#v:V 06,5/ 34ytv"$IfK$L$!vh5 55#v #v#v:V 06,5/ 34ytv"$IfK$L$!vh5 55#v #v#v:V 06,5/ 34ytv"$IfK$L$!vh5 55#v #v#v:V 06,5/ 34ytv"$IfK$L$!vh5 55#v #v#v:V 06,5/ 34ytv"t$$Ifed*I!vh5`'#v`':Vl t`'65!/ ait*Ip ytv"t$$Ifed*I!vh5`'#v`':Vl t`'65!/ ait*Ip ytv"@@@ NormalCJ_HaJmH sH tH J@J Heading 1$$dhx@&a$5]N@N Heading 2$$hd@@&^ha$5\D@D Heading 3$$@&a$ 5CJ\>@> Heading 4$dh@&aJDA@D Default Paragraph FontRi@R  Table Normal4 l4a (k@(No List4U@4 Hyperlink >*phDV@D FollowedHyperlink >*ph4 @4 Footer  !2B@"2 Body TextaJ@3 Table Web 3e:V03aj_HmH sH tH ph.)@A. Page NumberH@RH X80 Balloon TextCJOJQJ^JaJB^@bB l Normal (Web)dd[$\$9 9 <./BCZ[ef;<DM{|01)!>op&.6@A\b  N O P Q R T U W X Z [ ] ^ 0 1 2 3 4 5 6 7 : 000 0*I @0@0@0@0000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00@00000@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0 0 0 0@0@0 0 0 0 0 0 @0*I 0 0*I 0*I@000g@000g@000g@000g@0@000g00000006/BCZ[f;<DM{| N O P Q : 004wp000#I00 00$00#00#0#0 0Y0Y0Y0 0Y0Y0Y0 0Y0Y0Y0 0Y0Y0Y0 0Y0Y0Y0 0 Y0 Y0 Y0 0  0  0  0 0#0 w0$00 00 00203h0"0#(M@00*I00   c 0j9 Z ; { 1 p P39 8 *!H ,2$FR;o l## AA@0(  B S  ?9     t      t   l  ̢ T! !  D !  ee  -BP` :      ll.CQa :  9*urn:schemas-microsoft-com:office:smarttagsplace9*urn:schemas-microsoft-com:office:smarttagsStateB *urn:schemas-microsoft-com:office:smarttagscountry-region>*urn:schemas-microsoft-com:office:smarttags PersonName  cq!(^n.<  ! + 1 R R T T U U W X Z [ ] ^ 1 2 : !( R R T T U U W X Z [ ] ^ 1 2 : 33/BCY<M|( &AR R T T U U W X Z [ ] ^ / 1 2 : R R T T U U W X Z [ ] ^ 1 2 : x$:*Z0> =AܴQVlJ\Y q0(=qzz"R^`CJOJQJo(^`CJOJQJo(opp^p`CJOJQJo(@ @ ^@ `CJOJQJo(^`CJOJQJo(^`CJOJQJo(^`CJOJQJo(^`CJOJQJo(PP^P`CJOJQJo(h ^`o(hH)h ^`hH.h pLp^p`LhH.h @ @ ^@ `hH.h ^`hH.h L^`LhH.h ^`hH.h ^`hH.h PLP^P`LhH. ^`o(hH) hh^h`hH. 8L8^8`LhH. ^`hH.   ^ `hH.  L ^ `LhH. xx^x`hH. HH^H`hH. L^`LhH.h ^`hH.h ^`hH.h pLp^p`LhH.h @ @ ^@ `hH.h ^`hH.h L^`LhH.h ^`hH.h ^`hH.h PLP^P`LhH.^`CJOJQJo(^`CJOJQJo(opp^p`CJOJQJo(@ @ ^@ `CJOJQJo(^`CJOJQJo(^`CJOJQJo(^`CJOJQJo(^`CJOJQJo(PP^P`CJOJQJo(h^`o()h ^`hH.h pLp^p`LhH.h @ @ ^@ `hH.h ^`hH.h L^`LhH.h ^`hH.h ^`hH.h PLP^P`LhH.^`o() ^`hH. pLp^p`LhH. @ @ ^@ `hH. ^`hH. L^`LhH. ^`hH. ^`hH. PLP^P`LhH.:(=qY q =AZ0VlJx a         a        h5        h5        56 =.R hhg}4H h3 }4b|A*I=.R*'b@*'bgmv('i^P +!v"X80u};tUAhAjImoUr}ZY[>O\x`2f;fh gnKou5wd/9X}A]!OinblVSl$`BCf;<DM{|N O P Q : @9 @UnknownGz Times New Roman5Symbol3& z Arial5& zaTahoma?5 z Courier New;Wingdings"1hfb چ9%``4dM M  2QLX?u};2Deflection of a beam assignmentkaw Autar K Kaw(       Oh+'0  , L X d p| Deflection of a beam assignmentkaw Normal.dot Autar K Kaw26Microsoft Office Word@z@4g\B@@ )FP՜.+,0 hp|  USFM '  Deflection of a beam assignment Title  !"#$%&()*+,-./0123456789:;<=>?@ABCDEGHIJKLMOPQRSTUXRoot Entry F8F-FPZData 1Table'"=WordDocument8<SummaryInformation(FDocumentSummaryInformation8NCompObjq  FMicrosoft Office Word Document MSWordDocWord.Document.89q