Write a Python program that uses while loops to perform the following steps and post the text code. Thanks
a. Prompt the user to input two positive integers (no zero or
negative). variables: firstNum and
secondNum (firstNum must be less
than secondNum). Validate the user's input; prompt
the user again if firstNum is not less than
secondNum (use while loop).
b. Output all odd numbers between firstNum and
secondNum. (use while loop).
c. Output the sum of all even numbers between
firstNum and secondNum. (use
while loop).
d. Output the sum of the square of the odd numbers between
firstNum and secondNum. (use
while loop)
Program layout for each step:
#A
while loop
#B
while loop
#C
while loop
#D
while loop
***Allow the user to repeat the program. (requires another while loop).
***Do NOT define any functions.
***Your program output must be exactly the same as the output in the OUTPUT section, except font style.
OUTPUT:
- The bold text is the user's input.
*************************************************************************************
Enter two positive integer numbers.
First number must be less than the second number: Enter numbers: 8 a Incorrect Input. Please try again. Enter two positive integer numbers. First number must be less than the second number: Enter numbers:
*************************************************************************************
Enter two positive integer numbers. First number must be less than the second number: Enter numbers: a 8 Incorrect Input. Please try again. Enter two positive integer numbers. First number must be less than the second number: Enter numbers:
*************************************************************************************
Enter two positive integer numbers. First number must be less than the second number: Enter numbers: 8 2 First number must be less than the second number! Please try again. Enter two positive integer numbers. First number must be less than the second number: Enter numbers:
*************************************************************************************
Enter two positive integer numbers. First number must be less than the second number: Enter numbers: -2 8 No negative numbers! Please try again. Enter two positive integer numbers. First number must be less than the second number: Enter numbers:
*************************************************************************************
Enter two positive integer numbers. First number must be less than the second number you enter Enter numbers: 2 8 Odd integers between 2 and 8 are: 3 5 7 Sum of even integers between 2 and 8 = 20 Sum of the squares of odd integers between 2 and 8 = 83 Do you want to repeat this program? y/n > y
*************************************************************************************
Enter two positive integer numbers. First number must be less than the second number you enter Enter numbers: 1 9 Odd integers between 1 and 9 are: 1 3 5 7 9 Sum of even integers between 1 and 9 = 20 Sum of the squares of odd integers between 1 and 9 = 165 Do you want to repeat this program? y/n > y
*************************************************************************************
Enter two positive integer numbers. First number must be less than the second number you enter Enter numbers: 11 15 Odd integers between 11 and 15 are: 11 13 15 Sum of even integers between 11 and 15 = 26 Sum of the squares of odd integers between 11 and 15 = 515 Do you want to repeat this program? y/n > n Bye!
In: Computer Science
Zero-coupon bond. Wesley Company will issue a zero-coupon bond this coming month. The projected bond yield is 8%. If the par value is $100,000, what is the bond's price using a
semiannual convention if a. the maturity is 10 years?
b.the maturity is 40 years?
c.the maturity is 50 years?
d.the maturity is 80 years?
In: Finance
The ages of a random sample of people who attended a recent soccer match are as follows:
23 35 14 37 38 15 45
12 40 27 13 18 19 23
37 20 29 49 40 65 53
18 17 23 27 29 31 42
35 38 22 20 15 17 21
a. Find the mean age.
b. Find the standard deviation.
c. Find the coefficient of variation.
In: Math
Exercise 2: Beer’s Law Curve and Unknowns
Data Table 1. Concentration and Resistance.
|
Tube Label |
Concentration of Blue Dye in Test Tube (M) |
Resistance Reading on Colorimeter (Ω) |
|
B |
2.57 x 10-4 M |
3.6 |
|
1 |
3.4 |
|
|
2 |
3.3 |
|
|
3 |
3.1 |
|
|
4 |
3.0 |
|
|
5 |
2.9 |
|
|
6 |
2.8 |
|
|
7 |
2.7 |
|
|
8 |
2.6 |
|
|
9 |
2.4 |
|
|
W |
0 M |
2.2 |
|
CD 1 |
2.7 |
|
|
CD 2 |
2.4 |
How do I fill the blanks in? I understand that I am suppose to use M1V1 but I am COMPLETELY lost.
In: Chemistry
In this assignment you need to spend some time becoming familiar with the job description. Once you have become familiar with it, you need to evaluate the job using the job evaluation instrument included with this assignment. Based on the job description and job evaluation instrument, you need to select the level in the instrument that most closely matches what is in the job description. Furthermore, if it is unclear what the best match is, you need to indicate this by inserting comments into that section of this instrument in bold lettering indicating your concerns. If there are problems with the instrument that make it challenging to accurately evaluate a job, then insert those comments in bold as well. Otherwise, indicate which level you would assign by highlighting the level by underlining that level and putting the text in bold.
JOB DESCRIPTION
JOB TITLE: Therapist
DEPARTMENT: Child Welfare Services
STATUS: Exempt
REPORTING: Position reports to: Clinical Supervisor/Training Coordinator
Subordinate staff: None
BASIC FUNCTIONS:
The Child Welfare Services Therapist is responsible for the
development of treatment plans and the provision of therapy and counseling to children
and families served through The Baby Fold’s foster care, after care, adoption, and post
adoption services programs.
ESSENTIAL FUNCTIONS:
1. Assessment: Conducts intake and ongoing assessments of clients.
2. Treatment planning: In conjunction with client and treatment team, develops client treatment plans and facilitates treatment planning sessions.
3. Counseling/Therapy: Provides individual, family, and group counseling and therapy in accordance with client treatment plans.
4. Teamwork: Works with caseworker and family team in accordance with the treatment plan and advocates for the needs of clients. Consults with psychologists and psychiatrists on behalf of clients.
5. Documentation: Completes all required documentation according to program requirements for completeness, accuracy, and timeliness. These include intake packet, Medicaid mental health assessments and reassessments, case notes for therapy and other contacts, consultations, supervision and meetings, quarterly summaries for ACR and
court dates and closing summaries.
6. Community Relations: Represents the agency in a positive light to active and potential clients, referral and funding sources, and the general public. Utilizes community contacts to advocate for clients and to promote child and family welfare.
7. Legal and ethical responsibilities: Complies with all pertinent state and federal laws, DCFS Rules and Procedures, the Code of Ethics for Child Welfare Professionals, and other applicable professional codes of ethics.
8. Professional Development: Enhances professional competence through ongoing awareness of developments in the field of child welfare. Assists with training, supervision, and evaluation of student interns and new staff, as assigned.
9. Quality Enhancement: Contributes to quality enhancement through active participation in Quality Enhancement activities.
QUALIFICATIONS:
1. Master’s degree in social work,psychology,counseling and guidance, or a related
field and successful completion of a practicum and/or internship which includes a
minimum of 1,000 hours or has one year of clinical experience under the supervision
of a qualified mental health professional; or is a licensed social worker holding a
master’s degree with two years of experience in mental health services.
2. Knowledge of and skills necessary to apply the principles of child welfare and mental
health treatment to specific cases. Prefer experience in working with child victims of
sexual abuse.
4. Willingness to work evening and weekend hours when necessary.
5. Demonstrated competence in serving a culturally diverse population. Demonstrated
ability to work collaboratively with a diverse workforce.
6. Must meet DCFS driver eligibility requirements.
7. Must pass DCFS criminal background check.
8. Ability to use one’s personal car for agency travel requirements.
9. Ability to work cooperatively with staff within The Baby Fold, as well as with
necessary collateral contacts.
10. Mission oriented and willing to apply The Baby Fold’s standards and beliefs to the
performance of job duties.
PHYSICAL DEMANDS:
The physical demands described here are representative of those that must be met by
an employee to successfully perform the essential functions of this job. Reasonable
accommodations may be made to enable individuals with disabilities to perform the
essential functions. While performing the duties of this job, the employee is regularly required to talk or hear. The employee is frequently required to sit. The employee is occasionally required to stand; walk; use hands to finger, handle, or feel; reach with hands and arms; climb or balance; stoop, kneel, or crouch. The employee must occasionally lift and/or move up to 25 pounds. Specific vision abilities required by this job include close vision, depth perception and ability to adjust focus.
ACKNOWLEDGEMENT OF JOB DUTIES:
I have read and received a copy of this job description. I understand that I am
responsible for the duties as outlined above, as well as additional duties that may be
necessary to meet the needs of The Baby Fold. I also understand the any questions I
have regarding these duties should be clarified before signing below.
CWS Therapist Job Description summary:
( Alaa insert your summary for the description here)
CWS Therapist Job Evaluation:
KNOWLEDGE RELATED FACTORS:
1. EDUCATION: Level of formal schooling required to perform the job.
10 pts. -- no particular requirements for the position
70 pts. -- HS graduate or equivalent
130 pts. -- college degree
190 pts. -- advanced degree required (i.e., MS/MBA/JD)
2. EXPERIENCE: Prior experience/background acquired from the performance of the same or closely related positions.
10 pts. -- no prior experience required
70 pts. -- 1 to 3 years
130 pts. -- 4 to 5 years
190 pts. – 6 or more years
3. CERTIFICATION/LICENSES REQUIRED: Additional knowledge requirements apart from formal education & experience.
10 pts. -- no additional certification or licenses required
60 pts. -- related to professional area (i.e., nurses or aides, CPA)
110 pts. -- related to management (i.e., home administrator)
TECHNICAL REQUIREMENTS (general):
1. NUMBER OF PEOPLE SUPERVISED: Refers to the direct reporting relationship required by the job.
10 pts. – none
60 pts. - supervises 1 – 3 employees
110 pts. -- supervises 4 – 6 employees
160 pts. – supervises 7 or more employees
2. LEGAL COMPLIANCE: Refers to the degree to which job incumbents must be aware of and comply with relevant statutes.
10 pts. -- no particular requirements for the position
50 pts. -- must work within legal boundaries prescribed within one’s profession
90 pts. -- monitors the organization for legal compliance
3. QUALITY REQUIREMENTS: Refers to the interactions with the quality assurance systems in place.
10 pts. -- own work must be performed in a quality manner
60 pts. -- is responsible for the quality of one unit/department
110 pts. -- is responsible for the quality of two or more units
OTHER FACTORS:
1. CENTRALITY OF JOB: As measured by the number of other persons who can perform all of the job duties listed.
10 pts. – 4 or more persons available
50 pts. -- 2 to 3 persons available
90 pts. – 1 person available
130 pts. -- no one else available
2. PHYSICAL DEMANDS: Refers to exposure to physical demands on the job.
a. lifting
5 pts. -- no exposure/none required
10 pts. – required to lift up to 25 pounds
15 pts. – required to lift up to 50 pounds
20 pts. – required to lift up to 75 pounds
25 pts. – required to lift 76 or more pounds
b. pushing
5 pts. -- no exposure
10 pts. -- rarely required
15 pts. -- occasionally required
20 pts. --frequently required
c. pulling
5 pts. -- no exposure
10 pts. -- rarely required
15 pts. -- occasionally required
20 pts. --frequently required
d. reaching
5 pts. -- no exposure
10 pts. -- rarely required
15 pts. -- occasionally required
20 pts. --frequently required
Total points-
CWS Therapist Job Evaluation Explanation:
In: Operations Management
In: Computer Science
Optimal Capital Structure with Hamada Beckman Engineering and Associates (BEA) is considering a change in its capital structure. BEA currently has $20 million in debt carrying a rate of 6%, and its stock price is $40 per share with 2 million shares outstanding. BEA is a zero growth firm and pays out all of its earnings as dividends. The firm's EBIT is $12.263 million, and it faces a 30% federal-plus-state tax rate. The market risk premium is 4%, and the risk-free rate is 5%. BEA is considering increasing its debt level to a capital structure with 40% debt, based on market values, and repurchasing shares with the extra money that it borrows. BEA will have to retire the old debt in order to issue new debt, and the rate on the new debt will be 8%. BEA has a beta of 1.2.
A. What is BEA's unlevered beta? Use market value D/S (which is the same as wd/ws) when unlevering. Do not round intermediate calculations. Round your answer to two decimal places.
B. What are BEA's new beta and cost of equity if it has 40% debt? Do not round intermediate calculations. Round your answers to two decimal places.
Beta:
Cost of equity: %
C. What are BEA’s WACC and total value of the firm with 40% debt? Do not round intermediate calculations. Round your answer to two decimal places.
%
What is the total value of the firm with 40% debt? Enter your answers in millions. For example, an answer of $10,550,000 should be entered as 10.55. Do not round intermediate calculations. Round your answer to three decimal places.
$ million
In: Finance
A galvanic cell consists of a chromium anode
immersed in a CrSO4 solution and a
lead cathode immersed in a
PbSO4 solution. A salt bridge connects
the two half-cells.
(a) Write a balanced equation for the cell reaction.
| -------- (aq) or (s) or (l) or (g) | + -------- | (aq) or (s) or (l) or (g) | = --------- | (aq) or (s) or (l) or (g) | + ------- | (aq) or (s) or (l) or (g) |
(b) A current of 1.16 A is observed to flow for a
period of 1.68 hours. How much charge passes
through the circuit during this time? How many moles of electrons
is this charge equivalent to?
| ------- | C |
| ------- | mol |
(c) Calculate the change in mass of the chromium
electrode. ---------- g is _______ (lost or gained)
(d) Calculate the change in mass of the lead
electrode. ---------- g is _______ (lost or gained)
In: Chemistry
Use the following data set – Pain Relief Study - to answer this series of questions.
| Participant | Before Treatment | After Treatment | |
|---|---|---|---|
| 1 | 90 | 80 | |
| 2 | 70 | 50 | |
| 3 | 60 | 60 | |
| 4 | 90 | 70 | |
| 5 | 70 | 60 | |
| 6 | 50 | 40 | |
| 7 | 70 | 60 |
Patients in a drug trial rate their pain before treatment and after treatment. Higher scores equate to higher levels of reported pain with a maximum possible score of 100.
11.1 Calculate MD for the Pain Relief Study
11.2 Calculate the t-value (tobtained) for the Pain Relief Study (SHOW WORK) 1
1.3 Calculate the 95% CI for the Pain Relief Study.
11.4 What is one problem you might encounter if you use a within-subjects design compared to a between-subjects design? Explain what the problem is, explain why it is a problem, and give an example.
In: Statistics and Probability
Pacific Packaging's ROE last year was only 6%; but its management has developed a new operating plan that calls for a debt-to-capital ratio of 50%, which will result in annual interest charges of $780,000. The firm has no plans to use preferred stock and total assets equal total invested capital. Management projects an EBIT of $1,920,000 on sales of $20,000,000, and it expects to have a total assets turnover ratio of 2.5. Under these conditions, the tax rate will be 30%. If the changes are made, what will be the company's return on equity? Do not round intermediate calculations. Round your answer to two decimal places.
In: Finance