write a program using array 1,2,3,4,5 and insert midle 5,6 and delete 3 ?
Cost of cementing
Walkway
Our goal is to find out the cost of cementing given
the other parameters about the park.
The length and breadth of the rectangular park are
in a ratio x:y and the perimeter of the park is
given as p meter. The walk way of wm wide is built
along the border inside the park. We have to find
the total cost of cementing that path at the rate of
Rs. r per m²
The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors
Create C++ full program that calculates Surface Area of a Sphere, knowing that the
Surface Area of a Sphere = 4 pi r2 (where r is radius of circle) and PI = 3.14.
Create C++ full program that allows Exams Officer to add a Semester Mark and
Examination Mark, and Give Final Mark as Average of the two. The program must then
do the following:
✓ Display Semester mark, Examination mark, and Final mark
✓ If final mark less than 40 results =”FAIL SUBMINIMUM”
✓ If final mark greater than or equal to 40 and less than 50 results=”FAIL
SUPPLEMETARY”
✓ If final mark greater than or equal to 50 and less than 75 results=”PASS”
✓ If final mark greater than 75 and less than 100 results=”PASS DISTINCTION”
✓ Otherwise results= “Invalid Input”
Create C++ full program that enables a lecturer to enter marks of student, the
lecture should add marks for Test 1, Test 2 and Test3, then the program should:
✓ Calculate the average of the test,
✓ Show whether the student qualify for exam or not,
✓ It must also shows qualified with a distinction if above 75.
Write a function ComputeVal that takes one integer parameter and returns 4 times the parameter.
Ex: ComputeVal(3) returns 12.
A series XYZ is given below. First three elements (element no. 0 to element no. 2) of the series are 1, 2 and 3 respectively. After that, any ith element of the series (for i>2) is the sum of the previous three elements. For example, 6 = 1+2+3 and 68 = 11+20+37. Your task is to write a program that prints the first 10 elements of this series.
You may use arrays but you are not allowed to use linkedlist.
XYZ Series: 1, 2 , 3 ,6 ,11 ,20 ,37 ,68 ,125 ,230 ,423 ,778 ,1431 ,2632 ,4841
define mesure of an array is computed as follows. count the number 1s in the array.let this count be n. the define array measure is number of times that n appears in the array. for example , the station ,measure of {1,4,3,2,1,2,3,2,} is 3because 1 ocurs 2 time in the array and 2 occurs 3 times.
(Pointers to objects)
Define a class 'Item' that is used to store and display the information regarding the item
number and its price. Write a program to store and display the details of one
items by using both normal object and pointer to object separately. Display
appropriate message wherever necessary.