Computer Science:Java.

Complete the code to counts the number of lines input by a user until the user enters the string ENDOFDATA (must be uppercase letters, no spaces) on a line by itself. Make sure you display the number of lines found. Use the nextLine() method of Scanner class to read entire lines of data. (Hint, this is like counting the number of integers entered, but reading Strings and using String comparison to check for equality).

String SENTINEL = “ENDOFDATA”;

Scanner keyboard = new Scanner(System.in);

System.out.println( “Enter lines of data or ” + SENTINEL + ” to quit” );

Math Problems :Statistics.

  1. The US Safety Administration report on pedestrian injuries in traffic accidents found the following statistics:

30.6% of the cases the victim was under 16 years old, in 34.9% the accident occurred at night, and 6.3% the victim was under 16 and the accident occurred at night.

Round answers to the nearest 10th of a percent.

What is the probability that the victim was under 16 or the accident occurred at night?

%

What is the probability that the victim was 16 or older and the accident occurred during the day?

%

 

 

  1. There are 9 red rocks, 6 white rocks, and 7 blue rocks in a sack.

Write all answers to the nearest 10th of a percent.

What is the probability of selecting a rock that is red?

What is the probability of selecting one red rock or one white rock?

What is the probability of selecting a rock, putting it back, and selecting another that are both blue?

What is the probability of selecting a rock, putting it down, and selecting another that are both white?

What is the probability of selecting a rock that is red, putting it down, and selecting another that is white?

 

 

  1. Write each of these answers to 4 significant digits.  You can use Scientific Notation for the Answer.

For example:  your decimal answer is 0.0000230567, multiply by 100 to get percent….0.00230567.  The four significant digits are 2305, thus for normal answer:  0.002305%, and for Scientific:  2.305E-3%

 

The probability of winning a game  is 12.7% for each attempt.

What is the probability that you will not win the game (one attempt)?

%

What is the probability that you will win the game 4 times in a row?

%

What is the probability of loosing at least once out of 4 times of playing this game?

%

What is the probability of loosing 4 in a row?

%

What is the probability of winning at least once when the game is played 4 times in a row?

%

 

 

  1. What is the probability that the two back tires will pop in the next 5-years?

**

**Write answers in Scientific Notation, for example   0.0000025% = 2.5E-6%  (notice that it is negative 6).  Be careful to change percent to a decimal before calculation and take the answer and change it back to a percent.

What is the probability that a tire will not pop in 5-years?

Round to the nearest 100th of a percent.

What is the probability that none of the tires pop in the next 5-years?

Round to the nearest 100th of a percent.

What is the probability that at least one tire pops in the next 5-years?

Round to the nearest 100th of a percent.

Learner Differences.

Prior to engaging in this discussion, please review Chapters 5 and 6 from the Applied Metacognition e-book, the Bloom’s Taxonomy video, and any relevant Instructor Guidance.  Respond to at least two of your classmates by Day 5 (Saturday).  Comment on at least one of your classmates’ responses to your initial post by Day 7 of the week. Be sure to respond to your instructor’s comments to you in this forum by Day 7.

For this discussion, you will produce a creative video presentation using PowerPoint and Screenr to demonstrate your knowledge about learning theory and how it applies to your own learning processes. Creating this presentation will also allow you to practice using the technology you will utilize for your final presentation in Week Five. Your presentation must be a minimum of 2 ½ minutes long, and it may not exceed 5 minutes. Thus, you will need to be effective as you showcase the required material.

To begin, create a script document and a PowerPoint presentation.  The script will assist you in creating a video presentation that will not exceed the five-minute time limit allowed for your screencast. The PowerPoint presentation should be a minimum of six content slides and a reference slide for any information taken from your resources. The content slides must include the elements listed below. For each of these areas, consider how/if they affect your potential to learn new things. Be certain to base your arguments on the topics you are learning about in this course and share these insights in your screencast presentation.

Required elements:

 

  • Your background experiences including your first memory
  • Your hobbies and passions
  • Your daily routine
  • Your frustrations and emotional buttons
  • Your believed intelligence (refer to multiple intelligences) and efficacy in learning online
  • Your first memories of both a tragedy and a victory

Click here to view a sample slide.

Using Screenr.com or screencast-o-matic.com, you will create a screencast of your presentation. Please include a title for your presentation in the description box when you publish your screencast.  Refer to the instructionsin each online program for assistance. Do not simply read your slides. Rather, be creative in the creation of your script to forge a compelling argument. Although the reference slide must be present, reading through the reference slide will not count toward your two-and-a-half-minute minimum time requirement for the presentation.

For this discussion, you will produce a creative video presentation using PowerPoint and Screenr or Screencast-O-Matic to demonstrate your knowledge about learning theory and how it applies to your own learning processes. Creating this presentation will also allow you to practice using the technology you will utilize for your final presentation in Week Five. Your presentation must be a minimum of 2 ½ minutes long, and it may not exceed 5 minutes. Thus, you will need to be effective as you showcase the required material.

