Are you a university or school looking for an online tutoring partnership ?

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
2,3,4,7). If it lands tails, a fair six-sided die is
thrown (with values 3,4,5,6,7,9). Regardless of which die is used, Alice
eats n grains of rice, where n is the largest prime factor of the die result
(for example, the largest prime factor of 9 is 3).
(a) What is the conditional probability that the coin lands heads, given
that Alice eats three grains of rice?
(b) Suppose that the entire experiment is conducted twice on the following day (starting with a new coin toss on the second run-through).
What is the conditional probability that the coin lands heads on both
run-throughs, given that Alice eats a total of five grains of rice during the two run-throughs?
(Do not count the two grains from part (a) in part (b); we assume
two brand new experiments, each with a new coin toss. Start your
solution by defining a suitable partition of the sample space. Please
use an appropriate notation and/or justification in words, for each
value that you give as part of your solution.)
Exercise 5) Alice and Bob throw an unfair coin repeatedly, with probability 2/5 of landing heads. Alice starts with £2 and Bob starts with £3 .
Each time the unfair coin lands heads, Alice gives Bob £1 . Each time
the unfair coin lands tails, Bob gives Alice £1 . The game ends when one
player has £5 .
(a) Draw a labelled Markov chain describing the problem, and write
down a transition matrix P. Write down the communication classes,
and classify them as either recurrent or transient.
(b) Using the transition matrix, calculate the probability that Alice loses
all of her money in exactly four tosses of the unfair coin.
(c) Calculate the (total) probability that Alice loses all of her money
(before Bob loses all of his).
(d) Calculate the expected (mean) number of tosses of the unfair coin,
for the game to end.

View More
ies examined in class. This paper is not a literature review, though a literature review is part of your work. As this course takes place in a compressed timeline, I provided some suggestions for research topics. Feel free to use one of these as a springboard or propose your own.
At the end of the second week of class, students submit a three-page research paper prospectus. A research prospectus is a preliminary plan for conducting a study. This is not a detailed and technical research proposal, but rather, an analysis of the issues likely confronted in such a study. In essence, it is a preliminary proposal of work.
Research Paper Prospectus Elements
To complete the Research Paper Prospectus, consider the following elements. While the prospectus is limited to three pages of body content, remember, students must cover each of these areas as relevant to the plan for research:
Research Problem. What is the research problem? A problem is a situation when left untreated, produces a negative consequence for a group, an institution, or a(n) individual(s). What makes it a problem? For whom? Who says so?
Assumptions. On what assumptions is the work based? Which assumptions are verifiable in literature? Which assumptions are speculative?
Theoretical Issues. What theoretical issues arise from the study? For example, "theoretically," how is the problem and suspected results explained to other scholars? Is there a behavior view? A social systems view? Are there other theoretical orientations to consider in the study's design?
Literature Review. What, in general, does the literature say about the topic? While more development is expected for the final paper, a review of major theories, research, and writers in the field is needed.
Research Questions. Based on the problem, what are the research questions to be answered? How and why will answering the questions contribute to solving the research problem? Remember....a research question can only be answered with empirical data or information.
General Research Plan. In general, what research is necessary to answer the research question. What kind of data is needed? Specify the type, such as surveys, observations, or interviews. Who is to be studied and why? How is the data reduced and made sense of? How is the quality of the data assured?
Anticipated Difficulties and Pitfalls. What kind of difficulties and pitfalls are expected in a study of this nature? What can be done to prevent them or minimize their effects?
Anticipated Benefits. Who will benefit from the fact this research is undertaken? How? Why? Who might be disturbed by this proposed study? How? Why?
Paper Format Requirements
The Research Paper Prospectus is presented in standard APA 7 format, with a cover page, running head, body, and references list. The cover page and references do not count toward the three-page requirement. The body uses headers and in-text citations in the manner prescribed by APA. Students should include any references they know at the time they submit the prospectus, though it is expected the references may change or increase in number. Full and complete adherence to APA is required.
APA Basics
As APA format is the rule, remember the formatting rules shown on the Sample Paper (Links to an external site.):
Times New Roman, 12pt
1" margins on all sides
Double spaced, with extra line spaces removed (see below)
Page numbers in the upper right
Two spaces after concluding punctuation
150-250 word abstract with keywords
APA-style in-text citations and quote format. Use the Purdue OWL in-text citation information (Links to an external site.)to help you.
Alphabetical (by author) reference page with correct reference format. DO NOT trust the reference generator in your word processing program. It is WRONG! Use the Purdue OWL references information (Links to an external site.)to correctly structure references and do so manually.

