1) List the three steps of test driven development and explain,
in detail, why these three steps are used.
2) Explain why the order of the steps is so
important.
3) For each of the following data types, explain what boundaries might be relevant to testing. Also, explain what values you would consider testing for parameters of this type. Justfiy your answers.
In: Computer Science
A roulette wheel is divided into 38 labeled pockets, 18 of which are red, 18 are black, and 2 are green. Each round, you can place a $1 bet on one specific red or black pocket with odds of 35 : 1. That is, if you are correct you receive $35 in addition to the dollar you bet, and if you are incorrect, you get nothing. Your friend has developed what he describes as a “foolproof system” for winning. It involves him repeatedly betting $1 on red pocket number 7. You try to discourage him, but he is insistent. (a) What are your friend’s expected winnings after one spin of the wheel? What are his expected winnings after 36 spins of the wheel? (b) Despite showing him the outcome of the above calculation, he is unwavering in his opinion, so you decide to at least try to make some money for yourself. You bet your friend $20 that at the end of 36 spins he will have lost money, i.e. have less money than he began with. What are your expected winnings in this bet? What are your friend’s expected winnings after 36 spins taking this side-bet into account as well? (c) Explain what went wrong.
Please show in steps with explanations!
Thanks!
In: Statistics and Probability
Investigate the adoption and use of telemedicine and telehealth in your state. How is it being used? What benefits have been realized? What challenges or obstacles still exist? How important is telemedicine and telehealth in providing access to care? In improving quality of care? And in reducing costs?
In: Nursing
10.
A city is experiencing over-exploitation of its grazing areas. The city council is looking for a consultancy organization that can suggest viable solutions. Your research team is bidding for this job, and you are responsible for the methodology section in the bidding document.
Carefully explain what you would include in the methodology section. Your explanation must include the details of the method (or methods) you choose, the data that need to be collected, the assumptions or restrictions you may want to make, and also the strengths and weaknesses of the method(s).
In: Economics
XML and JAVA
Write a Java program that meets these requirements. It is important you follow these requirements closely.
• Create a NetBeans project named LastnameAssign1. Change Lastname to your last name. For example, my project would be named NicholsonAssign1.
• In the Java file, print a welcome message that includes your full name.
• The program should prompt for an XML filename to write to o The filename entered must end with .xml and have at least one letter before the period. If it does not, print a warning and prompt again. Keep nagging the user until a proper file name is entered.
• Prompt the user for 3 integers.
o The three integers represent red, blue, and green channel values for a color. o Process the numbers according to the instructions below
o Once you have handled the 3 input values, prompt the user again o Keep prompting the user for 3 integers until the user enters the single word DONE
o Reading input should not stop for any reason except for when the user enters DONE.
o The user will not mix DONE and the numbers. The user will either enter 3 integers OR the word DONE
• Once the user is done, open the filename entered in the first step and output the data.
o If no numbers were entered, then do not open the file for writing. Simply print a message that no data was entered.
o When 1 or more colors are entered, write out the XML data for each color. See below for the format.
o Sometimes users may enter integer values that are larger than 255 or less than 0. Values like this will need to be “clipped”, that is, converted to good values. For example, if the user enters 300 for red, then the actual red channel value will be 255. If the user entered -10 for the blue channel, then the actual blue channel value will be 0.
You should follow the sample below and your program should
exhibit the same behavior. For full credit, your generated XML
files must pass validation with NetBeans Check XML.
GENERAL REQUIREMENTS
All Java-related assignments will have the requirements below. While you may find them limiting, their purpose is to help you adopt good programming habits.
1. You should not have one, ginormous main() function. Your program should be modular, that is, define several (more than 2) meaningful functions in addition to main().
2. All functions should have a comment describing their purpose.
3. You may not use the System.exit() function
4. You must include a comment at the top of your .java file in this
format:
/*******************
John Nicholson
CSCI 3020 Section 04
Fall 2019
Assignment 1
This program does ...
*******************/
You should obviously change the name to your name, the section to
your section, and write a real description of the program. If this
comment is missing, you will automatically lose 50% of the points
on the assignment. Your assignment will not be regraded if you do
not put in the correct comment.
XML
In: Computer Science
Letter # 3: Negative Message
Assignment: You are a recent college graduate and are applying for
a number of jobs. Unfortunately, you receive two offers on the same
day and need to accept one and decline the other. Write a letter to
the hiring manager (see below) explaining your acceptance of
another offer, keeping in mind the five goals of delivering bad
news, found on page 193. You select the scenario that is most
applicable to your current situation.
Preparation: Review Chapter 8: Writing Negative Messages
(Especially pgs. 193-195)
Format: Use the modified block letter format for this assignment.
Please refer to page 421-423 for an explanation of the block and
modified block formats. The example in your book on page 422 is a
block format letter while the example on page 423 is modified block
letter format. Please note the differences carefully.
There are two main ways to format a negative message letter;
directly or indirectly. You can find comparisons of these
strategies on pages 193-194. For this exercise, you will be
utilizing the direct approach, since you do not need to maintain
any formal relationship with the organization you are declining.
Follow the organization on pages 195-196 as a guide.
The format of your letter tells the reader a lot about you and your
professionalism. Since you do not want to completely cut ties, it
is important to leave a lasting respectful impression. Pay
particular attention to your letter's margins, line spacing, font
type and size, and placement of letter parts such as the return
address, date, inside address, salutation, complimentary close, and
signature block.
The information for the job you are declining is: Assistant
Manager, Hilton Corporation. The contact person for this position
is: Terrence Walters, Hiring Manager, Hilton Corporation, 555 SW
8th St., Miami, FL 33199.
Recommended Organization
Introduction/Opening: Begin your letter with the bad news. The
indirect approach includes a buffer, however, the direct approach
does not. Be sure to remain professional and concise in this
section to not sound rude or ungrateful for the opportunity.
Body/Discussion: In the first paragraph of the body include your
reasons for the decision, without too much detail about the other
position. Having the right balance of ambiguity is respectful to
the employer you are declining. Use creativity when developing
reasons for taking the other position over theirs. Maybe the
schedule was more flexible or the other position better fir your
skill set. These are just a few examples to consider when writing
this section.
In: Operations Management
An instructor who taught two sections of engineering statistics last term, the first with 25 students and the second with 30, decided to assign a term project. After all projects had been turned in, the instructor randomly ordered them before grading. Consider the first 15 graded projects.
(a) What is the probability that exactly 13 of these are from
the second section? (Round your answer to four decimal
places.)
(b) What is the probability that exactly 9 of these are from the
first section? (Round your answer to four decimal
places.)
(c) What is the probability that at all 15 of these are from the
same section? (Round your answer to six decimal places.)
If you could please explain how to do it out on a calculator that would be much appreciated as the exam will ask us to solve this problem using a TI 84 plus CE.
In: Math
In: Accounting
- Part 2 – 4 Desk Checking Exercises – these are 3 programs (pseudocode) that are working and 1 program (Python). Explainthe intent of the pseudocode / program. If you use test data, note the test data. . You are NOT trying to find mistakes.
What does this do? Desk Checking #1: Explain the intent of this pseudocode. List the data you use as the example data.
start
Declarations
num balance
|
Use this textbox to explain the pseudocode/ code intent. Include any test data used: |
num month
num loanAmt
num paymentAmt
string PROMPT = “Enter the loan amount and payment amount >> ”
housekeeping()
detail()
finishUp()
stop
housekeeping()
output PROMPT
input loanAmt, paymentAmt
return
detail()
month = 1
balance = loanAmt
while balance > 0
balance = balance – paymentAmt
output month, balance
month = month + 1
endwhile
return
finishUp()
output “End of program”
return
In: Computer Science
A) Set up the Hypothesis test
B) Determine the distribution needed
C) State what your random variable
D) State the distribution to use for the test
E) State the Test Statistic
F) Calculate the p-value using the normal distribution for proportions
G) In one to two complete sentences, explain what the p-value means for this problem
H) State about the Null Hypothesis
I) Draw and label the Graph for this problem
J) Compare α and the p-value
K) Conclusion
Riddle begins below:
"Blowing Bubbles," by Sondra Prull
Studying stats just made me tense,
I had to find some sane defense.
Some light and lifting simple play
To float my math anxiety away.
Blowing bubbles lifts me high
Takes my troubles to the sky.
POIK!
They're gone, with all my stress
Bubble therapy is the best.
The label said each time I blew
The average number of bubbles would be at least 22.
I blew and blew and this I found
From 64 blows, they all are round!
But the number of bubbles in 64 blows
Varied widely, this I know.
20 per blow became the mean
They deviated by 6, and not 16.
From counting bubbles, I sure did relax
But now I give to you your task.
Was 22 a reasonable guess?
Find the answer and pass this test!
In: Statistics and Probability