Copy and paste the URL link in the discussion forum and write two to three sentences describing the project development process and how you were able to successfully apply learning theory to your own life and behaviors.

Guided Response: Read several of your classmates’ posts and respond to at least two of your classmates by Day 5 (Saturday).  View your peers’ presentations. Comment on the aspects you found to be creative or helpful in their presentations. What differences in the ways we learn seem to stand out to you the most? Why would it be difficult to train or counsel people with diverse learning experiences and expectations? Continue to monitor this discussion through 5:00 p.m. (Mountain Time) on Day 7 of the week. Comment on at least one of your classmates’ responses to your initial post. Be sure to respond to your instructor’s comments to you in this forum by Day 7. Your grade will reflect both the quality of your initial post and the depth of your responses.

 

Religion.

Read the Gospel of Mark as if reading a story. Pay attention to the characters, the plot, and the ways the author makes his points. After you’ve read it, please respond to the following questions…

1. Provide a broad summary of the gospel’s main plot… in other words, what is the basic story it is telling? Do not write more than four sentences for this… I just want you to see if you can figure out what the key story is here.

2. Almost every story has heroes and villains… who seem to be the good guys and who seem to be the bad guys in this story?

3. Consider the narrator of the gospel. Tell me 2 interesting things about the narrator. For example, you might say that the narrator loves to repeat a particular phrase, or that the narrator seems to like certain characters and not others.

4. What is the turning point in the gospel? In other words, when does the story seem to shift decisively? As long as you make a decent case for your choice, I won’t take off points… so don’t feel like you need to scour the internet for the “right” answer here.

Case Study.

Case summary:
REI is a company that deals with the production of goods and services which are used in outdoor activities. It is a company that endeavors to excel in all dimensions. REI ensures that it deals with the interests of all parties or stake holders who have interests with the organization. It also interacts with other firms to ensure production of quality goods to its customers. REI upholds the values that make it outstand in the market.
Key Issues:
Keeping values-REI holds fast the values that promote ethical culture that makes it stand from the rest. It ensures service and protection of the environment to where it operates.
Protection of stakeholders interests-REI believes that the stakeholders of the firm are its backbone hence it ensures that their interests are well met and satisfied.
Social responsibility-REI is socially responsible as it strives to advocate for social facilities prevention and improves the lives of the people in its environment through supporting social activities.
Legality-REI as a company observes the law as it tries to follow the set down procedures in its daily dealings.
Personal case analysis:
In my view, REI as a firm has made many achievements. It has made the lives of people in the environment improve as it strives to implement its decisions. Making partnerships with other firms despite the challenges involved in competing firms has made it one out of many. It has as well ensured that its stakeholder’s interests are met despite its sales oriented nature. This has made REI win the trust of all its stakeholders.
Case Questions:
Describe the Stakeholder orientation t REI.
Stakeholder orientation is the organization’s center of the performance. It forms part of its cultural relationship with the other corporate bodies. It is available when the organization is interested in the influence of its deeds to its owners and not just the owners. Stakeholders are those people who have great power over the actions of the organization and whose contribution if withdrawn from it can affect the firm negatively. They consist of the general public where the firm operates, employees, those who supply inputs, customers, and owners. Stakeholder’s orientation makes efforts to reconcile the interests of all the parties taking into account their interests when making decisions about their actions. It focuses on what is good for the stakeholders but not mere money making. Stakeholder orientation can lead to an increased competitive advantage. The main components of shareholder orientation include customer, competitor, employee and shareholder orientations that may either bring synergy or preventive effect.
2.     How does REI implement Social Responsibility?

REI would like to make sure that it is responsible for its paper sourcing for it cannot stop its use of paper. It has a policy that promotes buying of paper products firms that are certified by Forest Stewardship Council a body that dictates that the paper products have been responsibly sourced. REI recognizes that its social responsibility to the environment does not come to an end after the sales of its output hence it makes product sustainability an essential principle for sustaining its goals.REI also has partnered with other corporate bodies as it believes in standards that apply universally. In its political dimension, REI advocates the protection of the environment promoting recreational facilities. It has encouraged productive use of lands for the public and has supported many programs concerned with outdoor recreation. REI has been able to make its customers loyal and created good faith with the stakeholders due to basing its mission on customers. Relating its sales activities has provided to the stakeholders information relating directly to their interests and those of the environment
3.     How do REI’s values relate to the development of an ethical culture?
REI ensures that its actions are according to the law. This can be seen in its habit of purchasing paper from a certified body. This value is enough to fulfilling an ethical duty to the obedience of the law that any business should adhere to as it operates in a particular country. It makes the country benefit from the company’s activities, and the employees and the interested parties derive maximum satisfaction.
REI values the community that it operates in and the activities that are of benefit to them through involvement in activities and efforts in advocating justice. It portrays its value for the environment by its behavioral promotion and practices that are environment-friendly, a trait that has seen it produce exceptional quality goods and services for outdoor activities. REI values equity, originality and integrity among others that are the center of the firm’s activities. Its ethical culture concerns all the parties that are affected by the actions of the company but not just a small fraction. Ethical conduct is a paramount aspect of REIs culture.

