Search what-is-the-value-of-the-expression-a-b-c-d

What is the value of the expression a b c d

 
 

Top Questions

1.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

2.Compute the Pearson correlation to measure the degree of relationship between the two test scores. b. Is the correlation statistically significant? Use ...

b. Is the correlation statistically significant? Use a two-tailed test with α = .01. c. What percentage of variance for the cognitive scores is predicted from the 7-Minute Screen scores? (Compute the value of r2 .)
View More

4.Above is 2 years and 4 months of actual demand data for a new call center. For example, cell ...

resenets 12,380 calls received in January 2019. Using this data, create two different models for demand forecasting. One combining Exponential Smoothing with Trend, and one combing Exponential Smoothing with both Trend and Seasonality. Ensure you conduct some type of error analysis and try to input adjust factors (such as Alpha) to minimize error. Please clearly indicate at the top of your sheet your selected value for factors (Alpha, Beta, Gamma) and the error analysis metric name and value. In the space below, indicate which model has less error and what you believe that indicates is true about the underlying demand pattern.
View More

5.11. In a game, you draw thirteen cards with replacement from a deck of playing cards. If you draw any ...

y aces or twos, you lose the game immediately. You also lose if you draw picture cards(J,Q,K) more than twice. In this question, you’ll study the probability of winning this game.(a) What is the probability of drawing no aces or twos after thirteen draws?(b) Given you have drawn thirteen times, none of which is aces or twos, what is the probability that you draw at most two picture cards?(c) What is the probability to win this game? 12. Suppose you are tossing an unbiased coin for100times.(a) What is the probability of getting50heads and50tails?(b) LetXbe the random variable counting the number of heads you observe in this exper-iment. What is the expected value ofX? What is the variance ofX? What is thestandard deviation ofX? 13. The following are probability distributions for two random variablesX,Y. kPr(X=k) 0,0.4 1,0.3 2,0.3 kPr(Y=k) 0,0.5 1,0.3 2,0.2 (a) Construct the probability distribution table for the random variableXY.(b) Find E[X],E[Y] and E[XY]. Is is true that E[XY] =E[X]E[Y]?(c) Find the variances σ2X,σ2Y,σ2XY of X,Y and XY. Is it true that σ2XY=σ2Xσ2Y? 14. The aliens who are fond of gambling came back to play another game with you. In this game, you first toss a coin5times. If you observe3or fewer tails, you roll a die3times. If youobserve4or more tails, you roll a die20times. What is the probability that you end up with at most two6’s in your dice rolls? 15. (Challenge question, worth2points) You have two bags, each of which contains10marbles.Each time you remove a marble from a random bag. What is the probability that after one of the bags is emptied, there are still exactly3marbles in the other bag?
View More

6.Suppose that 5% of the time Danny attends a concert twice a week, 45% of the time he attends a ...

rt once a week, and 50% of the time he doesn't attend a concert at all in a given week. What is the expected value for the number of times Danny attends a concert during a week?
View More

7.You have decided to buy a schooner to sail the Maine coast when you retire. The boat builder has ...

fered to allow you to pay for the schooner in 8 annual payments of $35,000 and the payments will begin 5 years from today. If the interest rate is 4%, what is the value today of your schooner?
View More

8.Exercise 4) A fair coin is tossed. If it lands heads, a fair four-sided die is thrown (with values 2,3,4,7). If ...

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