1.C.1377. How many 6-digit cube-numbers are there?
C.1378. Somebody calculated the exact values of and in the decimal system.
...
and in the decimal system. How many digits are there in these two numbers all together?
C.1379. Alex and Burt took their rabbits to a whole salesman to sell them to him at once. Each of them got as many dollars for each of their rabbits as many as the rabbits they each took to him. But, because their rabbits were so beautiful, they each got as many extra dollars for their rabbits from the salesman as many as the rabbits they each sold him. This way Alex received $202 more than Burt. How many rabbits did they each sell to the salesman?
C.1380. How many {a, b, c} sets are there containing three positive whole elements, where the product of a, b, and c is 2310?
C.1381. Let a, b, c, and d be different digits. Find their values so that the following sum has the least possible number of divisors, but the sum itself is the greatest possible.
C.1382. Fill in a 25×25 grid by using the numbers +1 and -1. Create the products of the 25 numbers in each column and in each row. Could the sum of these 50 numbers be:
a) 0
b) 10
c) 17?
C.1383. Is there such a triangle in which the heights are 1, 2, and 3 units long?
C.1384. You put a plain on each side of a regular, square-based pyramid. How many sections do these 5 planes divide the space?
View More
2.1) (Ch. 7) Explain what a residual is (also known as residual of prediction).
2)
...
e idea of “least squares” in regression (you need to fully read pp. 200-208 to understand).
3) What does it mean if b = 0?
4) What does it mean when r-squared is 0? What does it mean when r-squared is 1?
5) What is the difference in an unstandardized regression coefficient and the standardized regression coefficient?
6) If a report says test performance was predicted by number of cups of coffee (b = .94), what does the .94 mean? Interpret this. (For every one unit increase in ___,There is an increase in ___ )
7) If F (2,344) = 340.2, p < .001, then what is this saying in general about the regression model? (see p. 217)
8) Why should you be cautious in using unstandardized beta? (p. 218)
9) (Ch. 8) Explain partial correlation in your own words. In your explanation, explain how it is different from zero-order correlation (aka Pearson r).
10) (Ch. 9) What is the F statistic used to determine in multiple regression?
11) What is F when the null hypothesis is true?
12) In Table 9.4, which variable(s) are statistically significant predictors?
13) In Table 9.4, explain what it means if health motivation has b = .36 in terms of predicting number of exercise sessions per week.
14) What is the benefit of interpreting standardized beta weights? (see p. 264).
15) What happens if your predictor variables are too closely correlated?
16) Reflect on your learning. What has been the most difficult? How did you get through it? What concepts are still fuzzy to you? Is there anything you could share with me that would help me address how you learn best?
View More
3.CSE 1300
Problem Solving Practice Conditional Statements
Question 1: Student Fees
All KSU students pay fees in addition to their tuition.
Using the code
...
nts pay fees in addition to their tuition.
Using the code provided below as a starting point, write a conditional statement that determines how much a student will pay in fees.
• Students registered for 1 – 4 hours pay $843 in student fees.
• Students enrolled in 5 or more hours pay $993 in student fees.
The program should also display a message to students who have not enrolled in any classes: “You are not enrolled in any classes right now.”
NOTE: You must use the variables included in the code snippet get credit for this question.
import java.util.Scanner;
class Main {
public static void main(String[] args) {
int creditHours;
int fees = 0;
Scanner myScanner = new Scanner(System.in);
System.out.print("Please enter the number of credit hours you are taking this term: "); creditHours = myScanner.nextInt();
myScanner.close();
//YOUR CODE GOES HERE
} }
Break the Problem Down
Answer the following questions, then use the information to write your code.
What are the inputs in the pseudocode above? (INPUT)
What are we storing in the pseudocode above? (MEMORY)
What calculations are needed? (PROCESSES)
What needs to be displayed to the user?
(OUTPUT)
How many conditions are there in your problem statement?
What are they?
Does something need to happen if the condition(s) are not met?
What type of conditional statement do you need?
Solution in Java
Problem 2: Block Tuition
The cost of KSU’s tuition is determined by the number of credit hours a student enrolls in.
Using the chart below, write a conditional statement (ONLY) that sets the value of a tuition variable to what that student will owe.
NOTE: For this problem you can assume that all students are enrolled in a minimum of 12 hours.
Number of Credit Hours 12
13
14
15 or more
Cost (in USD) $2224 $2410 $2595 $2718
Break the Problem Down
Answer the following questions, then use the information to write your code.
What do we need to store? (MEMORY)
What are the inputs in the problem statement above? (INPUT)
What calculations are needed? (PROCESSES)
What needs to be displayed to the user?
(OUTPUT)
How many conditions are there in your problem statement?
What are they?
Does something need to happen if the condition(s) are not met?
What type of conditional statement do you need?
Solution in Java
Problem 3: Class Standing
Undergraduate students will be classified based on the number of earned institutional hours.
• Freshman:
• Sophomore:
• Junior:
• Senior:
0 - 29 hours
30 - 59 hours 60 - 89 hours
90 hours or more
Write a complete program that prompts the user for the number of credit hours they have completed. Write a conditional statement that prints out their class standing based on the information they provided.
Sample Output
Break the Problem Down
Answer the following questions, then use the information to write your code.
What do we need to store? (MEMORY)
Please enter the number of credit hours you have earned: 29 You are a freshman.
What are the inputs in the problem statement above? (INPUT)
What calculations are needed? (PROCESSES)
What needs to be displayed to the user?
(OUTPUT)
How many conditions are there in your problem statement?
What are they?
Does something need to happen if the condition(s) are not met?
What type of conditional statement do you need?
Solution in Java
Problem 4: Maximum Course Load
KSU’s policy on maximum course loads during the academic year is as follows:
A student in good standing may register for up to 18 hours. The Registrar may approve up to 21 hours for students with an institutional GPA of 3.5 or higher. Students
Write a complete program that prompts the user for the number of credit hours they have signed up for. Write the necessary conditional statement(s) to address the stipulations in KSU’s policy. Once the maximum number of hours is determined, display a message to the user that states “You may enroll in X credit hours this semester.” where X is the number of credit hours determined by your program.
Sample Output
Break the Problem Down
Answer the following questions, then use the information to write your code.
What do we need to store? (MEMORY)
Please enter your GPA: 3.75
You may enroll in up to 21 credit hours this semester.
What are the inputs in the problem statement above? (INPUT)
What calculations are needed? (PROCESSES)
What needs to be displayed to the user?
(OUTPUT)
How many conditions are there in your problem statement?
What are they?
Does something need to happen if the condition(s) are not met?
What type of conditional statement do you need?
Solution in Java
Problem 5: First-Year Seminar
All first-year full-time students entering Kennesaw State University with fewer than 15 semester hours are required to complete a First-Year Seminar. Students with 30 or more credit hours are not eligible to enroll in a First-Year Seminar.
Write a complete program that prompts the user for the number of credit hours they have completed. Write the necessary conditional statement(s) to address the stipulations in KSU’s policy.
When you run your program, it should display one of the following messages to the screen:
• You must enroll in First-Year Seminar.
• You do not have to take First-Year Seminar.
• You are not eligible for First-Year Seminar.
Sample Output
Break the Problem Down
Answer the following questions, then use the information to write your code.
What do we need to store? (MEMORY)
Enter the number of credit hours have you completed: 30
You are not eligible for First-Year Seminar.
What are the inputs in the problem statement above? (INPUT)
What calculations are needed? (PROCESSES)
What needs to be displayed to the user?
(OUTPUT)
How many conditions are there in your problem statement?
What are they?
Does something need to happen if the condition(s) are not met?
What type of conditional statement do you need?
Solution in Java
View More
4.In Andrew’s Furniture Shop, he assembles both bookcases and TV stands. Each type of furniture takes him about the same
...
s him about the same time to assemble. He figures he has time to make at most 18 pieces of furniture by this Saturday. The materials for each bookcase cost him $20.00 and the materials for each TV stand cost him $40.00. He has $600.00 to spend on materials. Andrew makes a profit of $60.00 on each bookcase and a profit of $100.00 for each TV stand. Find how many of each piece of furniture Andrew should make so that he maximizes his profit.
Using the information in the problem, write the constraints. Let x represent number of bookcases, and y represent number of TV stands.
View More
5.CyberToys is a small chain that sells computer hardware and software and specializes in personal service. The company has four
...
vice. The company has four stores located at malls and is planning on expanding to other locations. Each store has a manager, a technician, and between one and four sales reps.
The owners want to create a personnel records database, and they asked you to review a table that they had designed. They suggested fields for Store Number, location, store telephone, manager name, and manager home telephone. They also want fields for technician name and technician home telephone and fields for up to four sales rep names and sales rep home telephones.
Draw an Entity Relationship Diagram modeling their suggested design.
Analyze their original design using the normalization concepts you learned in Module 9. For this part of the question, make sure you begin with the original table in an unnormalized form as requested by the company. Work your way through 1st, 2nd, and 3rd normal forms. At each point, be sure you use the standard notation format to show the changes in the structure of your table(s) (Module 9; 9.6.1). During your analysis, be sure to explicitly illustrate/write about the reason behind the design decisions you make. Additionally, each normal form should have it's own section/heading.
Draw a final ERD showing your final analysis showing the relationship among the entities you identified during normalization
View More
6. CyberToys is a small chain that sells computer hardware and software and specializes in personal service. The company has four
...
rvice. The company has four stores located at malls and is planning on expanding to other locations. Each store has a manager, a technician, and between one and four sales reps.
The owners want to create a personnel records database, and they asked you to review a table that they had designed. They suggested fields for Store Number, location, store telephone, manager name, and manager home telephone. They also want fields for technician name and technician home telephone and fields for up to four sales rep names and sales rep home telephones.
a. Draw an Entity Relationship Diagram modeling their suggested design.
b. Analyze their original design using the normalization concepts you learned in Module 9. For this part of the question, make sure you begin with the original table in an unnormalized form as requested by the company. Work your way through 1st, 2nd, and 3rd normal forms. At each point, be sure you use the standard notation format to show the changes in the structure of your table(s) (Module 9; 9.6.1). During your analysis, be sure to explicitly illustrate/write about the reason behind the design decisions you make. Additionally, each normal form should have it's own section/heading.
c. Draw a final ERD showing your final analysis showing the relationship among the entities you identified during normalization
View More
8.I have an exam in an hour and I want someone to solve it for me. Statistics including normal distribution,
...
ution, regression, decision trees
Past paper has 5 questions (attached), we will have 4. Complexity of questions will be reduced slightly for decision trees and regression.
Visualisation question – written in word file or hand-written and scanned or photographed.
Normal distribution:
Sketch using online normal distribution visualisation applet (add notes around this to discuss if necessary) or sketch by hand and scan or photograph.
For mathematical workings, use formulae sheet, copy, paste and adapt, or scan / photograph your workings and upload.
Decision tree – use Office smart shapes, or sketch by hand and scan or photograph. If formulae are required, then use formula sheet, copy, paste and adapt.
Regression – written in word file or hand-written and scanned or photographed.
MCDA – written in word file or hand-written and scanned or photographed.
Remember if they appear, decision trees and regression will be a little less technical than they have been in the past. (To allow more of a buffer with regards to time available to complete and upload).
Visualisation and MCDA questions will be more general (strengths and weaknesses, key messages, make some recommendations).
Exam questions will be set so as to minimise practical and logistical difficulties in uploading answers.
View More
9.The unit price of market goods is $1. Each person has 8 hours to work each day.
Another couple, Sylvan and
...
van and Alex, have the same productivities: Sylvan is identical to Rajan, while Alex
and Esther are identical.
Esther and Rajan both engage in market work. Sylvan works full time at home, so only Alex works in the
market.
a) Given this information, which couple has the higher opportunity cost of home produced goods?
Explain how you determined this. You can add a diagram if that helps, but you are not required
to include one.
b) Can you determine which couple has the higher utility? Explain why or why not.
Suppose now that value of market production for both Alex and Esther increased to $12/per hour.
c) Explain the change in the household joint production possibility frontier generated by this
change.
d) Explain what would happen to each couple’s choice of both household and market produced
goods, using an analysis by means of income and substitution effects.
e) What changes in time allocation for each couple that would be necessary to produce and
consume this new bundle? Briefly explain your reasoning.
View More
10.ou are a consultant who works for the Diligent Consulting Group. In this Case, you are engaged on a consulting
...
consulting basis by Loving Organic Foods. In order to get a better idea of what might have motivated customers’ buying habits you are asked to analyze the ages of the customers who have purchased organic foods over the past 3 months. Past research done by the Diligent Consulting Group has shown that different age groups buy certain products for different reasons. Loving Organic Foods has sent a survey to 200 customers who have previously purchased organic foods, and 124 customers have responded. The survey includes age data of past customers who purchased organic foods in the previous quarter.
Case Assignment
Using Excel, create a frequency distribution (histogram) of the age data that was captured from the survey. You should consider the width of the age categories (e.g., 5 years, 10 years, or other). That is, which age category grouping provides the most useful information? Once you have created this histogram, determine the mean, median, and mode.
After you have reviewed the data, write a report to your boss that briefly describes the results that you obtained. Make a recommendation on how this data might be used for marketing purposes. Be sure to conduct adequate research on organic foods industry, organic market analysis, and healthy food industry using IBISWorld database or other databases such as Business Source Complete (EBSCO) and Business Source Complete - Business Searching Interface in our online library. Provide a brief description on the industry background and the consumer changing attitudes and behavior toward healthy lifestyles. Also identify the customer demographics of organic food industry and explain how the customers of Loving Organic Foods are different from this target market.
Data: Download the Excel-based data file with the age data of the 124 customers: Data chart for BUS520 Module 1 Case. Use these data in Excel to create your histogram.
Assignment Expectations
Excel Analysis
Complete analysis in Excel using the Histogram function. Please watch the following video which covers how to create a histogram in Excel: https://www.youtube.com/watch?v=GL91GrVf3EY
If you are not so familiar with Excel, refer to the following link on Excel training videos: https://support.office.com/en-us/article/Excel-training-9bc05390-e94c-46af-a5b3-d7c22f6990bb?ui=en-US&rs=en-US&ad=US
Check the professional market research reports from the IBISWorld database to conduct the industry analysis. IBISWorld can be accessed in the Trident Online Library.
IBISWorld Overview (n.d.). IBISWorld, Inc., New York, NY.
IBISWorld Forecast (n.d.). IBISWorld, Inc., New York, NY.
IBISWorld Data and Sources (n.d.). IBISWorld, Inc., New York, NY.
IBISWorld Navigation Tips (n.d.). IBISWorld, Inc., New York, NY.
Written Report
Length requirements: 4–5 pages minimum (not including Cover and Reference pages). NOTE: You must submit 4–5 pages of written discussion and analysis. This means that you should avoid use of tables and charts as “space fillers.”
Provide a brief introduction to/background of the problem.
Provide a brief description of organic food industry and target market characteristics such as their demographics, lifestyles and shopping behaviors.
Provide a written analysis that supports your Histogram age groups (bins).
Based on your analysis of the histogram data, provide complete and meaningful recommendations as the data relates to Loving Organic Foods’s marketing strategy.
Write clearly, simply, and logically. Use double-spaced, black Verdana or Times Roman font in 12 pt. type size.
Have an introduction at the beginning to introduce the topics and use keywords as headings to organize the report.
Avoid redundancy and general statements such as "All organizations exist to make a profit." Make every sentence count.
Paraphrase the facts using your own words and ideas, employing quotes sparingly. Quotes, if absolutely necessary, should rarely exceed five words.
Upload both your written report and Excel file to the case 1 Dropbox.
View More
11.MUST access/view this website link to help me solve this one big lab question:
...
https://opengeology.org/historicalgeology/virtual-field-experiences-vfes/vfe-glaciers/#Continental_glaciation_in_LiDAR And go/view liDAR image map of Scandinavia below the heading “Continental glaciation in liDAR” to view the image portion of the Scandanivia map on that site. I need help for this one final question regarding this liDAR image of Scandinavia for this lab assignment I’m doing to “Identify one of each of the following geomorphic 5 features below each associated with continental glaciation (TAKE a screenshot on your PC of an example of each from this liDAR map image of Scandinavia, and send those 5 images, labeling key features of the image, and put all 5 screenshot images of these below features with their labeled annotated key features in a Word Doc or PDF to SEND to me). From accessing this website link and using the liDAR map image of Scandinavia take take these 5 key feature screenshots, HERE are there 5 required features BELOW required to screenshot with key features labeled/annotated to take one of each on your PC( press “Fn” + “PrtScr” to screenshot images on your Windows PC(don’t know how on Mac PC) or use/downloa snippet program to take computer screenshots of these 5 features):
glacial striations
terminal moraine
outwash delta
esker
kettles SEE attached photo file for same directions for this question as typed here, but for more better simpler clarity to read the same directions as typed here on this attached file. ALSO THIS Assignment is really due by 11:59 pm tonight 11/7, but I want it done at least by 7 or 8 pm today 11/7. Thanks, please try to help me ASAP, I’m struggling.
View More
12.Credit card sales The National Association of Retailers reports that 62% of all purchases are now made by credit card;
...
de by credit card; you think this is true at your store as well. On a typical day you make 20 sales.
Show that this situation can be modeled by a binomial distribution. For credit, you must discuss each of the criteria required for a binomial experiment.
Define the random variable x in this scenario, using the context of the problem.
List all possible values of x for this situation.
On one trial for this scenario, what does “success” mean? Explain using the words of the problem.
What is the probability of success in this scenario?
What is the probability of failure in this scenario?
Probability Distribution Instructions¬¬¬¬
In Excel, create a probability distribution for this scenario.
Label Column A as “x” and Column B as “P(x).”
In Column A, list the numbers 0 to 15.
In Column B, use BINOM.DIST.RANGE to calculate the probability for each x value.
Highlight the probability cells, then right click and select Format Cells. Format the probability cells as “Number” and have Excel show 4 decimal places.
Create a probability histogram using the probabilities you calculated. Format and label it properly. Be sure to use the “Select Data” button to change the x-axis so it correctly lists the x-values.
View More
13.I need help getting started with my C++ assignment.
This is the prompt of the assignment and guidelines must follow.
...
delines must follow.
The purpose of this assignment is to give you practice using structs, using strings, writing functions and sorting. You will read a student file into an array of structs, determine grades, sort the array and print it out.
Program Steps and Requirements
Use the Student struct shown below.
Read the input file (partially shown below) and store the data in an array of structs. The input file contains 55 student records and one heading line.
Write code to determine the grade for each student. The grade determination is exactly as specified for this class in the syllabus. Remember to discard the lowest assignment grade.
Sort the array of student students in descending order by the total points.
Write the output file using the exact format shown below and include the two lines of headings in the output.
Required Student struct and named constants
const unsigned NumberOfStudents = 55;
const unsigned PointsPossible = 400;
const unsigned NumberOfAssignments = 10;
const unsigned NumberOfExercises = 10;
struct Student
{
int id;
string name;
int exercise[NumberOfExercises];
int assignment[NumberOfAssignments];
int midterm;
int final;
int codelab;
int exerciseTotal;
int assignmentTotal;
int totalPoints;
int percent;
string grade;
};
Input file
-StudId- -------Name-------- -----Exercises----- ---------Assignments--------- Mi Fin CL
12345678 Smartiepants, Sam 5 4 5 4 5 5 5 5 5 5 20 19 20 20 20 20 19 20 20 19 65 98 9
18519268 Mendoza, Victor 4 2 5 4 1 4 5 5 5 4 17 12 17 18 14 17 19 18 14 18 59 49 6
23276929 Chien, Shengfeng 2 3 0 4 4 5 2 5 5 2 9 18 15 8 19 18 18 16 19 13 64 89 8
18242679 Dhaliwal, Shawn 5 5 3 4 5 4 2 4 4 5 9 18 17 15 18 19 12 15 18 14 45 92 9
09869966 Miraftab, Mina 5 3 5 5 3 5 4 0 4 3 17 4 3 18 12 16 14 17 17 12 52 68 7
10930997 Dimas, Abraham 5 3 4 5 4 3 4 3 3 3 12 18 20 11 14 7 15 10 18 15 64 89 6
11545560 Masongsong, Mikhael 1 3 5 4 3 4 5 3 5 5 19 19 9 13 17 20 20 14 14 19 64 96 8
10626377 Zigler, Joshua 4 3 4 3 2 5 4 4 4 5 17 14 18 20 17 18 12 19 14 14 51 90 5
...
Output report file
Stud Id Name Ex Ass Mi Fin CL Tot Pct Gr
-------- ------------------- -- --- -- --- -- --- --- --
12345678 Smartiepants, Sam 48 178 65 98 9 398 100 A+
11545560 Masongsong, Mikhael 38 155 64 96 8 361 90 A-
20767544 Martins, Gustavo 40 144 67 97 10 358 90 A-
23305464 Zumwalt, Jacob 37 160 62 90 8 357 89 B+
23579439 Feirstein, Berent 42 159 55 91 9 356 89 B+
14965959 Ho, Brandon 40 157 66 84 8 355 89 B+
19988142 Wang, Lu 31 157 58 98 9 353 88 B+
09559062 Mora, Gabriel 36 137 67 100 7 347 87 B
19108176 Bailey, Tanequa 44 152 56 85 8 345 86 B
Suggested main function
int main()
{
Student students[NumberOfStudents];
getStudentDataFromFile(students, InputFilename);
determineGrades(students);
sort(students);
printStudentDataToFile(students,OutputFilename);
}
View More
14.PLAN AND DESIGN CHAPTER
Hi, my thesis is on the locus of control and psychological well-being of adolescents. I have completed
...
adolescents. I have completed the Literature review. I have to plan a research design for the thesis. ABOUT THE THESIS:
Population- 13+ to 19 years adolescents
No of IV s- 2 that is, Gender is the First IV and Locus of Control ( LOC) is the second IV
Levels of IV- Gender has 2 levels ( male and female). LOC has two levels ( Internal Locus of Control and External Locus of Control). Both IV s are categorical variables.
List of DV s-
1. Self Esteem
2. Coping
3. Happiness
4. Academic motivation
5. Exam Anxiety
6. Life Style
Each DV will be measured by using appropriate Statistical scales. All DVs will be taken as continuous variables. All the scales measure the quantitative aspect only.
DV MEASUREMENT: Each of the scales that will be used to measure DV contains several areas or dimensions or sub-categories. For example, the self-esteem scale contains 78 items divided into 6 categories like personal, social, emotional, academic, intellectual and moral.
THESIS AIM- To check the impact of IV s on each of these DV s in isolation and also investigate the interaction effects between gender and locus of external. I will be using the SPSS package for calculations.
PROBLEM:
Problem 1: Which is the most appropriate Statistical test or design that should be used here? I believe a 2x2 ANOVA will be best suited here.
Problem 2: If I am measuring the impact of IV s on each DV in isolation, should I use several Two Way AONVA tables or a single MANCOVA table?
Problem 3: Each of the DV is measured using scales containing several dimensions. Are such dimensions of the scales need to be treated as the levels of the dependent variables? In other words, do the levels of DV are decided as per the dimensions of the scale that was used to measure the DV? If this is so, then even if I am measuring the DV s in isolation; each DV will have multiple levels, which in turn will change my design from Two Way ANOVA to perhaps MANCOVA? What is the right approach here?
Note: I have not intentionally divided DV into any levels.
Kindly help me to arrive at a statistically significant research design! If possible, kindly briefly explain the type of the design as well as the rational or suitability of the sign for my research problem.
View More
15.Learning Objectives
Design and write pseudocode using a repetition structure
Design and write Java for a class, including attributes, accessors, mutators, and
...
va for a class, including attributes, accessors, mutators, and constructors.
Design and write Java for an application program that instantiates and uses objects of a user-defined class.
Use the repetition structure in class methods and application program modules.
Perform error checking.
Use a graphical drawing program (ArgoUML) to create class diagrams.
Directions for completing and submitting the homework:
You will be submitting the following files:
Task #1:
Pseudocode written with Word, Notepad++, or similar application
Task #2:
Pennies.java
Task #3
Inventory.java
The application class created in 3b below
The UML class diagram created in ArgoUML, Raptor, or similar application
Homework Assignment:
Write the pseudocode needed to complete Chapter 5, number 9 – Pennies for Pay.
Implement Pennies for Pay in Java.
The Secondhand Rose Resale Shop is having a seven-day sale during which the price of any unsold item drops 10 percent each day. Design a class diagram showing the class, the application program, the relationship between the two, and multiplicity. Then write the Java code as described below. Be sure to follow the CSI 117 Style Criteria (Links to an external site.) for naming conventions, class diagrams, pseudocode, keywords, and operators.
An Inventory class that contains:
an item number and the original price of the item. Include the following:
A default constructor that initializes each attribute to some reasonable default value for a non-existent inventory item.
Another constructor method that has a parameter for each data member, called the overloaded constructor. This constructor initializes each attribute to the value provided when an object of this type is instantiated. Be sure to incorporate adequate error checking for all numeric attributes.
Accessor and mutator methods for each attribute. Be sure to incorporate adequate error checking for all numeric attributes.
Extra credit for including Javadoc comments.
An application program that contains two methods: the main() module and the printSaleData()module.
The main()module must do the following:
create an Inventory object using the default constructor
use a loop to get inventory items from the user. The user should enter the item number and the original price of the item. This loop should continue until the user indicates that they have no more items to enter. For each item entered by the user, the code inside the loop should do the following 2 items:
set the attributes of the Inventory object by calling the appropriate method in the Inventory class for each item entered by the user
send the Inventory items, one at a time, to the printSaleData() module for processing
Extra credit for including Javadoc comments.
The printSaleData()module must accept an Inventory object and produce a report that shows the item number and the price of an inventory item on each day of the sale, one through seven, using a loop. For example, an item with an original price of $10.00 costs 10 percent less, or $9.00, on the first day of the sale. On the second day of the sale, the same item is 10 percent less than $9.00, or $8.10.
View More
16.Subject Business Ethics:
The Hawaii State Department of Health has agreed to settle for $2 million a
...
llion a fine against Koyo USA Corp. for violations at its Big Island water bottling plant, state officials said Monday.
The company, which markets its filtered bottled ocean water in Hawaii and Japan under the band name Mahala Hawaii Deep Sea, paid $1 million to the Health Department on May 2 and must make the second payment by Aug. 31, 2013, health officials said.
The Health Department had fined the company $5 million for the violations in September 2011 after an investigation found it had been using an unapproved manufacturing process since 2006.
None of the company’s bottled waters was recalled and health officials said there was no threat or risk to human health, as confirmed by test results from independent laboratories and the state lab.
Koyo continues to operate its facility at the Natural Energy Laboratory of Hawaii Authority in Kailua-Kona.
Statement: The government should fine companies that do not follow procedures.
1. Present arguments (as many as you can think of) in support of the government why it is justified to fine Koyo.
2. Present arguments (as many as you can think of) in support of why Koyo should be allowed to do what it did.
3. What is your position?
4. Should the government be allowed to do this in some industries but not all? Why or why not?
WRITE YOUR ANSWER UNDER FOUR CLEARLY MARKED SUBHEADINGS (SEE BELOW) REFERRING TO THE FOUR ABOVE.
1. FOR THE MOTION:
2. AGAINST THE MOTION:
3. MY POSITION:
4. DISCUSSION:
View More
17.The Hawaii State Department of Health has agreed to settle for $2 million a fine against Koyo
...
Corp. for violations at its Big Island water bottling plant, state officials said Monday.
The company, which markets its filtered bottled ocean water in Hawaii and Japan under the band name Mahala Hawaii Deep Sea, paid $1 million to the Health Department on May 2 and must make the second payment by Aug. 31, 2013, health officials said.
The Health Department had fined the company $5 million for the violations in September 2011 after an investigation found it had been using an unapproved manufacturing process since 2006.
None of the company’s bottled waters was recalled and health officials said there was no threat or risk to human health, as confirmed by test results from independent laboratories and the state lab.
Koyo continues to operate its facility at the Natural Energy Laboratory of Hawaii Authority in Kailua-Kona.
Statement: The government should fine companies that do not follow procedures.
1. Present arguments (as many as you can think of) in support of the government why it is justified to fine Koyo.
2. Present arguments (as many as you can think of) in support of why Koyo should be allowed to do what it did.
3. What is your position?
4. Should the government be allowed to do this in some industries but not all? Why or why not?
WRITE YOUR ANSWER UNDER FOUR CLEARLY MARKED SUBHEADINGS (SEE BELOW) REFERRING TO THE FOUR ABOVE.
1. FOR THE MOTION:
2. AGAINST THE MOTION:
3. MY POSITION:
4. DISCUSSION:
View More
18.Kyle is working on a glass mosaic in art class and is only using rectangular pieces in the project.
...
For each piece of glass, Kyle wants the width to length ratio to be 114 inches : 212 inches. Calculate the unit rate of the pieces and use that information to determine which of the following statements are true. Select TWO that apply.
Kyle has a piece of glass that has a length of 412 inches. In order to fit in his mosaic, it must have a width of 9 inches.
Kyle has a piece of glass with a width of 312 inches. Since it has a length of 6 inches, Kyle did not use it in his mosaic.
Kyle wants the total length of his mosaic to be 2 feet. This will make the width of his mosaic 1 foot.
Kyle has one piece in the mosaic with the dimensions of 134 inches long by 312 inches wide.
View More
19.A uniform beam of length L
and mass m shown in Figure
P12.16 is inclined at an angle
u to the horizontal. Its
...
izontal. Its upper
end is connected to a wall by
a rope, and its lower end rests
on a rough, horizontal sur-
face. The coefficient of static
friction between the beam
and surface is ms. Assume
the angle u is such that the static friction force is at its
maximum value. (a) Draw a force diagram for the beam.
(b) Using the condition of rotational equilibrium,
find an expression for the tension T in the rope in
terms of m, g, and u. (c) Using the condition of trans-
lational equilibrium, find a second expression for T in
terms of ms, m, and g. (d) Using the results from parts
(a) through (c), obtain an expression for ms
L
u
Figure P12.16
Q/C
S
vertical component of this force. Now solve the same
problem from the force diagram from part (a) by com-
puting torques around the junction between the cable
and the beam at the right-hand end of the beam. Find
(e) the vertical component of the force exerted by the
pole on the beam, (f) the tension in the cable, and
(g) the horizontal component of the force exerted
by the pole on the beam. (h) Compare the solution
to parts (b) through (d) with the solution to parts
(e) through (g). Is either solution more accurate?
19. Sir Lost-a-Lot dons his armor and sets out from the
castle on his trusty steed (Fig. P12.19). Usually, the
drawbridge is lowered to a horizontal position so that
the end of the bridge rests on the stone ledge. Unfor-
tunately, Lost-a-Lot’s
squire didn’t lower the draw-
involv-
ing only the angle u. (e) What happens if the ladder
is lifted upward and its base is placed back on the
ground slightly to the left of its position in Figure
P12.16? Explain.
View More
20.You will implement a version of the cuckoo hash table. Your cuckoo hash will operate as follows
You will use
...
You will use a single backing array(instead of two) and two hash functions (both MultiplicativeHashFunction objects), h1 and h2.
The z values for your hash functions (and all subsequent hash functions needed when resizing or rehashing) will be taken from an array of integers passed to the CuckooHashTable constructor. The first value in the array will be used for the first incarnation of h1, the second value for the first incarnation of h2, the next two values will be used for the next incarnations of h1 and h2, etc.
Note: be careful to follow this. We will be checking your array (via toString()) and correctness will depend on using the same values of z as we do when generating the test code. The MultiplicativeHashFunction objects you will use also have a getParams() method to show the value of z,w,d when that hash function is used.
When adding an item, x, that is not in the hash table already, always add it to t[h1(x)] (even if t[h1(x)] is already taken and t[h2(x)] is available).
The load factor must always satisfy α=n/t.length≤1/2. If adding an item will violate this then resize the table (doubling its size) and rehash everything (before doing the add).
After removing an item, if the load factor satisfies α=n/t.length<1/8 AND the dimension satisfies d≥5 then resize by reducing the size of the bucket table by a factor 2 and rehash everything.
Each time you resize you will create two new hash functions using the next two z values (that were initially passed to the constructor).
Your constructor should initialize an empty bucket array of size 16 (i.e., d=4). This is the minimum size your bucket array should ever be. Never let the dimension be smaller then 4.
View More
21.Hey I need help writing a couplet poem
Using this question and answer
What happened to the European population in the High
...
ean population in the High Middle Ages?
The number of people almost doubles from 38 million to 74 million people.
List two reasons for the change in population during this time.
Conditions in Europe were more settled and peaceful after the invasions of the early Middle Ages had stopped. Food productions increased because a change in climates improved growing conditions.
What two inventions for the horse made it possible to plow faster?
A new horse collar and the use of the horseshoe.
Define the term manor.
A manor was an agricultural estate run by a lord and worked by peasants.
What three ways did serfs pay rent to their lords?
By giving the lords a share of every product they raised, paying for the use of common pasture lands and turning over a part of the can't from ponds and streams.
Name the three great events celebrated by feasts within the Christian faith.
Christmas (celebrating the birth of Christ), Easter (celebrating the resurrection of Christ), and Pentecost (celebrating the descent of the Holy Spirit on Christ's disciples 50 days after His resurrection).
What two features changed the economic foundation of Europe?
A revival of trade and an associated growth of towns and cities.
For what two reasons did merchants build a settlement rear a castle?
Because it was located along a trade route and because the lords of the castle would offer protection.
By 1100, What four rights were townspeople getting from local lords?
The right to buy and sell property, freedom from military service to the lord, a law guaranteeing the freedom of the townspeople, and the right for an escaped serf to become a free person after living a year and a day in the town.
Describe the environment of medieval cities.
The cities were dirty and smelled from animal and human waste. Air was polluted from wood fires. Water was polluted as well.
What three steps did a person complete to become a master in a build?
He first became an apprentice to a master craftsperson. After 5-7 years he became a journeyman and worked for wages. Upon completing a masterpiece which was judged, he/she could be declared a master and join a guild.
View More
22. When to balance dice are rolled, there are 36 possible outcomes. Find the probability that the sum is
...
is a multiple of three or greater than eight.
A certain game consist of rolling a single fair die and pays off as follows nine dollars for a six, six dollars for a five, one dollar for four and no payoffs otherwise.Find the expected winnings for this game.
A fair die is rolled four times. A 6 is considered success While all other outcomes are failures find the probability of three successes.
A pet store has nine puppies including 4 poodles 3 terriers and 2 retrievers. If Rebecca an errand in that order each select one puppy at random without replacement find the probability that Aaron select a retriever given that from last Rebecca selects a poodle.
Experience shows that a ski lodge will be for (166 guests) if there is a heavy snowfall in December, well only partially full (52 guests) With a light snowfall. What is the expected number of guests if the probability for a heavy snowfall is 0.40? I assume that heavy snowfall and light snowfall are the only two possibilities.
A pet store has six puppies Including two poodles two Terriers and to retrievers. If Rebecca and Aaron in that order each select one puppy random with replacement (They both may select the same one) Find the probability That Rebecca selects a terrier and Aaron selects a retriever.
Three married couples arrange themselves randomly in six consecutive seats in a row. Determine (A) the number of ways the following event can occur, And (B) the probability of the event. (The denominator of the probability fraction will be 6!=720, The total number of ways to arrange six items ). Each man was that immediately to the right of his wife.
A coin is tossed five times. Find the probability that all our heads. Find the probability that at least three are heads.
A certain prescription drug is known to produce undesirable facts and 35% of all patients due to drug. Among a random sample of a patient using a drug find the probability of the stated event. Exactly 5 have undesired effects.
10,000 raffle tickets are sold. One first prize of 1600, for second prizes of 800 each, And 9/3 prizes of 300 each or to be awarded with all winners selected randomly. If you purchase one ticket what are your expected winnings.
Suppose a charitable organization decides to Raise money by raffling A trip worth 500. If 3000 tickets are sold at one dollar each find the expected net winnings for a person who buys one ticket. Round to the nearest cent
Three men and seven women are waiting to be interviewed for jobs. If they are selected in random order find the probability that all men will be interviewed first
A fair diet is rolled. What is the probability of rolling on our number or a number less than three.
The pet store has 15 puppies, including five poodles, five Terriers, and five retrievers. If Rebecca and Aaron, in that order, select one puppy at random without replacement, find the probability that both select a poodle
Beth is taking a nine question multiple-choice test for which each question Has three answer choices, only one of which is correct. Beth decides on answering By rolling a fair die And making the first answer choice if the die shows one or two, The second If the die shows three or four, and the third if the die shows five or six. Find the probability of the stated event. Exactly 6 correct answers
For the experiment of drawing a single card from a standard 52 card deck find (a) the probability and (b) the odds are in favor that they do not drive six
View More