Lily and Isaac complain that they’re hungry at school much more than last year. Their teachers assume that they must not be getting adequate breakfast, so send an email asking parents to make sure that the kids eat before school. Which of the following considerations should make the teachers rethink their causal attribution?
Blog
“How much do I value the rewards I will receive for completi…
“How much do I value the rewards I will receive for completing this task?” This question addresses:
Use IntelliJ to write a java program named “FootTrafficFinal…
Use IntelliJ to write a java program named “FootTrafficFinal” that follows the instructions below. When your program is complete, upload the .java or .zip file to the CANVAS Final Exam dropbox. Also please follow good programming style practices and include comments along with your code for full credit! Main Method: Call the getNumOfDays method to get the number of days you want to evaluate customer traffic data (numOfDays) Call the generateTrafficData method to create an integer array with customer traffic data (footTraffic). Call the writeTrafficData method to write the customer traffic data into a text file (“traffic.txt”). Call the readTrafficData method to create an ArrayList of integers (trafficData) using a text file with with customer traffic data as an input and print the average number of people entering the store. Call the printHistogram method to display customer traffic data as a histogram. The main method is where you will catch all exceptions thrown by methods. For a FileNotFoundException, print the message “File not found.” Other Methods: getNumOfDays() method. This method does not receive any parameters. It prompts the user: “Enter the number of days to evaluate customer traffic data (1 – 100 inclusive):” The method loops until the user enters a valid integer between 1 and 100 inclusive. It returns the number of days as numOfDays. generateTrafficData() method. This method receives numOfDays. It generates the amount of people entering the store and stores it in an integer array (footTraffic). Specifically, it uses it uses the random number equation to generate traffic data between 1 and 100. So, for example, if numOfDays is 3, then this method creates an integer array with a size of 3, generates 3 integers between 1 and 100, and stores each number in the array. It returns the array as footTraffic. Hint: for random number generation: min + (int)(Math.random() * (max – min + 1)); writeTrafficData() method. This method receives the footTraffic array. It writes the data to a file called “traffic.txt”. It returns nothing. It writes each number from the array to its own line in a file named “traffic.txt”. It throws a FileNotFoundException. readtrafficData() method. This method receives the name of the file to read as a String named fileName and returns an ArrayList. The String filename gets “traffic.txt” passed from the main method. The method creates an ArrayList of integers called trafficData that contains the contents of the traffic.txt file. It also calls the calcAvgTraffic method. It returns the trafficData ArrayList. This method throws a FileNotFoundException. calcAvgTraffic() method. This method receives the trafficData ArrayList. It calculates the average number of people entering the store and prints this information to the console, rounding 2 decimal places. For example, if trafficData is [4, 2, 6, 5], then it outputs: The average number of people entering the store per day is 4.25 printHistogram() method. This method receives trafficData and it returns nothing. It prints a histogram that depicts the number of people enter the store each day. For example, if TrafficData is [4, 2, 6, 5], the output should be: People entered on Day 1 **** People entered on Day 2 ** People entered on Day 3 ****** People entered on Day 4 ****
Your organization faces a threat: a new technology has emerg…
Your organization faces a threat: a new technology has emerged which renders your firm’s product obsolete. What does the CEO need to do to maximize the chances of the organization surviving into the future?
Every time Professor Rathjens succeeds at something on the j…
Every time Professor Rathjens succeeds at something on the job, he comments how diligently he worked to achieve his goal, putting knowledge and effort into his work. Conversely, whenever he falls short of goals at work, he blames his boss, his coworkers, the situation, or some other external factor. He is engaging in which of these?
Lily has been making cookies, from beginning to end —She wro…
Lily has been making cookies, from beginning to end —She wrote the recipe, selected the ingredients, combined them, cooked them, etc. The cookies win an award. Based on job characteristics model, Lily’s _____ is high.
For each STRIDE threat listed below, identify the security p…
For each STRIDE threat listed below, identify the security property (or properties) it violates: a. Spoofing : b . Tampering : c. Repudiation : d.Information Disclosure : e.Denial of Service : f. Elevation of Privilege :
This used to be a question on diversity, about research cond…
This used to be a question on diversity, about research conducted at THE Ohio State University.
How might you engage in empowering leadership as a manager?
How might you engage in empowering leadership as a manager?
Your manager calls you into her office. She asks you your op…
Your manager calls you into her office. She asks you your opinion on a few work issues, discusses a new project that your team is working on, and asks if you want to take the lead on it. She lets you know that there are layoffs coming within your organization, but that they won’t be in your department. There is also some chattering about personal lives, but nothing inappropriate. What behavior is this an example of?