Prompt the user to input their lucky number. Upon getting the users input, validate that the input is a valid number using Int32.TryParse (more info can be found at https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/how-to-convert-a-string-to-a-number (Links to an external site.)). If the input is not a valid number, output a message to the user stating that you are sorry but you are unable to run the FizzBuzz process due to the input not being a valid number. If the input is valid, you are clear to start the FizzBuzz process. If the input is divisible by 3, then output {number} Fizz. If the input is divisible by 5, then output {number} Buzz. If the input is divisible by 3 AND 5, output {number} FizzBuzz. If it is not divisible by either 3 or 5, simply just output the number.
In: Computer Science
In: Computer Science
Consider the last time you were ill (i.e., flu, headache, cold, etc.). Discuss the extent to which factors other than biological ones may have contributed to your illness.
In: Psychology
Convert the following to Octal, hexadecimal and binary (long method(multiply and Divide by methods))
a.1364.367(10)
b.1568.246(10)
c.846.578(10)
d.245.86(10)
e.2647.95(10)
In: Computer Science
Implement patient-centered care regarding patient values, preferences and expressed needs
Give specific behavior that meet competency
In: Nursing
////Fixme(1) add a statement to import ArrayList class
public class ListManipulation {
public static void main(String[] args) {
//Fixme(2) create an ArrayList of integers and name the ArrayList
list.
//Fixme(3) add the following numbers to the list: 10, 15, 7, -5,
73, -11, 100, 20, 5, -1
displayList(list);
System.out.println();
displayListBackwards(list);
}
public static void displayList(ArrayList<Integer> list)
{
for(Integer i: list)
System.out.print(i + " ");
}
//Fixme(4) define a method displayListBackwards, which takes an
ArrayList as a parameter and returns nothing.
//The method displays each element in the list in the reverse
order, and adds a space after each element.
//Fixme(5) define a method maxElement, which takes an ArrayList as
a parameter and returns the maximum element in the list.
//Fixme(6) define a method searchElement, which takes two
parameters.
//The first parameter is an ArrayList and the second is an int type
value.
//The method searches for value in the list.
//If the value is found in the list, the method returns its index,
otherwise, it returns -1.
//Fixme(7) define a method eventCount, which takes an ArrayList as
a parameter and returns the number of even element in the
list.
}
In: Computer Science
In: Computer Science
Rank the four customer service factors (time, dependability, communication, and convenience) from most important to least important from customers’ point of view in any industry of your own selection.
In: Operations Management
3. Bond valuation
The process of bond valuation is based on the fundamental concept that the current price of a security can be determined by calculating the present value of the cash flows that the security will generate in the future.
There is a consistent and predictable relationship between a bond’s coupon rate, its par value, a bondholder’s required return, and the bond’s resulting intrinsic value. Trading at a discount, trading at a premium, and trading at par refer to particular relationships between a bond’s intrinsic value and its par value. This also results from the relationship between a bond’s coupon rate and a bondholder’s required rate of return.
Remember, a bond’s coupon rate partially determines the interest-based return that a bond pay, and a bondholder’s required return reflects the return that a bondholder to receive from a given investment.
The mathematics of bond valuation imply a predictable relationship between the bond’s coupon rate, the bondholder’s required return, the bond’s par value, and its intrinsic value. These relationships can be summarized as follows:
• | When the bond’s coupon rate is equal to the bondholder’s required return, the bond’s intrinsic value will equal its par value, and the bond will trade at par. |
• | When the bond’s coupon rate is greater than the bondholder’s required return, the bond’s intrinsic value will its par value, and the bond will trade at a premium. |
• | When the bond’s coupon rate is less than the bondholder’s required return, the bond’s intrinsic value will be less than its par value, and the bond will trade at . |
For example, assume Amelia wants to earn a return of 9.00% and is offered the opportunity to purchase a $1,000 par value bond that pays a 9.00% coupon rate (distributed semiannually) with three years remaining to maturity. The following formula can be used to compute the bond’s intrinsic value:
Intrinsic ValueIntrinsic Value | = = | A(1+C)1+A(1+C)2+A(1+C)3+A(1+C)4+A(1+C)5+A(1+C)6+B(1+C)6A1+C1+A1+C2+A1+C3+A1+C4+A1+C5+A1+C6+B1+C6 |
Complete the following table by identifying the appropriate corresponding variables used in the equation.
Unknown |
Variable Name |
Variable Value |
---|---|---|
A | ||
B | $1,000 | |
C | Semiannual required return |
Based on this equation and the data, it is to expect that Amelia’s potential bond investment is currently exhibiting an intrinsic value equal to $1,000.
Now, consider the situation in which Amelia wants to earn a return of 12%, but the bond being considered for purchase offers a coupon rate of 9.00%. Again, assume that the bond pays semiannual interest payments and has three years to maturity. If you round the bond’s intrinsic value to the nearest whole dollar, then its intrinsic value of (rounded to the nearest whole dollar) is its par value, so that the bond is .
Given your computation and conclusions, which of the following statements is true?
When the coupon rate is less than Amelia’s required return, the bond should trade at a discount.
A bond should trade at par when the coupon rate is less than Amelia’s required return.
When the coupon rate is less than Amelia’s required return, the intrinsic value will be greater than its par value.
When the coupon rate is less than Amelia’s required return, the bond should trade at a premium.
In: Finance
In: Operations Management
Question 1
Men are viewed as more attractive by women when they are _________.
A. |
introverted |
|
B. |
agoraphobic |
|
C. |
submissive |
|
D. |
fond of children |
Question 2
According to social psychologists, to __________ is to change one’s behavior to adhere to social norms.
A. |
obey |
|
B. |
reciprocate |
|
C. |
conform |
|
D. |
discriminate |
Question 3
Research has shown that mere __________ to any stimulus increases the likelihood that people will like it and react favorably to it.
A. |
repeated exposure |
|
B. |
incidental similarity |
|
C. |
relating |
|
D. |
initial introduction |
Question 4
The first time that Timko drove a certain pickup truck, he immediately liked the way it performed. Later, he learned that its performance was good, but not as good as he had first thought. His initial attitude, by which he judged later ideas about the truck, is what social psychologists call a __________.
A. |
frontal cognition |
|
B. |
conservative attitude |
|
C. |
cognitive attitude |
|
D. |
cognitive anchor |
Question 5
Your friend was recently killed by a drunk driver. Students from an organization against drunk drivers ask you to sign their petition and donate to their cause. You are more than happy to comply because of your friend’s recent demise. This demonstrates how the __________ of your attitude influences your behavior.
A. |
accessibility |
|
B. |
specificity |
|
C. |
universality |
|
D. |
conformity |
Question 6
When members of a group share similar attitudes, these attitudes can become intensified and decisions are more likely to involve __________.
A. |
no-risk |
|
B. |
risk |
|
C. |
splits among members |
|
D. |
none of these |
Question 7
You observe two strangers in a heated argument that results in a physical fight. You will most likely assume _________.
A. |
one probably took something and the other is merely trying to get it back |
|
B. |
one has treated the other unfairly |
|
C. |
they are very aggressive individuals |
|
D. |
any of the above are just as likely |
Question 8
In __________ terms, prejudice is connected with fear, dislike or hatred.
A. |
cognitive |
|
B. |
emotional |
|
C. |
behavioral |
|
D. |
all of these |
Question 9
The area of social psychology concerned with first impressions, attribution theory, body language and ways in which we perceive other people is _________.
A. |
social attitude formation |
|
B. |
social perception |
|
C. |
social persuasion |
|
D. |
social obedience |
Question 10
Persuasive communicators usually have a good deal of __________.
A. |
expertise |
|
B. |
attractiveness |
|
C. |
trustworthiness |
|
D. |
all of these |
Question 11
When you see a classmate in class or at a study session, they are always very friendly towards you. However, when you run into them at an upscale party, they act as if they do not know you. Since you know they are a friendly person, you are most likely to attribute your classmate’s behavior to _________.
A. |
fundamental attribution error |
|
B. |
a stereotype |
|
C. |
situational attributions |
|
D. |
a dispositional attribution |
Question 12
Women are generally more likely than men to help people in need. The major reason for this is that _________.
A. |
women have a genetic predisposition to serve others |
|
B. |
women are anatomically disposed to help others |
|
C. |
women are more likely than men to be empathic |
|
D. |
none of these |
Question 13
If a clothing company wants to sell their product to adolescents, it would be best to have a _________ endorse their product.
A. |
teenager |
|
B. |
famous teenager |
|
C. |
parent |
|
D. |
child |
Question 14
Conforming to the outright commands of another is called __________.
A. |
deindividuation |
|
B. |
polarization |
|
C. |
obedience |
|
D. |
none of these |
Question 15
You are about to give your first speech. You are nervous and hope you don’t do something foolish in front of the whole class. The presence of the class is not likely to facilitate your performance due to __________.
A. |
social pressure |
|
B. |
evaluation apprehension |
|
C. |
deindividuation |
|
D. |
diffusion of responsibility |
In: Psychology
In: Computer Science
Does the Maxwell’s demon violate the 2nd law of thermodynamics? If not, why?
In: Physics
give an arbitrary list of integers, how many are 3? (in scheme)
In: Computer Science
Write a program in Python jupyter notebook for
following:
Part1:
Course grade calculation: Course grades for CIS 1100 are calculated
based on two assignments, a midterm exam, and a final exam. Here
are the weights of these.
Assignments 25%
Midterm exam 35%
Final exam 40%
Ask the user for the scores they received for the two assignments, midterm exam, and the final exam. Then calculate and display their total weighted score they received for the course.
Based on the weighted score, calculate and display the letter grade. Here are the grading guidelines:
Score >=90: A
Score >=80: B
Score >=70: C
Score <70: F
Part 2:
The colors red, blue, and yellow are known as the primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color, as shown here:
When you mix red and blue, you get purple.
When you mix red and yellow, you get orange.
When you mix blue and yellow, you get green.
Design a program that prompts the user to enter the names of two primary colors to mix. If the user enters anything other than “red,” “blue,” or “yellow,” the program should display an error message. Otherwise, the program should display the name of the secondary color that results.
In: Computer Science