Search if-x-x-then-what-is-the-value-of-x-x

If x x then what is the value of x x

 
 

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

4.Please check options and pictures within the file attached. If the questions can be answered within a free demo session ...

hin a free demo session as I have my answers, but just want to confirm them, that would be greatly appreciated. Question 1: A block of mass M = 0.10 kg is attached to one end of a spring with spring constant k = 100 N/m . The other end of the spring is attached to a fixed wall. The block is pushed against the spring, compressing it a distance x = 0.04 m . The block is then released from rest, and the block-spring system travels along a horizontal, rough track. Data collected from a motion detector are used to create a graph of the kinetic energy K and spring potential energy Us of the system as a function of the block's position as the spring expands. How can the student determine the amount of mechanical energy dissipated by friction as the spring expanded to its natural spring length? Question 2: The Atwood’s machine shown consists of two blocks connected by a light string that passes over a pulley of negligible mass and negligible friction. The blocks are released from rest, and m2 is greater than m1. Assume that the reference line of zero gravitational potential energy is the floor. Which of the following best represents the total gravitational potential energy U and total kinetic energy K of the block-block-Earth system as a function of the height h of block m1? Question 3: A 2 kg block is placed at the top of an incline and released from rest near Earth’s surface and unknown distance H above the ground. The angle θ between the ground and the incline is also unknown. Frictional forces between the block and the incline are considered to be negligible. The block eventually slides to the bottom of the incline after 0.75 s. The block’s velocity v as a function of time t is shown in the graph starting from the instant it is released. How could a student use the graph to determine the total energy of the block-Earth system? Question 4: A block slides across a flat, horizontal surface to the right. For each choice, the arrows represent velocity vectors of the block at successive intervals of time. Which of the following diagrams represents the situation in which the block loses kinetic energy?
View More

5.Hello, I have a problem calculating probability for a certain thing that happened. I'll try and make it sound like ...

it sound like a math problem. The problem : What are the chances of a 4 sided die landing on 1 twice and on 2 twice out of 4 rolls. The solution I came up with originally was (2/4) x (2/4) x (2/4) x (2/4) . Which I realized was wrong as this allowed the die to land on 1 four times in a row. So then I came up with this soultion (which i still think is wrong) (2/4) x (2/4) x (1/4) x (1/4) . So the reasoning behind this is : The first roll obviously has a 50% chance to roll on either 1 or 2. Second roll is the same. BUT, lets say both of them land on 1, and now it HAS to land on 2 the remaining two times. So my problem is with the current solution that I have is what if the die lands on 1 on the first roll, then on two for the second one. then the third roll would still have a 2/4 AKA a 50% chance of landing on either one. I'm sure the last roll is 1/4 but I just dont know if the order matters on the rolls. This has been driving me crazy the last hour. Please help if you can thanks
View More

6.Decide whether each statement is true or false, and provide a short explanation (if true) or a counter-example (if false). (a) ...

er-example (if false). (a) If |f | is integrable on [a, b], then f is also integrable on [a, b]. (b) If f = F ′ for some function F on [a, b], then f is continuous on [a, b]. (c) If g is continuous on [a,b], then g = G′ for some G on [a,b]. (d) If G(x) = ???? x g is differentiable at p ∈ (a, b), then g is continuous at p.
View More

7.Let a = sin b, 0 < b < pi/2. Find, in terms of b, the solutions of sin 2x = ...

So far I just tried to do the obvious and substitute -a for - sin b. Like so; sin 2x = - sin b which then becomes; sin 2x = sin -b and then I can remove the sines and rearrange for x, which gives me this. 2x = -b x = -b/2 However, if I were to look at the domain of b. Any value within the domain will give a value that doesn't fit the domain of x. Any suggestions would be great. Thank you!
View More

8.Write program that draws out a path based on the user input. The starting coordinates for the path is the middle ...

is the middle of the DrawingPanel. Ask the user to enter an x and a y coordinate for a DrawingPanel. Your program will draw a line from the last coordinates to the current coordinates the user enters. If the user enters an x value or y value out of bounds of the DrawingPanel, then end the program.
View More

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

mathematicsalgebra Physics