Write a program using string functions that determine if the input word is a palindrome. A
palindrome word is a word that produces the same word when it is reversed.
Sample Input/output Dialogue:
Enter a word: AMA
Reversed: AMA
“It is Palindrome”
Enter a word: MAYOR
Reversed: ROYAM
Write a program using standard string functions that accepts a price of an item and
display its coded value. The base of the key is:
X C O M P U T E R S
0 1 2 3 4 5 6 7 8 9
Sample Input/output Dialogue:
Enter Price: 489.50
Coded Value: PRS.UX
Write a C++ program to input the radius of a circle from user and find diameter,
circumference and area of the given circle using function.
Use the following formula:
Diameter = 2r
Circumference = 2 π r
Area = π r2
Note: π = 3.14
Write a C++ program to input a number from user and check whether given number is even or odd using functions.
Write a function arraylist which receives an array of integer values. The list of elements are
the following:
20, 40, 60, 80
50, 90, 70, 10
30, 100, 200, 300
Use the concepts of object-oriented programming to develop a program that constitutes the following two classes:
Student-stores student number and surname
Result-contains the marks obtained in two subjects, inherits student details from Student and also uses the method from Student.The program should calculate the average degree mark from the two subjects and display the student details and the total of the marks obtained in each subject.
You need to submit the code and program output
Q1. you will write a program that uses a for statement to calculate and display the sum of all odd numbers between 6 and 27 inclusive on the screen.
Q2. Write statements that assign random integers to the variable n in the following ranges: Use the random function to generate the numbers. Put the statements in a C++ Program and run it.
An array containing 10 predefined double values are already provided for you in the code editor. Print each of the element out in separate lines, starting from the last array element down to the first.
Each outputted value must also only show up to two decimal places.
Output
Multiple lines containing a float number.
5.10
5.50
4.00
4.02
3.00
3.66
2.50
2.20
1.21
1.40
An array containing 5 integer elements is already provided for you in the code editor below.
Print out the cube of the 1st, 3rd, and 5th element of the given array.
Output
Multiple lines containing the cubes of the 3 elements of the given array.
-8
1
27
2. The Ion Realty Sales Corporation would like to have a listing of their sales over the past few months. Write a program that accepts any number of monthly sales amounts. Display the total of the values. Display a report showing each original value entered and the percentage that value contributes to the total. You may prompt the user for the number of values to be inputted.