View More
4.I need a demo that follows the pattern I need for my exercises, before I buy the package. I need ...

utor to walk step by step in the solution of my exercises for me to learn and understand. I had Chetana Das before, and I would like to continue with her as soon as it is possible.
The questions are attached, and it needs to be solved using SPSS. I can attach a sample exercise.Actually I attached the sample.

View More
units.
Chemical Equation: Write a generic chemical equation for the dehydration of cobalt (II) chloride ∙ x hydrate (include the state symbols of the reactant and two products). [T2]
Mass of Reactants and Products:
a) Calculate the initial mass of the hydrated cobalt (II) chloride. [T1]
b) Calculate the final mass of the anhydrous cobalt (II) chloride remaining in the cruiio8icible. [T1]
c) Calculate the mass of water given off by the sample of hydrated cobalt (II) chloride. [T1]
Moles of Products:
a) Calculate the moles of anhydrous cobalt (II) chloride remaining in the crucible. [T1]
b) Calculate the moles of water released from the hydrate. {T1]
4. Mole Ratio
a) Create an experimental mole ratio between the b) and a). [T1]
5. Formula of Hydrate: State the chemical formula you have determined for this hydrate.
Round the formula to the closest whole number value for x. [T1]
Discussion/Conclusion Questions: [T6]
Based on the chemical formula of the hydrate, calculate the percentage composition (percent by mass) of the hydrated cobalt (II) chloride. Remember to determine the percentage of each element (Co, Cl, H, and O). [T2]
A possible source of systematic error in this experiment is insufficient heating. Suppose that the hydrate was not completely converted to the anhydrous form. Describe how this would affect: the calculated percent by mass of water and the experimental molecular formula (i.e. would x be higher, lower or the same).
Suppose a student spilled some of the hydrated cobalt (II) chloride. Describe how this would affect the calculated percent by mass of water (would it be higher, lower or the same) and the experimental chemical formula of the hydrate. [T2]

View More
sil is .049 Bq/g. the activity of carborn-14 of the scientist is it the activity of living organic matter does not change change over time how old the fossil sample? (Half-life of carbon-14 is 5730 years.)

