Describe and illustrate the characteristics of an object? What is the syntax for a multi dimensional array and a two dimensional array ?
Write and run a C++ program to test the following is_square() function that determines whether the given integer is a square number
Write a program that will ask user to enter a digit character (i.e. ‘0’ or ‘1’ .... or ‘9’). If user
enters a non-digit character then the program should display message to re-enter correct input. If user
enters a correct character (i.e. a digit character) then your program should convert that character to
a same digit but in integer type. Do this for five inputs. Finally, add all digits and display their sum. Do
not use any library function or loops.
Write a program that takes five integer numbers (range 0 to 10). And display horizontal
bar chart. Do not use loops. You can use <iomanip> header file for printing bar chat.
Write a C++ program that will accept an input for the array size. Store the user input and sort array elements in ascending order.
Sample Output:
Enter array size( Max:50 ) :: 8
Enter array elements ::
Enter arr[0] Element :: 4
Enter arr[1] Element :: 1
Enter arr[2] Element :: 5
Enter arr[3] Element :: 8
Enter arr[4] Element :: 0
Enter arr[5] Element :: 9
Enter arr[6] Element :: 4
Enter arr[7] Element :: 1
Stored Data Before Sorting In Array ::
4 1 5 8 0 9 4 1
Stored Data After Sorting In Array ::
0 1 1 4 4 5 8 9
Write a program which takes a 9-digit number input from user, converts it into its reverse
and then display one of the following statements:
• Original number is x steps bigger (where x is the difference between the two)
• Reversed number is x steps bigger
• Both numbers are equal; hence it is a palindrome.
Question:
Develop a solution, that will accept 10 students details such Student Name, ID No. and Marks of three subjects (All marks entered by the user must be within the range of 0 -100). Calculate the average marks for the student and the average marks will determine the final grade of the student. The assessment will be as follow:
70 –100 : A
60 –69 : B
50 –59 : C
40 – 49 : D
0 –39 : F
(a) Develop PAC
(b) Develop IPO
(c) Develop a Data Dictionary
(d) Develop Flowchart
(e) Develop an algorithm
create a program that will ask the user two numbers and then the program will display the original arrangements of the two numbers and also it will display the swap arrangement of two numbers on the screen
// Author: Mr jake R. pomperada, BSCS, MAED- IT
// Date: august 14, 2018 Tuesday
// Location: Bacolod City, Negros occidental
// Website: http://www.jakerpompereda.com
Find the Turing machine of
1)Language contain a, b which strings are dividable by 3
Improve the source code from class lecture (see the starter code) to display error messages if the user enters non numeric values. Also, the program needs to present the user with an error message if the initial deposit is more than their financial goal ($10,000).
Note: In order to get full credit for this exercise, you need to:
Sample Program Run:
Enter your initial deposit $: [ user enters 1800]
Your initial $1800 needs 287 years to mature to $10020.6
Another Sample Program Run:
Enter your initial deposit $: [user enters -1]
Invalid input!
Please enter your initial deposit (less than $10K): [user enters 0]
Invalid input!
Please enter your initial deposit (less than $10K): [user enters 8000]
Your initial $8000 needs 38 years to mature to $10041.8