Question: PLEASE TYPING Q1) Write single C++ statement to perform each of the following tasks:? a) Declare letl as character type variable and initialize it to

PLEASE TYPING

Q1) Write single C++ statement to perform each of the following tasks:? a) Declare letl as character type variable and initialize it to value a'

b) Declare variable rate as memory constant with value 2.95

c) Assign the letter "B" to the char variable initial.

d) Sends the value in variable name to the stream cout

Q) Consider the following code segment: int main() { const int SIZE - 5; int iArray[SIZE]; return 0; Answer the following questions: a) Using a loop, write code to initialize arra clements with a value from 5 to 9. b) Write code to print array elements contents. c) Write code to ask user to enter any index of array. array value stored in that specific index. If the index is out of range, program will stop to loop. (Hint: to use a do-while loop)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!