Write a Java class (program) that reads from the user a real number represents the length of the hypotenuse of an isosceles right triangle.

Introduction to Programming with Java

[Pin It]

Introduction to Programming with Java need it in 5 hrs

Need this assignment at 15:30 hrs Kenyan Time

format APA

Course level College

Subject Technology

pages 3 ( or 825 words Minimum)

Spacing Double Spacing

sources 2

Introduction to Programming with Java

Question One: [10 marks]

a. Write a Java class (program) that reads from the user a real number represents the length of the

hypotenuse of an isosceles right triangle. Then calculates and prints the area of this triangle (rounded to 2

decimal places). [9 marks] Hint: You can search the internet to discover how to calculate the area of an

isosceles right triangle when you only know the length of its hypotenuse.

b. Give the exact output of your program. Provide a snapshot representing the exact output of any value from

your choice. [1 mark]

Question Two: [24 marks]

a. For any quadratic equation: , there are zero, one or two real solutions. Write a Java application that

reads from the user 3 integers represent the values of the coefficients of a quadratic equation (a, b and c).

Then computes and prints how many real solutions for the given equation. In addition, if the user enters 0 as

the value of a, a suitable error message should be displayed and nothing should be computed. [20 marks]

Hints:

ï‚· It is not required to compute the real solutions. Just compute number of them.

ï‚· You can search the internet to discover when a quadratic equation has zero, one or two real solutions.

b. Give the exact output of your application. Give 4 snapshots representing the exact output of 4 different

cases (i.e., when the number of real solutions is 0, 1, 2 and when the user enters 0 as the value of a). [4

marks]

3

Question Three: [21 marks]

a. Assume that a tutor created a 5-mark quiz for his students and he wants to know the mode of students’

scores in the quiz. Write a Java program that reads from the user 6 lines of input. Each line includes 2

integers: a score and number of students who got this score. The program should compute and print the mode of

students’ scores (You can assume that there is always a unique answer) [19 marks]

b. Give the exact output of your program. Provide a snapshot representing the exact output of any values from

your choice. [2 marks]

Hints:

ï‚· You can search the internet to discover how to compute the mode.

ï‚· The input and output of your program should be exactly as in the sample below

Sample Input and Output: Please, insert the scores and the frequency of each score: 0 1 1 0 (This line means

that no student got 1 out of 5) 2 6 3 9 4 7 (This line means that 7 students got 4 out of 5) 5 4 The mode of

students’ scores is 3

Question Four: [25 marks]

a. Write a Java program that read your first name and the first names of your friends. Then the program

should compute and prints the percentage of your friends whose first names start with the same letter as your

first name (rounded to 2 decimal places). Enter the word “stop†to stop the program. [24 marks]

b. Give the exact output of your program. Provide a snapshot representing the exact output of any values from

your choice. [1 marks]

Hint:

The input and output of your program should be exactly as in the sample below

Sample Input and Output: Please, insert your first name: Ahmad Please, insert the first names of your friends

(enter “stop†to stop your program): Hisham Ali Nader stop 33.33% of your friends their first names start

with the same letter as your first name

Explanation: There are 3 friends, 1 of them his first name starts with the same letter as your first name. 1

out of 3 represents 33.33% of your friends ( ).

End of Assessment

Input from the user

You should write your first name here

Explain the legal issues involved and reference specific pages from your readings to support your conclusions.

Health Insurance Costs Versus Privacy

Computers by Design (CBD) is a small computer systems sales and service business located in the Midwest. The owners of CBD, Abigail, Megan, and Andy, are concerned about rising health care insurance costs. Abigail has researched the issue, and has learned that CBD can better control insurance costs by only hiring people who are less likely to make claims—the healthy, the fit, and the nonaddicted. She has proposed to the other owners a two-step program.

First, CBD would conduct preemployment health screenings, including voluntary genetic testing. It would not hire anyone who smokes or uses drugs, has any genetically linked propensity for an expensive disease, or is not physically fit.

The second step would be to give every employee a 12-month notice to stop using tobacco and nonprescription drugs and to submit to random, monthly testing. Employees would also be placed on a fitness and weight control plan. Professional assistance would be available at no cost to help them stop using tobacco and drugs and to help them meet weight and fitness targets. Employees who meet the goals would be allowed to stay with CBD. Those who refuse would be given a severance package and discharged.

