Write application that enables a user to input the grade and number of credit hours for any number of courses. Calculate the GPA on a 4.0 scale using those values. Grade point average (GPA) is calculated by dividing the total amount of grade points earned, sometimes referred to as quality points, by the total number of credit hours attempted. For each hour, an A receives 4 grade or quality points, a B receives 3 points, a C receives 2 points, and a D receives 1 point. Thus, a three-credit hour course receiving an A would have 12 quality points associated with the course. Allow the user to input any number of courses and associated grades. Display the number of hours earned and the calculated GPA. Must be in C#.
In: Computer Science
What is the number one public health concern in the United States. (COVID-19)
In: Nursing
Create a class named Student. Student has fields for an ID number, number of credit hours earned, and number of points earned. (For example, many schools compute grade point averages based on a scale of 4, so a three-credit-hour class in which a student earns an A is worth 12 points.) Include methods to assign values to all fields. Student also has a field for grade point average. Include a method to compute the grade point average field by dividing points by credit hours earned. Write methods to display the values in each Student field. Save this class as Student.java
Write a class named ShowStudent that instantiates a Student object from the class you created and assigns values to its fields. Compute the Student grade point average, and then display all the values associated with the Student. Save the application as ShowStudent.java
Create a constructor for the Student class you created. The constructor should initialize each Student's ID number to 9999, his or her points earned to 12, and credit hours to 3 (resulting in a grade point average of 4.0). Write a program that demonstrates that the constructor works by instantiating an object and displaying the initial values. Save the application as ShowStudent2.java
In: Computer Science
Write a Java program that implements the Number Guessing Game:
1. First generate a random number (int) between 0 and 100, call it N
2. Read user input (a guess)
3. check the number, if it's smaller than N, output "The number is larger than that"
4. If the input is larger than N, output "The number is smaller than that"
5. If the input is equal to N, output " You got it!", and exit
6. Repeat until the user guesses the right number.
------- PART 2 : ---------------------
1. Modify the program to limit the number of user guesses to 7 (stop after 7 trials)
------- OPTIONAL : --------------------
2. Modify the program to change the role of the user and program (the user picks a number, and the program tries to guess what it is)
In: Computer Science
For this problem, let ke = max{2,the largest even number in your
student number}, ko = max{3,the largest odd number in your student
number} So, e.g., if your student number is 5135731, then ke = 2
and ko = 7. The data in Table 2 represents points (xi,yi) sampled
from an experimentally generated triangular wave function with
period 2π.
(a) Use the least-squares technique we developed in class to
estimate the coefficients a, b and c for the optimal least-squares fit
of the data points to the function yf(x) = acos(x) + bcos(kox) +
ccos(kex)
(b) The repeating triangular wave function can be expressed as y(x)
=(2x−π π 0 ≤ x ≤ π3 π−2x π π ≤ x ≤ 2π Using the inner product
hf(x),g(x)i = 1 πR2π 0 f(x)g(x) dx, compare the least-squares
coefficients you have obtained with the inner productshy(x),cos(nx)i,
for suitable choices of n. How do they compare? What can you
conclude?
x y 0.00000 -0.96468 0.50000 -0.64637 1.00000 -0.32806 1.50000
-0.00975 2.00000 0.30856 2.50000 0.62687 3.00000 0.94518 3.50000
0.80715 4.00000 0.48884 4.50000 0.17053 5.00000 -0.14778 5.50000
-0.46609 6.00000 -0.78440
In: Advanced Math
Number of patients complaining of Number of patients complaining of
GI symptoms (Vomiting, diarrhea) Respiratory symptoms (cough, fever, shortness of breath)
Oct 2, 2019 0 1
Oct 3, 2019 0 0
Oct 4, 2019 0 1
Oct 5, 2019 2 2
Oct 6, 2019 32 4
Oct 7, 2019 54 9
Oct 8, 2019 37 15
Oct 9, 2019 0 20
Oct 10, 2019 0 29
Oct 11, 2019 0 48
Oct 12, 2019 0 72
Oct 13, 2019 0 112
Oct 14, 2019 0 150
The county health department received the above data from the emergency room of a local hospital. A) These both represent epidemics. What type of epidemics are they and how do they differ?
B) Which epidemic (GI or Respiratory) would you be more concerned about and why?
In: Biology
Design, implement, and fully test a Python3 function that converts a number to words (words_from_number(number: int)). It should expect to be passed a natural number (such as 12345) and return the corresponding words (i.e., “twelve thousand three hundred forty-five”). Since Python integers can grow arbitrarily large, your code should be flexible, handling at least 20 digits (realistically, it’s just as easy up to 30 digits). Spell everything correctly, and use correct punctuation (hyphens for forty-five and thirty-seven, no commas or plurals). You may only use built-in Python functions, not any modules or third-party libraries!
In: Computer Science
Problem 1:
Problem 2:
Assume that any number of 1s side-by-side represent a number, with
the value of that number being
the number of 1s that appear. For example:
011111110
represents the number 7. (This style of representing numbers is referred to a unary notation – it’s generally not used anywhere but number theory / set theory.)
Write a Turing machine that computes the remainder of its input when that input is divided by 3. Given, for example, the following input tape:
running your program should produce the following result:
Problem 3 – Duplicating a number
Implement a Turing machine program that copies an input value on the tape, leaving two identical values separated by a single 0. For example, if the input tape is:
The result should be:
problem 4:
Below find the states for a 4-state Turing machine that, when starting with a blank tape, produces 13 1s. Your task in this extra credit problem is to write a 4-state Turing machine that produces at least eight but no more than twelve 1s before stopping.
It may be useful to look at the following 3-state Turing machine and use it for ideas on how to make your 4-state Turing machine. Note, though, that there are many solutions to this problem, and that only some of these solutions resemble the 3-state machine below.
In: Computer Science
Random Number Guessing Game Write a program in C++ that generates a random number between 1 and 100 and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display “Too high. Try again.” If the user’s guess is lower than the random number, the program should display “Too low. Try again.” The program should use a loop that repeats until the user correctly guesses the random number. Then the program should display “Congratulations. You figured out my number.” Also Enhance the program so it keeps a count of the number of guesses the user makes. When the user correctly guesses the random number, the program should display the number of guesses along with the message of congratulations. d. Use of sufficient comments to clarify use of syntax. e. Use of meaningful variable (identifier) in your program f. Separate input, process, and output instructions by a comment (In-Process-Out) g. Working program without any error
In: Computer Science
1a.
In the formation of table salt (NaCl), sodium (atomic number 11) and chlorine (atomic number 17) interact because:
Select one:
a. sodium and chlorine share a pair of electrons
b. sodium and chlorine share two pairs of electrons
c. chlorine donates seven electrons to sodium
d. the atoms are attracted to one another by hydrophobic interactions
e. sodium donates one electron to chlorine
1b.
Which, if any, of the following statements is true?
Select one:
a. Haploid cells cannot divide by meiosis.
b. Haploid cells can divide by mitosis.
c. Diploid cells can divide by meiosis.
d. Diploid cells can divide by mitosis.
e. All of the above responses are correct.
1c.
Which of the following statements about mitochondria FALSE?
Select one:
a. Mitochondria perform the same biological function as chloroplasts.
b. Mitochondria have more than one membrane.
c. Mitochondria are involved in energy metabolism.
d. Mitochondria possess their own DNA.
e. The folds of the inner mitochondrial membrane are called cristae.
1d.
Each element is unique and different from other elements because of the number of protons in the nuclei of its atoms. Which of the following indicates the number of protons in an atom's nucleus?
Select one:
a. atomic mass
b. atomic weight
c. atomic number
d. mass weight
e. mass number
In: Biology