View More
on a subsample of weekly data from Randall’s Supermarket, one of the biggest in the UK. Randall’s marketing management team wishes to identify trends and patterns in a sample of weekly data collected for a number of their loyalty cardholders during a 26-week period. The data includes information on the customers’ gender, age, shopping frequency per week and shopping basket price. Randall’s operates two different types of stores (convenient stores and superstores) but they also sell to customers via an online shopping platform. The collected data are from all three different types of stores. Finally, the data provides information on the consistency of the customer’s shopping basket regarding the type of products purchased. These can vary from value products, to brand as well as the supermarket’s own high-quality product series Randall’s Top. As a business analyst you are required to analyse those data, make any necessary modifications in order to determine whether for any single customer it is possible to predict the value of their shopping basket.
Randall’s marketing management team is only interested in identifying whether the spending of the potential customer will fall in one of three possible groups including:
• Low spender (shopping basket value of £25 or less)
• Medium Spender (shopping basket value between £25.01 and £70) and
• High spenders (shopping basket greater than £70)
For the purpose of your analysis you are provided with the data set Randall’s.xls. You have to decide, which method is appropriate to apply for the problem under consideration and undertake the necessary analysis. Once you have completed this analysis, write a report for the Randall’s marketing management team summarising your findings but also describing all necessary steps undertaken in the analysis. The manager is a competent business analyst himself/herself so the report can include technical terms, although you should not exceed five pages. Screenshots and supporting materials can be included in the appendix.
Requirements
After completing your analysis, you should submit a report that consists of two parts. Part A being a non-technical summary of your findings and Part B a detailed report of the analysis undertaken with more details.
Part A: A short report for the Head of Randall’s Marketing Management (20 per cent). This should briefly explain the aim of the project, a clear summary and justification of the methods considered as well as an overview of the results.
Although, the Head of Randall’s Marketing Management team who will receive this summary is a competent business analytics practitioner, the majority of the other team members have little knowledge of statistical modelling and want to know nothing about the technical and statistical underpinning of the techniques used in this analysis. This report should be no more than two sides of A4 including graphs, tables, etc. In this report you should include all the objectives of this analysis, summary of data and results as well as your recommendations (if any).
Part B: A technical report on the various stages of the analysis (80 per cent).
The analysis should be carried out using the range of analytics tools discussed:
• SPSS Statistics
Ensure that the exercise references:
• Binary and multinomial logistic regression
• Linear vs Logistic regression
• Logit Model with odds Ratio
• Co-efficients and Chi Squared
• MLR co-efficients
• Assessing usefulness of MLR model
• Interpreting a model
• Assessing over-all model fit with Psuedo R-Squared measures
• Classification accuracy (Hit Ratio)
• Wald Statistic
• Odd ratio exp(B)
• Ratio of the probability of an event happening vs not happening
• Ratio of the odds after a unit change in the predictor to the original odds
• Assumptions
• Residuals analysis
• Cook’s distance
• DfBeta
• Adequacy (with variance inflation factor VIF and tolerance statistic)
• Outliers and influential points cannot just be removed. We need to check them (typo? – unusual data?)
• Check for multicollinearity
• Parsimony
Write a short and concise report to explain the technical detail of what you have done for each step of the analysis.
The report should also cover the following information:
• Any type of analysis that might be useful and check whether the main assumptions behind the analyses do not hold or cannot be
• Give evidence of the understanding of the statistical tools that you are using. For example, comment on the model selection procedure and the coefficient interpretation, e.g. comment on the interpretation of the logistic regression coefficients if such a method is used and provide an example of
• Conclusions and explanation, in non-technical terms, of the main points