Post a 750-word response that answers the following questions:

What are the legal issues involved here? Which of the measures proposed by Abigail are legal, and which are not? Explain the legal issues involved and reference specific pages from your readings to support your conclusions.

To what extent is an industry you are familiar with unionized and engaged in collective bargaining? Is the industry comprised of nonunion employees, unionized and nonunionized employees, or unionized employees? Explain why the industry does or does not have collective bargaining, and discuss what trends might tend to change the current situation in the near future. Be sure to incorporate both legal principles and relevant labor economics facts in your response. Provide references as appropriate.

Select one of the three areas of employment law to answer the question that follows:
Occupational Safety and Health
Employee Retirement Income Security Act
Fair Labor Standards Act

Considering one of the aforementioned entities, what are the differing responsibilities of the finance managers, first-line managers, and human resource managers with regard to your selected area

Explain the impact on the price of the product and your decision on whether or not to buy the product.

You’ve been debating on making a purchase for yourself.  This is a product you’ve wanted for a while, but one that requires budgeting because you will be making monthly payments.

Select a product in which the demand for the product is clearly affected by the strength or weakness of the overall economy such as new homes, cars, appliances, smart phones, etc.

Write a 1,050- to 1,400-word paper in which you address the following:

  • Identify and define two economic indicators that reflect the strength of the economy (e.g. real GDP, unemployment rate, inflation rate, interest rate, housing starts, etc.).
  • With these economic indicators in mind, how has the economy affected the demand for and supply of your selected product over the last 2 years?
  • What was the impact on the supply of the product and the impact on the demand for the product?
  • Explain the impact on the price of the product and your decision on whether or not to buy the product. 
  • Include responses to the following:
    • How might you apply what you learned about supply and demand to your work place or your understanding of the product you are considering purchasing?
    • How do the concepts of macroeconomics help you understand the factors that affect shifts in supply and demand on the price of the produc

Identiffy and analyzes the most important external environmental factor in the remote, industry, and external operating environments.

Complete the external environmental scan for your organization.

Perform an internal competitive environmental scan for your organization.

Write a summary of no more than 1,400 words that does the following:

Identifies and analyzes the most important external environmental factor in the remote, industry, and external operating environments
Identifies and analyzes the most important internal strengths and weaknesses of your organization: include an assessment of the organization’s resources

Assesses the organization’s competitive position and possibilities
Analyzes the structure of the organization and how this affects organizational performance

Describe a circumstance when you would use a purchase panel, and explain why it is a good choice in that situation.

Question 6

Why is it important to minimize total error rather than any particular source of error? What potential sources of error are of most concern to you, and why?

Question 7

What are the relative advantages of purchase and media panels over surveys? Describe a circumstance when you would use a purchase panel, and explain why it is a good choice in that situation.

Question 8

Visit www.census.gov/compendia/statab/rankings.html or www.census.gov and use State Rankings and Vital Statistics to identify the top six states for marketing products to the elderly. Report your results and the research process you used. How reliable do you think this data is?

Describe each market structure discussed in the course (perfect competition, monopolistic competition, oligopoly, and monopoly) and discuss two of the market characteristics of each market structure.

You have been hired as a consultant by your local mayor to look at the various market structures. Your role is to provide analysis and answers to these important questions that will help the mayor understand the structures of many of the businesses in his city:

Describe each market structure discussed in the course (perfect competition, monopolistic competition, oligopoly, and monopoly) and discuss two of the market characteristics of each market structure.
Identify one real-life example of a market structure in your local city and relate your example to each of the characteristics of the market.
Describe how high entry barriers into a market will influence long-run profitability of the firms.
Explain the competitive pressures that are present in markets with high barriers to entry.
Explain the price elasticity of demand in each market structure and its effect on pricing of its products in each market.
Describe how the role of the government affects each market structure’s ability to price its products.
Discuss the effect of international trade on each market structure.

Your paper will need to include a title page, a reference page, and in-text citations properly formatted according to the APA style guide. Also, your content should be eight to ten pages, which does not include your reference or title page. You will need to include at least five scholarly sources from the Ashford Library in your paper as part of your research to support your analysis.

What is the role of Congress in settling the concerns that arise with accounting firms and their clients?

