Homework Answers

Math 51397 50414
Physics 44335 44333
Chemistry 40988 40988
Economics 30646 30644
Programming & Computer Science 26878 26876
English 10084 10084
Biology 8111 8109
Management 6239 6239
Engineering 6056 6056
History 3490 3489
Psychology 2129 2129
Sociology 1858 1858
Geography 1574 1574
Marketing 1443 1443
Philosophy 1001 1001
Political Science 892 891
Law 876 876
French 438 438
Other 199 199

Questions: 238 634

Answers by our Experts: 237 641

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program that does the following for 15 students:

 Reads in 3 marks for each student, however, you need to make provision that the user

might be typing invalid values – when an invalid mark is entered, the user should be prompted to re-enter a valid mark. This should happen continuously until you have three valid marks for each student (valid marks are marks between 0 and 100; 0 and 100 included). Your prompt message to the user should indicate which number is being requested

 Calculates and displays the highest mark for each student.

Finds and displays the highest mark in the class.

 Adapt your code to also read in the name of each student, and add the name to the display

of the highest mark for each student

 When displaying the overall highest mark, the name of the relevant student should also be

displayed.

 Update your solution to make use of the getMark method. In this updated version, your prompt messages does

not have to indicate which mark is being requested.


One way of aiding low-income families is to increase the minimum wage. An alternative is to provide a direct grant of non-labor income. Compare the impact of these two options on work incentives.


3.1. [10 marks] Write a method with the following details: 

  • Name: CalculateGravitationalAttraction 
  • • Parameters: o A double representing the mass of the first body - name it "mass1" 
  • o A double representing the mass of the second body - name it "mass2" 
  • o A double representing the distance between them - name it "distance" 
  • Returns: A double representing the attractive force between the bodies 
  • Displays: Nothing 
  • Task: Calculate and return the force of attraction between them. Formula: o Force = G * (mass1 * mass2) / distance ^ 2 ▪ where G = 6.673e-11 (“G” should be a constant) 
  • ▪ for the power of 2 use Math.Pow() method 

3.2. [10 marks] Using the method below, write the statements to call the above method with the masses of the earth, moon and the distance between them and display the resulting force. 

- Mass of Earth: 5.972E24 

- Mass of Moon: 7.348E22 

- Distance: 384,400,000 meters 

- Answer: 1.99e020N - You should use “E” as a format specifier in your output (like when you use N, F, N2) 



11. The battery life of a certain battery is normally distributed with a mean of 90 days and a standard deviation of 3 days.

For each of the following questions, construct a normal distribution curve and provide the answer.

a)    About what percent of the products last between 87 and 93 days?

b)    About what percent of the products last 84 or less days?

For each of the following questions, use the standard normal table and provide the answer.

c) About what percent of the products last between 89 and 94 days?

d) About what percent of the products last 95 or more days? 



Write a user defined method named getMark that can be used to get a valid mark from the user. Your method must continuously ask the user for a mark, until a valid mark is entered (valid marks are between 0 and 100). If a user enters an invalid mark, display an error message before asking for a valid mark to be entered. The method must return the valid value to the calling program.

Write a user defined method named isPass that can be used to determine whether a mark is a pass mark (greater or equal to 50). The method must take as input a mark, and return a boolean, indicating whether the mark was a pass mark.

Write a program that reads in 5 marks by using the getMark method to ensure that valid marks are processed. You need to calculate the sum and the average of the marks. Your program must also use the isPass method to determine the number of pass marks entered. When the 5 marks have been processed you need to display the sum, average and number of passes (from these marks).


The number of accidents in a production facility has a Poisson distribution with a mean of 2.7 per month. For a given month, what is the probability that there will be more than three (3) accidents?



Write a program that takes marks of 10 students as input. It calculates the class average and displays it on the screen. Interaction with the program might look like this. Use while loop.



 1. [15 marks] Write a new method that will work as the menu of your application. Details: 

  • Name: YourNameMenu – replace “YourName” with your first name. For example: 
  • Parameter: None 
  • Returns: A string representing the choice the user have done for the menu option 
  • Displays: The menu below - It should MATCH EXACTLY the output you see below 
  • Task: Prints out the menu below, collects the user input and returns the input as the method’s return value. 

2. [25 marks] In your Main method, using a “while” loop, not a “do while”, write the code to call the Menu method you have created on question #1 repeatedly. 

Using a “switch” structure, write the code to implement the following required functionality for all valid responses. Valid responses includes both upper and lower case of the input. The following must be implemented: 

- A will call the DemoQuestion3() method 

- B will call the DemoQuestion4() method 

- C will call the DemoQuestion5() method 

- X will terminate the program 

Any other 


The % live bacteria due to sterilization follows an exponential relation such as % live = 30 exp (-0.01 T). T is the temperature in oC. What should be the temperature to achieve just less than 5% live bacteria?


Using named meninges and ventricles state the functions of cerebrospinal fluid and where it circulates. (10%- 5 marks for meninges and ventricles, 5 for functions of CSF).( short answer please)


LATEST TUTORIALS
APPROVED BY CLIENTS