Questions
Please do in java with code available for copy and with comments so I can follow...

Please do in java with code available for copy and with comments so I can follow along :)\

Develop a program that prints out the sum of each column of a two-dimensional array. The program defines method sumColumn() takes a two-dimensional array of integers and returns a single-dimensional array that stores the sum of columns of the passed array. The program main method prompts the user to enter a 3-by-4 array, prints out the array, and then calls method sumColumns(). Finally, it prints out the array retuned by method sumColumns(). Document your code, and organize and space the outputs properly as shown below. C++ students: instead of asking the user for input, you must read it from a file. See appendix for more information.

Sample run 1:

Enter a value: 9

Enter a value: 1

Enter a value: 2

Enter a value: 4

.

.

.

Enter a value: 3

The entered matrix:

9    1    2    4

2    2    8    0

3    3    3    3

Sum of column 0 is 14

Sum of column 1 is 6

Sum of column 2 is 13

Sum of column 3 is 7

In: Computer Science

Find the volume of the parallelepiped with adjacent edges PQ, PR, and PS. P(−2, 1, 0),...

Find the volume of the parallelepiped with adjacent edges

PQ, PR,

and PS.

P(−2, 1, 0), Q(3, 3, 3), R(1, 4, −1), S(3, 6, 1)

cubic units

In: Math

Plot the data and line of best fit in R and paste it into this document

C

D

3

2

6

7

8

5

9

4

1

0

3

4

Plot the data and line of best fit in R and paste it into this document

Code:

Plot:

In: Statistics and Probability

1. List 4 possible causes of ABO discrepancies associated with the presence or absence of ABO...

1. List 4 possible causes of ABO discrepancies associated with the presence or absence of ABO antigens

2. List 4 possible causes of ABO discrepancies associated the presence or absence of ABO antibodies

In: Nursing

when complex 1 is inhibited by rotenone in the electron transport chain, what are the expected...

when complex 1 is inhibited by rotenone in the electron transport chain, what are the expected redox states (oxidized or reduced) for complexes 1, 2, 3, and 4?

In: Biology

JAVA PROGRAM The Florida Dental Association needs a simple program to record what teeth the members...

JAVA PROGRAM

The Florida Dental Association needs a simple program to record what teeth the members of Florida families have. Different Floridians have different numbers of different types of teeth (the program must use this simplified categorization of types of teeth):

  • Biting teeth (the 'B' teeth)
  • Chewing teeth (the 'C' teeth)
  • Missing teeth (the 'M' teeth)

The program must record the teeth for one Florida family. When it starts the program asks how many people there are in the family (maximally 5), then for each family member gets their name, a string of tooth types for the uppers (maximally 10 teeth including missing teeth), and a string a tooth types for the lowers (maximally 10 teeth), e.g., the string "CMCBBBMCCM" would represent 10 teeth (of which three are missing). The names are recorded in an array of strings. The tooth information is recorded in a three dimensional array of characters, where each plane corresponds to a person, there are two rows for uppers and lowers, and each row has a column for each tooth. Once the information is recorded the program must offer a menu of four options:

  1. Print the family's teeth record.
  2. Extract a tooth (with a check that there is something there to remove).
  3. Report the family's root canal indices, which are the roots of the quadratic equation Bx2 + Cx - M, where B, C, and M are the family's numbers of those types of teeth.
  4. Exit (with a smile)

The program must be reasonably idiot proof:

  • Menu options must be accepted in upper and lower case.
  • Tooth letters must be accepted in upper and lower case.
  • All input must be checked to be in range, and if not the user must be asked to input again.
  • You may assume that numeric input will be syntactically correct.

Here's what a sample run should look like (with the keyboard input shown in italics) ...

Welcome to the Floridian Tooth Records
--------------------------------------
Please enter number of people in the family : -3
Invalid number of people, try again         : 7
Invalid number of people, try again         : 3
Please enter the name for family member 1   : Henrietta
Please enter the uppers for Henrietta       : ABCDEFGHIJ
Invalid teeth types, try again              : BBBCMCBBBMCCMBBB
Too many teeth, try again                   : CMCBBBMCCM
Please enter the lowers for Henrietta       : CCMBBMCC
Please enter the name for family member 2   : Stanley
Please enter the uppers for Stanley         : mbbm
Please enter the lowers for Stanley         : ccMMcc
Please enter the name for family member 3   : Raul
Please enter the uppers for Raul            : CCBbbcC
Please enter the lowers for Raul            : ccbBBCC