Using the Library and the Internet, identify a publically held multinational company of your choice. Research its filings to the SEC, particularly the 10-K and 10-Qs. Also, examine its annual report online. You will then prepare an APA research paper including the follow elements:

What assumptions is the financial reporting model based on?
What principles support the financial reporting model?
Who oversees the accounting profession?
What is the role of Congress in settling the concerns that arise with accounting firms and their clients?
Describe how the annual report differs from the 10-K. What is contained in the annual report that is not in the 10-K and vice versa.
How does the 10-K report differ in content from the 10-Q? What is the reason for the difference?
Describe 2 disclosures in the 10-K that were surprising or interesting to you? Why were they interesting or surprising to you?

Submitting your assignment in APA format means, at a minimum, you will need the following:

Title page: Remember the running head and title in all capital letters.
Abstract: This is a summary of your paper, not an introduction. Begin writing in third-person voice.
Body: The body of your paper begins on the page following the title page and abstract page, and it must be double-spaced between paragraphs. The typeface should be 12-pt. Times Roman or 12-pt. Courier in regular black type. Do not use color, bold type, or italics except as required for APA level headings and references. The deliverable length of the body of your paper for this assignment is 3–4 pages. In-text academic citations to support your decisions and analysis are required. A variety of academic sources is encouraged.
Reference page: References that align with your in-text academic sources are listed on the final page of your paper. The references must be in APA format using appropriate spacing, hang indention, italics, and upper- and lower-case usage as appropriate for the type of resource used. Remember, the reference page is not a bibliography, but it is a further listing of the abbreviated in-text citations used in the paper. Every referenced item must have a corresponding in-text citation

What are the advantages and drawbacks for organizations using social media to communicate with various employees, customers, or the global communities?

Read and respond to a case study to demonstrate your understanding of, and ability to apply, the most important concepts of the module, especially regarding the potential pitfalls of communication media.

review a case study of Twitter in the 9th edition of the course textbook.

In an integrated essay, analyze the case from the perspective of a business organization, providing support for your analysis by replying to each of the following questions:

  1. What are the advantages and drawbacks for organizations using social media to communicate with various employees, customers, or the global communities?
  2. How do communication barriers surface when using social media versus using traditional media?
  3. What specific steps should managers take to be sure they communicate effectively when using social media?
  4. What, if any, rules or policies should business organizations implement for employees using social media after office hours? What types of rules or policies do you think would be necessary? Be as specific as possible.
  5. What communication barriers might a manager encounter when using social media to create an organizational internship program? From your recent readings and experiences, what guidelines could you suggest for managers and organizations?

Your well-written paper should meet the following requirements:

  • 3-4 pages in length
  • Formatted according to APA requirement

  • Cite a minimum of two scholarly sources,

Write clearly and logically, as you will be graded on content, analysis, and your adherence to the tenets of good academic writing, which should be succinct where possible while also exploring the topics appropriately. Remember that you can always improve your work by providing support from outside scholarly sources, which help both to bolster your own assertions and supplement your ideas

Discuss two (2) international events involving the US military from the past five (5) years that can be traced back to a foreign policy created after the Civil War.

You have already developed a thesis statement and developed an outline in which you explored two (2) real-life international incidents from the past five (5) years involving the United States as they received an elevated status as a world power. Now you will develop the final paper in which you explore your main points in detail.

Write a three to five (3-5) page paper in which you:

Introduce your paper with your previously crafted thesis statement.
Discuss two (2) international events involving the US military from the past five (5) years that can be traced back to a foreign policy created after the Civil War.
Discuss three (3) aspects of US history since 1865 that has led to the US’s rise as a world super power policeman.
Identify three to five (3-5) international incidents since World War II where America has taken on a policing role.
Determine three to five (3-5) driving forces that fueled international policy decisions involving the international incidents you outlined previously. (Consider treaties, exit strategies, elections, wars, etc.)
Use at least three (3) academic references besides or in addition to the textbook. Note: Wikipedia and other Websites do not qualify as academic resources.

Your assignment must follow these formatting requirements:

Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions.
Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length.

The specific course learning outcomes associated with this assignment are:

Analyze the rise of the United States to a world “superpower” and how that status has shaped its internal developments in recent decades.
Recognize the major turning points in American history since the Civil War.
Use technology and information resources to research issues in contemporary U.S. history.
Write clearly and concisely about contemporary U.S. history using proper writing mechanics.