Article Review:Trends in Non-Store Retailing.

Find an appropriate article on the Internet which relates to this week’s topic – Trends in Non-Store Retailing. The article can be from any bonefide online business/marketing source. It does not have to be from an academic journal. Articles about trends in direct selling, event marketing or vending will be the prime focus.

DO NOT review an article with a theme of online marketing. We cover eCommerce in many other places within the course, so do NOT use non-store retailing topic here.

The article can be from any professional online business/marketing source. Do not use Wikipedia or other source which is edited by the public – these sources are not appropriate for serious graduate-level work. The article does not have to be from an academic Journal, but it does have to come from a business publication such as Wall Street Journal, BusinessWeek, Money magazine, Advertising Age or any other respected publication. The Webster Library can help you if you need sources – go to that link on the course homepage.

Read the article and then write a one-page summary of the article, written in Microsoft Word using 12-point font, single spacing. Follow this format:

  1. Name of the Article
  2. Name of the source and include the Website’s address (URL) so the Instructor can look at the article
  3. Author and Date of the article (must be less than one year old)
  4. Approximately 50% of the paper content should be article summary
  5. Approximately 50% of the paper content should be how it applies to this class

For Item 4 & 5 divide the paper into 2 sections.  Entitle the first section Article Summary and summarize the article.  For the second section, item 5, Title that section How this Article Relates to our Course.  Tell what content in the article relates to the week’s topic.  What concepts are being used and why? Relate it back to the book.   It is not necessary to include the text of the article.

Best Financial Practices.

List at least 3 Best financial practices” that you believe are important for your healthcare organizations to follow.

  1. Explain why each of these practices are important for your healthcare organizations given the current policy and regulatory environment.
  2. Explain what can go wrong if the practice is not followed.

Please brake down each practice

Answering question 1 and 2

Definition essay:Desire.

if desire is a foundational priinciple of American values, then what drives these values and principles? In an essay, please define in all its entire and how it pertains to American.

 

5 paragraphs essay.

Methods of Inquiry Used in Criminal Investigation.

The principle method methods of inquiry are divided into two broad, distinct categories: those that reconstruct the past and those that discover or create new knowledge. Based on your reading answer the following questions.

  1. What are at least four methods of inquiry and how are they used in criminal investigation?
  2. What is the scientific method and how is it applied to criminal investigation by criminal investigators? Be sure to include each of the steps.

APA style paper please

Computer Science:C Programming.

You are an engineer working for the Black-Gold oil company.  Oil exploration is being conducted by drilling holes and blasting with specific amounts of dynamite.  To obtain useful seismic readings, a specific ratio between the amount of dynamite and the depth of the hole is needed.  The ideal powder charge to depth-of-hole ration is 1:3.  For the blasting operations each stick of dynamite will be 2.5 feet long and will weigh 5 pounds.  Since the actual powder charge will generally not be equal to the ideal powder charge, round the actual powder charge in 5 pound increments.

Here is an example:
Hole depth = 85 feet
Ideal powder to hole depth ratio = 85/3 = 28.33333 feet
Ideal number of sticks = 28.33333/2.5 = 11.33333
Ideal powder charge = 11.33333*5 = 56.66665 pounds
Actual number of sticks = 11
Actual charge = 11*5 = 55 pounds

An input data file called explore.txt contains exploration information for each well site.  The first record line of the input file defines the number of sites to be read into the program (the control number).  Each succeeding record line has two columns, where the first column is the well site number and the second column is the hole depth of the well in feet.  The two numbers are separated by a comma as the line delimiter.

ASSIGNMENT:
Write a C program that will read the required values from the input file, compute the hole to depth ration, the ideal number of sticks, the ideal powder charge, the actual powder charge, and the actual number of sticks.  Except for the main headings, use a single for loop to control the reading, computing, and printing operations.  Your program will produce a report in tabular format.  Given below is the layout format style.  Print the table to the computer screen and to an output file called results.txt.

Once the program is working, modify the program to account for any hole depth that is less than 30 feet.  Instead of printing the normal column items, for any hole that is less than 30 feet, print the well site, the well depth, and then print a message that the hole is too shallow (shown below).

1234567890123456789012345678901234567890123456789012345
DAILY DRILLING REPORT

SITE ID   DEPTH   IDEAL POWDER   ACTUAL POWDER   STICKS
(ft)    CHARGE (lbs)   CHARGE (lbs)
xxxxx     xxx        xx.xx           xx           xxx
.        .           .              .            .
.        .           .              .            .
.        .     *** HOLE TOO SHALLOW FOR BLASTING ***

FILE PATHS:
Before submitting your source program to Blackboard make sure that you set your file paths as follows:

#define ????? “u:\\engr 200\\explore.txt”

#define ????? “u:\\engr 200\\results.txt”

The question marks will be the variables that you choose to use as your input and output pointer variables.  If the file paths are not correctly set when you submit your program, it will be rejected and you will be required to change the paths to the correct settings and resubmit.