Write a program that calculates the inverse of a
matrix and proves that. “AA -1 = A -1 A = I”
Multiply two polynomials of same degree using divide and conquer by Strassen's matrix multiplication method .
Describe the difference between a chained conditional and a nested conditional. Give your own example of each. Do not copy examples from the textbook.
Deeply nested conditionals can become difficult to read. Describe a strategy for avoiding nested conditionals. Give your own example of a nested conditional that can be modified to become a single conditional, and show the equivalent single conditional. Do not copy the example from the textbook
Write a program that has 3 functions: the main function; a function, called getInput(), to
validate the input data; and a function, called findSum(t), to find the summation of even
or odd numbers in a range(0, 10). In particular,
The getInput() function:
This function should be called in the main function to validate the data. It asks the
user to input either “e” (even numbers) OR “o” (old numbers). It keeps
asking the user for valid input unit valid input is given, then it returns the valid input
to the main function.
The findSum(t) function:
t: a "str" which shows whether you want to sum of all the even or odd numbers in the
range(0, 10)
If the value of the argument t is 'e', the function should return the sum of all
even natural numbers in the range(0, 10).
If t has the value 'o', the function should return the sum of all odd natural
numbers in the range(0, 10).
The main function (): controls the flow of the program and prints the result
GIVE ME MY CHANGE in PYTHON!
The coins and bills in the existing Philippine Monetary System are
given below.
Coins
Bills
5 centavos
10 centavos
20 pesos
50 pesos
25 centavos
1 peso
100 pesos
200 pesos
5 pesos
10 pesos
500 pesos
1000 pesos
Given a change in pesos, create a Python script which will decompose the input CHANGE in terms of the largest possible amount in bills/coins.
Draw a flowchart and create a program that check the weight of the users baggage. The standard baggage is 20kg.An additional charge of PHP 200 per kilogram will be incured when it is exceeded. Pls help me
How to create c++ program using while loop that will get a number from the user. If the user inputs a number of more than 10, the program will be terminated, hence if lower than 10, the program will keep asking the user input number?
Make a program that will ask the student to enter a PIN Code. Each year level has its own PIN Code. If
the entered PIN Code is correct a message “Access Granted! Welcome yr_lvl Student.” will appear, if it is
wrong a message “Invalid PIN! Access Denied” will appear. The program will terminate after three (3)
incorrect attempt.
An attorney’s office charge Php150 for every 20 minutes of consultation. Write a program that will ask
the user to enter the number of hours incurred for a consultation. The program then displays the bill of
the user and it starts over again. The loop will only stop if the user entered zero (0) hours for
consultation.
Exam Scores
Captain Holt has corrected the exam papers of detectives and noted the scores of the written and physical tests. The results were posted in two lists: one with the scores of the written test, the other with the scores of the physical test in order of the badge numbers. The office needs a list containing the detective's scores on both tests in order of their badge number.
Input
First line of input contains the score of students in Chemistry exam separated by comma. Second line of input contains the score of students in English exam separated by comma.
Output
Every line of output contains the score obtained by each student in English and Chemistry exams separated by space
Explanation
Given the input
Written Test 65
Minysical Test - 25
That is, Detectivel scored 75 in Physical Test and 65 in
Written Test.
The output should be 76 65
Sample Input 1
65
75
Sample Output 1
75 65