(P)rint, (E)xtract, (R)oot, e(X)it          : T
Invalid menu option, try again              : p

Henrietta
  Uppers:  1:C  2:M  3:C  4:B  5:B  6:B  7:M  8:C  9:C 10:M
  Lowers:  1:C  2:C  3:M  4:B  5:B  6:M  7:C  8:C
Stanley
  Uppers:  1:M  2:B  3:B  4:M
  Lowers:  1:C  2:C  3:M  4:M  5:C  6:C
Raul
  Uppers:  1:C  2:C  3:B  4:B  5:B  6:C  7:C
  Lowers:  1:C  2:C  3:B  4:B  5:B  6:C  7:C

(P)rint, (E)xtract, (R)oot, e(X)it          : E
Which family member                         : Melanie
Invalid family member, try again            : stanley
Which tooth layer (U)pper or (L)ower        : M
Invalid layer, try again                    : u
Which tooth number                          : 27
Invalid tooth number, try again             : 4
Missing tooth, try again                    : 2

(P)rint, (E)xtract, (R)oot, e(X)it          : P

Henrietta
  Uppers:  1:C  2:M  3:C  4:B  5:B  6:B  7:M  8:C  9:C 10:M
  Lowers:  1:C  2:C  3:M  4:B  5:B  6:M  7:C  8:C
Stanley
  Uppers:  1:M  2:M  3:B  4:M
  Lowers:  1:C  2:C  3:M  4:M  5:C  6:C
Raul
  Uppers:  1:C  2:C  3:B  4:B  5:B  6:C  7:C
  Lowers:  1:C  2:C  3:B  4:B  5:B  6:C  7:C

(P)rint, (E)xtract, (R)oot, e(X)it          : R
One root canal at     0.40
Another root canal at -2.07

(P)rint, (E)xtract, (R)oot, e(X)it          : X

Exiting the Floridian Tooth Records :-)

In: Computer Science

Determine the electron configuration and whether each of the following is paramagnetic. Also, determine if the...

Determine the electron configuration and whether each of the following is paramagnetic. Also, determine if the complex undergoes a Jahn-Teller distortion.
1. [Fe(CN)6]4-
2. [Fe(CN)6]3-
3. [Co(H2O)6]3+
4. [CoF6]3-
5. [Ni(CO)6]2+

In: Chemistry

Independent observations of the random X magnitude, which characterizes the deviation of the length of the...

Independent observations of the random X magnitude, which characterizes the deviation of the length of the part from the required technical conditions, are presented in the form of a simple statistical series. It is necessary to build a statistical (variation) series and histogram, to find estimates for mathematical expectation and variance.

Show your work.

1

4. 1

2

4. 6

3

4. 63

4

4. 94

5

5. 12

6

4. 12

7

4. 27

8

5. 17

9

5. 03

10

5

11

4. 29

12

4. 31

13

4. 42

14

4. 67

15

4. 54

16

4. 82

17

4. 38

18

4

19

5.21

20

5.22

21

3.94

22

3.8

23

3.72

In: Statistics and Probability

Use the following time-series data to answer the given questions. Time Period Value 1 27 2...

Use the following time-series data to answer the given questions.

Time Period Value
1 27
2 30
3 58
4 63
5 59
6 67
7 70
8 86
9 101
10 97



a. Develop forecasts for periods 5 through 10 using 4-month moving averages.

b. Develop forecasts for periods 5 through 10 using 4-month weighted moving averages. Weight the most recent month by a factor of 4, the previous month by 2, and the other months by 1.

c. Compute the errors of the forecasts in parts (a) and (b) and observe the differences in the errors forecast by the two different techniques.

In: Statistics and Probability

Use the following time-series data to answer the given questions. Time Period Value 1 26 2...

Use the following time-series data to answer the given questions.

Time Period Value
1 26
2 30
3 57
4 62
5 58
6 65
7 70
8 86
9 101
10 97



a. Develop forecasts for periods 5 through 10 using 4-month moving averages.

b. Develop forecasts for periods 5 through 10 using 4-month weighted moving averages. Weight the most recent month by a factor of 4, the previous month by 2, and the other months by 1.

c. Compute the errors of the forecasts in parts (a) and (b) and observe the differences in the errors forecast by the two different techniques.

In: Statistics and Probability