Suppose you have a main() with three local arrays, all the same size and type (say
float). The first two are already initialized to values. Write a function called
addarrays() that accepts the addresses of the three arrays as arguments; adds the contents
of the first two arrays together, element by element; and places the results in the
third array before returning. A fourth argument to this function can carry the size of the
arrays. Use pointer notation throughout; the only place you need brackets is in defining
the arrays.
create a C++ full program that calculates a factorial (!) of any number between 3 and 9 , the program must give feedback to the user if the number is less than 3.
C program to perform addition, subtraction, multiplication and
division Of two integer numbers, respectively 2 and 6 and show the result on the screen.
Input
A line containing an integer.
35Output
A line containing a string.
OutUse Monte Carlo integration to estimate the integral of a function. Also calculate the error-> limit(1,0) ∫ 𝑥 ^2 (3𝑥 + 1)𝑑x
Create class time create t1, t2,t3 as object of time. Write a c++ program to read t1 and t2 as hours, seconds and minutes. Assume hours, seconds, minutes as integer. Add these times t1 and t2 and store the result in time t3. Print the value of t3
Given a square matrix of size N*N, print the sum of upper and lower triangular elements. Upper Triangle consists of elements on the diagonal and above it. The lower triangle consists of elements on the diagonal and below it.
Design an application that will allow a user to keep track of the amount of tennis matches won by three professional tennis players. The user should be presented with a menu using the numbers 1, 2 and 3 that corresponds to the tennis players below. Tennis Players: 1. Novak Djokovic 2. Andy Murray 3. Roger Federer Prompt the user to choose a tennis player who has won a match from the menu using the numbers 1, 2 or 3; else the user enters 0 to quit. If the user chooses 1, 2 or 3, show the input section again and if the user then chooses 0, show a breakdown of the amount of matches won by each tennis player. Please note that menu items appear in the Console window. Menu items do not need to be created. Your output should also display the amount of games that have been captured. Make use of a method to get the input from the user and another method to increment the games won by the player. In your solution make provision for if a user has entered in an invalid tennis player number.
Design a Java application that will allow a user to capture the top students for a module. Allow the
user to enter in the module name, followed by the number of students the user would like to
capture.
Continue to capture the results for the number of students entered. Once all the student results
have been captured create a results report.
In the results report display the student results entered, a student count and the average result
obtained.
At Mr. G school of Programming, the final school fees to be paid is calculated as follows.
Original Fees should be greater than or equal to R50 000
Minimum fixed deposit of R10 000
If deposit is greater than pr equal to half the original fees, you get a 5% discount from the original fees
Final total fees will also include the following
School Levy is 10% of original fees
Sports fee is 5% of original fees.
Write a program the calculates the final total fees to be paid.
Program must request user to enter original fees value greater then R50 000.
Program should also request user to enter amount to deposit before calculating final total fees.