View More
year will increase the amount charged on its credit card. The bank makes this offer to a random sample of 225 of its credit card customers. It then compares how much these customers charge this year with the amount that they charged last year. The mean increase in the sample is $560, with sum of squares SS= $1,417,250. Is there significant evidence at 1% level that the mean amount charged increases under the no-fee offer? First, in the blank below report the observed value of the test statistic (e.g., observed z, observed t, or observed χ2 you will use for hypothesis testing
2. Enter the critical value for the statistic and degrees of freedom. Do we reject H0 or fail to reject

View More
l when their debut single, “All the Single Men!”
was re-recorded as “All the Single Ladies!” by an all women’s group and it
went triple platinum. They consoled themselves by finding the critical values
(“z” or “t” scores) for the following.
a. Alpha in the left tail is 2.5%, sample size is 50 and sigma is known.
b. df is 18, alpha in the left tail is 10% and x-bar is 47.9 cars.
c. the sample mean is $23.7, sigma is $12.5 and C.L. is 80%.
d. alpha is 1%, sample variance is 2.8 and the sample size is 24

View More
ing several continuous variables. The groups are in the same sample and the subjects can overlap.
Some of the continuous/scale variables are moderated/lower correlated or not correlated with each other.
Questions
1- Should I use ANOVA or MANOVA or some other method?
2- Is it okay to create a composed variable with all the combinations of the 3 groups using syntax? I excluded two of the combinations because they have only 1 or 0 subjects.
I’m sending one example output in SPSS with one-way ANOVA and MANOVA.

View More
, a standard deviation of $1 would be considered large if it is describing the variability from store to store in the price of an ice cube tray. On the other hand, a standard deviation of $1 would be considered small if it is describing store-to-store variability in the price of a particular brand of freezer. A quantity designed to give a relative measure of variability is the coefficient of variation. Denoted by CV, the coefficient of variation expresses the standard deviation as a percentage of the mean. It is defined by the formula CV = 100(s/ x ). Consider two samples. Sample 1 gives the actual weight (in ounces) of the contents of cans of pet food labeled as having a net weight of 8 oz. Sample 2 gives the actual weight (in pounds) of the contents of bags of dry pet food labeled as having a net weight of 50 lb. There are weights for the two samples.
Sample 1 7.7 6.8 6.5 7.2 6.5
7.7 7.3 6.6 6.6 6.1
Sample 2 50.7 50.9 50.5 50.3 51.5
47 50.4 50.3 48.7 48.2
(a) For each of the given samples, calculate the mean and the standard deviation. (Round all intermediate calculations and answers to five decimal places.)
For sample 1
Mean
Standard deviation
For sample 2
Mean
Standard deviation
(b) Compute the coefficient of variation for each sample. (Round all answers to two decimal places.)
CV1
CV2

View More
e size?
Question 1 options:
It has an approximately normal distribution with approximately the same mean as the population.
It has the same shape and mean as the population.
It has an approximately normal distribution with a different mean as the population.

View More
survey of all their employees found that employees were required to respond to an average of 50 work-related emails per week with a standard deviation of 1.5 emails per week. However, an employee advocacy group believes the average number of work-related emails Indigo Insurance Company employees are now required to respond to is more than 50 emails per week.
To investigate this further, the employee advocacy group took a random sample of 20 staff employed by Indigo Insurance Company during the second week of March 2018,and asked these employees to record the number of work-related emails to which they were required to respond.
(b). What does the highlighted section of the distribution in Figure 1 represent?
(c). The random sample of 20 employees of Indigo Insurance Company taken by the employee advocacy group turned out to have a mean of 50.8 work-related emails to respond to in that week. Does this sample look like it belongs to the sampling distribution displayed in Figure 1? Justify your answer.
(d). Given the sample was randomly selected and that the number of work-related emails each employee was required to respond to was recorded accurately, what conclusion can we reach from part (c)?
To answer questions (b) to (d), consider the sampling distribution shown in Figure 1.

View More
t way to do that would be to investigate her students’ test performance in a number of ways.
The first thing she did was separate her students’ test scores based on the time of day she held her lectures (morning vs evening). Next she recorded the type of test students were writing (multiple choice vs short answer). She selected a random sample of students from her morning (n = 6) and evening (n = 7) classes (total of 13) and recorded scores from two of their tests as shown below.
Morning
Evening
Multiple Choice
Short Answer
Multiple Choice
Short Answer
66
74
70
45
64
55
80
55
72
77
78
55
70
57
84
60
61
58
64
70
67
69
84
60
70
63
DATA Set 1:
Good morning sunshine. Is Time of Day important?
1. Prof. Maya recently read an article that concluded students retained more information when attending classes in the morning. Based on this finding she thought students in her morning class might have performed differently on their Short Answer test scores when compared to students in her evening class. Does the data support her hypothesis? [15 points]
Multiple Guess! Does Exam Type matter?
2. Prof. Maya also knew that students often did better on multiple-choice tests because they only have to recognize the information (rather than recall it). Given this, she thought students attending the morning class might perform differently on the Multiple-Choice test when compared to the Short Answer test. Does the data support her hypothesis? [15 points]
DATA Set 2:
We’ll try anything once. Does the new Tutorial Plan work?
3. Combining all of her students (and ignoring time of day), Prof. Maya asked her TAs to try a new – and very expensive - tutorial study plan. She then chose a random sample of 20 students to receive the new study plan and another sample of 30 to continue using the old study plan. Following an in-class quiz, she divided the students into 3 levels of achievement (below average, average, and above average), and then created the frequency table below. Does the new expensive tutorial study plan improve student performance? [15 points]
Below average
Average
Above Average
New plan
7
7
6
Old plan
6
15
9
DATA Set 3:
How are YOU doing?
4. Finally, Prof. Maya thinks that her 2018 class is doing better than her 2017 class did. She decided to collect a sample of test scores from the students in her course this year (combining all of the groups) and compare the average with her previous year’s class average. Does the data support her hypothesis? [15 points]
The 2017 class average = 63%
The 2018 sample size = 25
The 2018 sample standard deviation = 11
The 2018 sample average = use your actual midterm mark (yes, you the student reading this :)
Bonus: What does it all mean?
5. Bonus: IF Prof. Maya had complete control of how and when she ran her course in 2018, considering all the info you just found in the 3 data sets, write a brief statement of how you would recommend she set-up the course next year – and explain why. [5 points]

View More
t way to do that would be to investigate her students’ test performance in a number of ways.
The first thing she did was separate her students’ test scores based on the time of day she held her lectures (morning vs evening). Next she recorded the type of test students were writing (multiple choice vs short answer). She selected a random sample of students from her morning (n = 6) and evening (n = 7) classes (total of 13) and recorded scores from two of their tests as shown below.
DATA Set 1:
Good morning sunshine. Is Time of Day important?
1. Prof. Maya recently read an article that concluded students retained more information when attending classes in the morning. Based on this finding she thought students in her morning class might have performed differently on their Short Answer test scores when compared to students in her evening class. Does the data support her hypothesis? [15 points]
Multiple Guess! Does Exam Type matter?
2. Prof. Maya also knew that students often did better on multiple-choice tests because they only have to recognize the information (rather than recall it). Given this, she thought students attending the morning class might perform differently on the Multiple-Choice test when compared to the Short Answer test. Does the data support her hypothesis? [15 points]
DATA Set 2:
We’ll try anything once. Does the new Tutorial Plan work?
3. Combining all of her students (and ignoring time of day), Prof. Maya asked her TAs to try a new – and very expensive - tutorial study plan. She then chose a random sample of 20 students to receive the new study plan and another sample of 30 to continue using the old study plan. Following an in-class quiz, she divided the students into 3 levels of achievement (below average, average, and above average), and then created the frequency table below. Does the new expensive tutorial study plan improve student performance? [15 points]
Below average
Average
Above Average
New plan
7
7
6
Old plan
6
15
9
DATA Set 3:
How are YOU doing?
4. Finally, Prof. Maya thinks that her 2018 class is doing better than her 2017 class did. She decided to collect a sample of test scores from the students in her course this year (combining all of the groups) and compare the average with her previous year’s class average. Does the data support her hypothesis? [15 points]
The 2017 class average = 63%
The 2018 sample size = 25
The 2018 sample standard deviation = 11
The 2018 sample average = use your actual midterm mark (yes, you the student reading this :)
Bonus: What does it all mean?
5. Bonus: IF Prof. Maya had complete control of how and when she ran her course in 2018, considering all the info you just found in the 3 data sets, write a brief statement of how you would recommend she set-up the course next year – and explain why. [5 points]

View More
Hash( const string & key, const int h_size )
{
unsigned int value = 0;
for ( int i=0; i
View More

list uses dynamic memory allocation to grow as the size of the data set grows. Unlike linked lists, a binary search tree is very fast to insert, delete and search.
Project Description
When an author produce an index for his or her book, the first step in this process is to decide which words should go into the index; the second is to produce a list of the pages where each word occurs. Instead of trying to choose words out of our heads, we decided to let the computer produce a list of all the unique words used in the manuscript and their frequency of occurrence. We could then go over the list and choose which words to put into the index.
The main object in this problem is a "word" with associated frequency. The tentative definition of "word" here is a string of alphanumeric characters between markers where markers are white space and all punctuation marks; anything non-alphanumeric stops the reading. If we skip all un-allowed characters before getting the string, we should have exactly what we want. Ignoring words of fewer than three letters will remove from consideration such as "a", "is", "to", "do", and "by" that do not belong in an index.
In this project, you are asked to write a program to read any text file and then list all the "words" in alphabetic order with their frequency together appeared in the article. The "word" is defined above and has at least three letters.
Note:
Your result should be printed to an output file named YourUserID.txt.
You need to create a Binary Search Tree (BST) to store all the word object by writing an insertion or increment function. Finally, a proper traversal print function of the BST should be able to output the required results.
The BST class in the text can not be used directly to solve this problem. It is also NOT a good idea to modify the BST class to solve this problem. Instead, the following codes are recommended to start your program.
//Data stored in the node type
struct WordCount
{
string word;
int count;
};
//Node type:
struct TreeNode
{
WordCount info;
TreeNode * left;
TreeNode * right;
};
// Two function's prototype
// Increments the frequency count if the string is in the tree
// or inserts the string if it is not there.
void Insert(TreeNode*&, string);
// Prints the words in the tree and their frequency counts.
void PrintTree(TreeNode* , ofstream&);
//Start your main function and the definitions of above two functions.
Sample Run
Please type the text file name: Lincoln.txt
Please give the output text file name: mus11.txt
You are done! You can open the file "mus11.txt" to check.
Press any key to continue
------------------------------------------------------------------------------------------------------------------------------------------------
lincoln.txt---
The Gettysburg Address
Gettysburg, Pennsylvania
November 19, 1863
Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in
Liberty, and dedicated to the proposition that all men are created equal.
Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and
so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate
a portion of that field, as a final resting place for those who here gave their lives that that nation
might live. It is altogether fitting and proper that we should do this.
But, in a larger sense, we can not dedicate -- we can not consecrate -- we can not hallow -- this ground.
The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add
or detract. The world will little note, nor long remember what we say here, but it can never forget what
they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they
who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great
task remaining before us -- that from these honored dead we take increased devotion to that cause for
which they gave the last full measure of devotion -- that we here highly resolve that these dead shall not
have died in vain -- that this nation, under God, shall have a new birth of freedom -- and that government
of the people, by the people, for the people, shall not perish from the earth.
------------------------------------------------------------------------------------------------------------------------------------------------
mus11.txt
1863 1
Address 1
But 1
Four 1
Gettysburg 2
God 1
Liberty 1
November 1
Now 1
Pennsylvania 1
The 3
above 1
add 1
advanced 1
ago 1
all 1
altogether 1
and 6
any 1
are 3
battle-field 1
before 1
birth 1
brave 1
brought 1
but 1
can 5
cause 1
civil 1
come 1
conceived 2
consecrate 1
consecrated 1
continent 1
created 1
dead 3
dedicate 2
dedicated 4
detract 1
devotion 2
did 1
died 1
earth 1
endure 1
engaged 1
equal 1
far 2
fathers 1
field 1
final 1
fitting 1
for 5
forget 1
forth 1
fought 1
freedom 1
from 2
full 1
gave 2
government 1
great 3
ground 1
hallow 1
have 5
here 8
highly 1
honored 1
increased 1
larger 1
last 1
little 1
live 1
lives 1
living 2
long 2
measure 1
men 2
met 1
might 1
nation 5
never 1
new 2
nobly 1
nor 1
not 5
note 1
our 2
people 3
perish 1
place 1
poor 1
portion 1
power 1
proper 1
proposition 1
rather 2
remaining 1
remember 1
resolve 1
resting 1
say 1
score 1
sense 1
seven 1
shall 3
should 1
struggled 1
take 1
task 1
testing 1
that 13
the 9
their 1
these 2
they 3
this 4
those 1
thus 1
under 1
unfinished 1
vain 1
war 2
what 2
whether 1
which 2
who 3
will 1
work 1
world 1
years 1

View More
with a mean of 25 gm and a standard deviation of 5 gm.
(a) If the machine is used 500 times, approximately how many times will it be expected to dispense 30 gm or more of chilli sauce?
(b) How can you decrease this number to half? Give a numerical answer.
2. StarTech manufactures re sensors. They use a protective screen for their sensors to protect it from dust. The sensor becomes useless if the thickness of the screen exceeds 0.5 mm. They outsource the production of the screen to a di erent company that claims to manufacture screens with a mean thickness of 0.3 mm and a standard deviation of 0.1 mm.
(a) If 10000 screens are manufactured how many will be discarded because they are too thick?
(b) If screens less than 0.2 mm are too thin to be used, what is the probability that screens manufactured by the above company will be discarded because they are too thick or too thin? Show the result on a graph.
3. The amount of time that Sam spends playing the guitar is normally distributed with a mean of 15 hours and a standard deviation of 3 hours.
(a) Find the probability that he spends between 15 and 18 hours playing the guitar during a given week.
(b) What is the probability that he spends less than 3 hours playing the guitar during a given week?
4. Soon after he took oce in 1963, President Johnson was approved by 160 out of a sample of 200 Americans. With growing disillusionment over his Vietnam policy, by 1968 he was approved by only 70 out of a sample of 200 Americans.
(a) What is the 90% con dence interval for the percentage of all Americans who approved of Johnson in 1963? In 1968?
(b) What is the 90% con dence interval for the change?

View More
1.AU MAT 120 Systems of Linear Equations and Inequalities Discussion

mathematicsalgebra Physics