/* Alias: Ydahal1 Name: Yadhap Dahal CRN: 58053 File Name: taxCalculator.java Description: this program calculates the tax based on yearly earning and martial status and dependency */ import java.util.Scanner; public class taxCalculator{ public static void main(String [] args){ //Import scanner Scanner input = new Scanner(System.in); // display code for filing status and prompt user to enter their status System.out.print( "Enter 0, if you are filing Single " + "\nEnter 1, if you are married or qualifying widower" + "\nEnter 2, if you are married but saperated " + "\nEnter 3, if you are filing as a head of household" + "\n \nStatus:" ); int status = input.nextInt(); //Prompt user to enter annual taxable income System.out.print("Enter your annual income: "); double income = input.nextDouble(); //variable double tax = 0; //If user status is 0 if (status == 0) { if (income <= 8350) tax = income * 0.10; else if (income <= 33950) tax = (8350 * 0.10 + (income - 8350) * 0.15); else if (income <= 82250) tax = ((8350 * 0.10) + ((income - 8350) * 0.15) + ((income - 33950) * 0.25)); else if (income <= 171550) tax = 8350 * 0.10 + (income - 8351) * 0.15 + (income - 33950) * 0.25 + (income - 82250) * 0.28; else if (income <= 372950) tax = 8350 * 0.10 + (income - 8351) * 0.15 + (income - 33950) * 0.25 + (income - 82250) * 0.28 + (income - 171550) * 0.33; else tax = 8350 * 0.10 + (income - 8351) * 0.15 + (income - 33950) * 0.25 + (income - 82250) * 0.28 + (income - 171550) + (income - 372950)* 0.35 + (income - 372950) * 0.35; } //If user status is 1 else if (status == 1){ if (income <= 16700) tax = income * 0.10; else if (income <= 67900) tax = (16700 * 0.10) + (income - 16700)* 0.15; else if (income <= 137050) tax = (16700 * 0.10) + (income - 16700)* 0.15 + (income - 67900) * 0.25; else if (income <= 208850) tax = (16700 * 0.10) + (income - 16700)* 0.15 + (income - 67900) * 0.25 + (income - 137050) * 0.28; else if (income <= 372950) tax = (16700 * 0.10) + (income - 16700)* 0.15 + (income - 67900) * 0.25 + (income - 137050) * 0.28 + (income - 208850) * 0.33; else if (income < 372950) tax = (16700 * 0.10) + (income - 16700)* 0.15 + (income - 67900) * 0.25 + (income - 137050) * 0.28 + (income - 208850) * 0.33 + (income - 372959) * 0.35; } // If status is 2 else if (status == 2){ if ( income <= 8350) tax = income * 0.10; else if ( income <= 33950) tax = (8350 * .10) + (income - 8350) * 0.15; else if ( income <= 68525) tax = (8350 * .10) + (income - 8350) * 0.15 + (income - 33950) * 0.25; else if ( income <= 104425) tax = (8350 * .10) + (income - 8350) * 0.15 + (income - 33950) * 0.25 + (income - 68525) * 0.28; else if ( income <= 186475) tax = (8350 * .10) + (income - 8350) * 0.15 + (income - 33950) * 0.25 + (income - 68525) * 0.28 + (income - 104425) * 0.33; else tax = (8350 * .10) + (income - 8350) * 0.15 + (income - 33950) * 0.25 + (income - 68525) * 0.28 + (income - 104425) * 0.33 + (income - 186475) * 0.35; } // If status is 3 else if (status == 3){ if (income <= 11950) tax = income * 0.10; else if (income <= 45500) tax = (11950 * 0.10) + (income - 11950) * 0.15; else if (income <= 117450) tax = (11950 * 0.10) + (income - 11950) * 0.15 + (income - 45500) * 0.25; else if (income <= 190200) tax = (11950 * 0.10) + (income - 11950) * 0.15 + (income - 45500) * 0.25 + (income - 117450) * 0.28; else if (income <= 372950) tax = (11950 * 0.10) + (income - 11950) * 0.15 + (income - 45500) * 0.25 + (income - 117450) * 0.28 + (income - 190200) * 0.33; else tax = (11950 * 0.10) + (income - 11950) * 0.15 + (income - 45500) * 0.25 + (income - 117450) * 0.28 + (income - 190200) * 0.33 + (income - 372950) * 0.35; } // if user enters invalid status else System.out.print( "Invalid Status, Note :- Status should be either 0, 1, 2 or 3"); // Results System.out.print( "Your Total Tax is: " + (int) (tax *100)/100.0 + "\nYour income after tax is " + (int)((income - tax)*1000)/100.00) ; } }
The Young Miner
Thursday, October 15, 2015
Saturday, October 11, 2014
Wednesday, October 1, 2014
Ling Galleries
Howard Ling is a famous artist with two galleries in
Hawaii. Many of his paintings and prints are sold to tourists who visit Hawaii
from Hong Kong and Japan. He paints 6–10 new paintings a year, which sell for
$50,000 each. The real money comes from
the sales of prints; a popular painting will sell 1,000
prints at a retail price of $1,500 each. Some
prints sell very quickly, while others do not. As an artist, Howard paints he
wants to paint. As a businessman, Howard
also wants to create art that sells well. Howard visits each gallery once a
Kong and one in Tokyo How can the Internet help
Howard with the two new galleries month to talk with clients, but enjoys
talking with the gallery staff on a weekly basis to learn what visitors say
about his work and to get ideas for future work. Howard has
Decided to open two new galleries
Howard can benefit
form Internet in following ways:
- Instead of physically vising his clients in Hong Kong and Tokyo, Howard can communicate with them using E-mail or have a face-to-face conversation using Skype.
- Howard can use Internet to set up a website where he can post his paintings and ask people who buy his paintings to leave feedback. Howard will get first hand feedback from his real customers, which is better then getting feed back from the gallery staffs.
- Howard can advertise about his galleries using Internet. Internet can help him reach his targeted customers from any corner of the world.
- Howard can connect with his customers to build relationship and also to increase his business by using social networking sites.
- Howard can research what kind of paintings people are buying in what part of the world. This will help him decide weather to display his painting in Hawaii, Hong Kong or Tokyo.
- Howard can use Internet to price his paintings. He can do so by looking the price of his competitors at that particular area.
- Howard can use Internet to provide contact information of his galleries, opening hours and driving directions to his customers.
- Howard can use Internet to increase significance of his paintings. For example: he can post the pictures of his paintings on the galleries’ website and caption or describe them with stories or things he want people do not know about it. People will be willing to pay more for paintings if they carry special story or history.
- Howard can sell his paintings to any person who is willing to buy, but is not able to physically come to his gallery. His customer can order using Internet, transfer money using Internet and all Howard has to do is ship the painting to his customer.
- Howard can connect all of his 3 galleries online. If the customer from Tokyo does not like paintings that are available in gallery at Tokyo, they can check Howard’s galleries’ in Hong Kong and Hawaii. Internet can help Howard retain his customers.
Alpha Corp
Iv. Alpha Corp
Alpha corp. is trying to decide the size of the connection
It needs to the internet. The company estimates that it will send and receive a
total of about 1000 emails per hour and that each email message is about
1500bytes in size. The company also estimates that it will send and receive a
total of about 3000 web pages per hour and that each page it about 40,000 bytes
in size.
- 1. Without considering transmission efficiency, how large an internet connection would you recommend in terms of bits per second (Assuming each bye is eight bits in length)?
- 2. Assuming they use a synchronous data link layer protocol with an efficiency of about 90% how large internet connection would you recommend?
- 3. Suppose Alpha wants to be sure that its internet connection will provide sufficient capacity the next two years. How large an internet connection would you recommend?
#s of email per hour = 1000
Size of 1 email = 1500 bytes
Size of 1000 emails = 1500*1000 =
1,500,000 bytes
1,500,000 bytes = 1,500,000 * 8 =
12,000,000 bits
#s of web pages per hour = 3000
Size of each web page = 40,000
bytes
Size of 3000 web pages = 3000 *
40,000 = 120,000,000 bytes
120,000,000 bytes = 120,000,000 * 8
= 960,000,000 bits
Alpha
Corp’s hourly data transmission is = (960,000,000 + 12,000,000) bits = 972000000
- 1. Recommended speed for Alpha Corps i.e. - 972000000/ (60 * 60)
- = 270000 bits per second
- or 270 kbps
- 2. If the Efficiency is 90%, I would recommend (0.9*270000)
- = 300,000 bits per second)
- or 300 kbps
- 3. For 2 years = 300,000 *60*60*24*365*2
- = 18,921,600,000,000 bits per second
- = 8921600000 Kbps
- = 2.3652 * 10^12 bytes
Tuesday, August 26, 2014
Persuasive presentation Analysis ( BCOM 3950 Carol Edelson's Class GSU )
Background:
The purpose of my presentation was to persuade the
Executives of T-mobile to let their employees telecommute. In order to
persuade I had my presentation organized into three parts: introduction, body
and the conclusion. I started my presentation explaining the Executives what
telecommute means, and also provided with the examples of some companies who
are currently letting their employees telecommute. I choose the indirect
approach to persuade my audiences. It is because I thought my audience might be
resistant or skeptical. In order to reduce any skepticism and to establish
creditability I decided to produce the facts in the beginning from some trusted
sources. I had two different data sets
to start my presentation with. One of the data was from United States Bureau of
Labor and the other was form Fortune Magazine. After introducing my topic I
explained my audiences the benefits of telecommuting. At the end I summarized
the benefits again.
Findings:
I watched the recording of my
presentation three times. First, I watched the recording with the sound muted,
to see how my gestures are. Secondly, I just listened the recording with my
eyes closed. I did this to analyze my pace, pronunciation, clarity and the
confidence in voice. Lastly, I watched
the recording with the audio on. When I was watching the recording for the
third time, I was focusing on whether my nonverbal elements are consistent with my message or not. Most Importantly, while
was watching the recording each time, I was also comparing it with my previous
presentations to see if there has been any improvement made.
·
In my previous presentation I was touching my
belt buckle a lot while speaking and I was touching my chin whenever I had to
think of a specific word. Also, I failed
utilize my space. I was working on these three things. I found out that there
have been improvements made. In my recent presentation I was not confined to
one place. I was walking and I did not touch my belt buckle or my chin.
·
I was also working to maintain my pace. I found
that there was only little improvement made. The presentation still seemed
rushed like the previous one. I also found that some words could be hard for my
audiences to understand if I do not maintain my pace. The presentation did not
seem to be evenly distributed. For
example: I spent most of my time introducing the topic and there was very
little time left for explaining the main points. I found that I should spend
more time explaining the main points to make the presentation effective.
·
Watching the recording I found that my nonverbal
elements were consistent with my message. The presentation did not sound like
it was memorized or canned. It sounded completely conversational. Depending upon what I was saying there was
variance in pitch, inflection and projection.
·
Citing data form trusted sources made the
presentation more credible.
Opportunities for improvement:
- To ensure the message is delivered as desired, I have to maintain my pace in future.
- In future while presenting, I have to prioritize my ideas and spend more time on the most important points.
Negative Message Email. (BCOM 3950 - Carol Edelson's Class )
From: ydahal1@buycostumes.com
Date: November 09, 2013
To: Chris@yahoo.com
Subject: Request for reimbursement
approved.
Dear Mr. King:
We would like to thank you for choosing BuyCostumes for your
costumes needs. Our goal is to provide our costume enthusiast customers like
you with the most complete selection, competitive prices, the best customer
service and pleasurable shopping experience.
We are genuinely sorry to hear that the Gorilla Blinky Eye
with Chest Costume you ordered was not delivered before your Halloween party as
you had expected. As soon as we received your email we did a research to find
out why that happened and also to insure that your issue is addressed promptly
and accurately. Our research revealed that you placed an order on Saturday, October
26th that is exactly five days before
Halloween. Your order was filled the next day at 5:00 am and was mailed to you with
the mailing priority of your choice i.e. Standard. Since our standard shipping requires three to
six days for delivery the costume was not delivered to you before Halloween. After
a careful analysis we are glad to inform that we will be able to provide you
with the full refund of $134.99 if the package is returned in its original
packaging. We would also like to inform that BuyCostumes offers a priority
shipping option, if you like to have your package delivered immediately in
future
We appreciate your business with us and would want to
continue fulfilling your costumes desire. As a courtesy we will send you a $20 off
BuyCoustomes coupon, which you can use when you purchase any item of your
choice from us.
Sincerely,
Your name
BuyCoustomes Inc
Manager, Customer Service.
(470) 331-3333
Subscribe to:
Posts (Atom)