It has been established that road accident is the number one killer in Ghana far exceeding that of HIV aids and COVID-19 put together. Most of the roads accidents are known to have been caused by driver negligence. There is currently no system in place to track offenses committed by drivers. Charles Saah of AiTSystem a software company advised that a system should be put in place to track the number of offenses committed by drivers. The system should be able to count the number of offenses committed by each driver and make the following recommendations.
write a program Construct an ADT (any of your choice but make it unique) with appropriate data members and member functions (CRUD for now). Your implementation will be purely abstraction based i.e. you will make separate files for header, implementation and driver class. In your driver class you will have a list corresponding to the ADT. You will test your program for all list operations. show complete output in screen.
Write a simple bank transactions program that will do the following:
Deposit
withdraw
inquire
USE FUNCTIONS FOR THIS PLEASE
Make a C++ program the application of C++, and write the program at journal's paper, which find about the value of mechanical energy, with the following conditions: some people throw (by vertical) 20 mangoes with the weight of each mango is 100 gram. If the mangoes are thrown together by them. Then what is the value of the mechanical energy that occurs in that situation. With height is 10 meters and the acceleration is 1,25 m/s²in 4 second. (The acceleration due to gravity is 10 meters per second square). And as we know to find the value of the mechanical energy of an object is to first find the potential energy them the kinetic energy and then add both, next, it is the value of its mechanical energy.
Write a function usung c++ statements called print report () which takes two integer arrays
Write a function using C++ statements called MeanProduction () which takes three integer arrays
(array1, array2, array3) and an integer as the size of the arrays as parameters. The array1 holds Outlet
1 production and array2 holds Outlet 2 production. The function calculates the average of each
product using the findMean (value1, value2) function and stored in the array 3.
Example
Consider the sample values of array1 and array2
array1 (Outlet 1)
array2 (Outlet 2).
Array index
Product Quantity
Array index Product Quantity
O
30
O
20
25
20
2
30
2
50
3
46
3
40
After calling the function MeanProduction (), array3 contains the average of each day.
Array index
O
1
2
3
array3
Average Quantity
25
22.5
40
43
Assign numMatches with the number of elements in userValues that equal matchValue. userValues has NUM_VALS elements. Ex: If userValues is {2, 1, 2, 2} and matchValue is 2 , then numMatches should be 3.
Your code will be tested with the following values:
matchValue: 2, userValues: {2, 1, 2, 2} (as in the example program above)
matchValue: 0, userValues: {0, 0, 0, 0}
matchValue: 10, userValues: {20, 50, 70, 100}
Write a for loop to print all elements in courseGrades, following each element with a space (including the last). Print forwards, then backwards. End each loop with a newline. Ex: If courseGrades = {7, 9, 11, 10}, print:
7 9 11 10
10 11 9 7 Write three statements to print the first three elements of array runTimes. Follow each statement with a newline. Ex: If runTime = {800, 775, 790, 805, 808}, print:
800
775
790If 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--) { }