6. Assume that two matrices A, B are invertible. With the help of Mathematica show with one counterexample that (A B)-1 is not equal to A-1 B-1
If you wanted your loop’s control variable to start at 100 and terminate when it becomes 3, which syntax should be used?
Select one:
a.
for(int i = 100; i < 3; i++) {}
b.
for(int i = 0; i < 100; i+3) {}
c.
for(int i = 3; i > 100; i--) {}
d.
for(int i = 100; i >= 3; i--) { }
Create a program with three methods/functions, The first one takes in n which is the size of an array then creates and populate the array with student names, the second method takes in n which is the size of an array then creates and populate n by 3 array with student marks(The three marks are for test 1 - 3) and finally a method that takes in the two arrays, calculates the final mark of all test and print out the results as indicated below: The first method should return and array of names and the second should return an array all test marks(i.e. 2d array with 3 columns). The third method in addition should also return an array for all the final marks
Name Test 01 Test 02 Test 03 Final
-------- --------- --------- --------- ---------
Gerry 55 55 55 55
Sample Test 1:
Enter the total number of students:
1
Enter name:
koko
Enter mark for Test 1:
78
Enter mark for Test 2:
65
Enter mark for Test 3:
70
Name Test01 Test02 Test03 Final
------ ------ ------ ------ -----
koko 78 65 70 71
Create a program with a method that takes a single character and returns true if the character is a vowel otherwise return false.
Write a java program that accepts a given n, then create a 2D array with n rows and n columns. Then for each cell the value should be n+row to the power column. For example if we talk of n=5, then array[0][0] =(5+0)0 = 1. Print out all the values in the array created.
The Chemistry department has 4 computers, the Physics department has 8, the English de-
partment has 2, and the Math lab has 12. Write a program that produces the following out-
put. Have the computer perform the calculation in the last line. Format the output using the
appropriate escape sequences.
I need help with this, I dont have money so please do this for free.
Write a program that uses a two-dimensional list to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of the following methods:
a) Method getData: This method reads and stores the data in the two-dimensional list.
b) Method averageHigh: This method calculates and returns the average high temperature of the year.
c) Method averageLow: This method calculates and returns the average low temperature of the year.
d) Method indexHighTemp: This method returns the index of the highest temperature in the list.
e) Method indexLowTemp: This method returns the index of the lowest temperature in the list.
Write a method, reverseDigit, that takes an integer as a parameter and returns the number with its digits reversed. For example, the value of reverseDigit(12345) is 54321. Also, write a program to test your method. Call this method and print the results.
As a safety precaution banks provide a feature that during any ATM transaction if someone comes and attacks, then the customer can enter the ATM pin in reverse order. This sends a message to the nearest police station. However if the reversed pin is the same as he original pin then no alarm is created. The bank needs a software application that checks that a user chooses an ATM pin whose reverse is not the same number. A software need to be developed with following requirements using while loop.
a. Read the pin number
b. Calculate the reverse the pin number
c. if the reversed pin is same as original pin then inform the user that this is an invalid pin number