Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You have been there for me and You have been a life saver is it o.k. to continue

ID: 3623773 • Letter: Y

Question

You have been there for me and You have been a life saver is it o.k. to continue to save my life I'm not good at this at all but I try. Thank you in advance

1. Please write down your answers at right hand side without using a computer for the following question. If the answer is address, please write down “address” as your answer.
int number = 99;
int *xptr = &number;
cout << number << endl ; ; A. output =
cout << ptr << endl; ; B. output =
cout << & number << endl; ; C. output =
cout << *ptr << endl; ; D. output =
cout << *&number << endl; ; E. output =
cout << &*number << endl; ; F. output =


2. Write a C++ program to do question and write down your result.
Answer for A:
Answer for B:
Answer for C:
Answer for D:
Answer for E:
Answer for F:


3. Please write a program to ask user input an integer called “n”. Dynamically allocate memory for n integer. Use random function to generate n integers between -10 and 10 and put into the memory. Display the integers inside the money, calculate and display the sum.

 

 

 

This program should have an array of 5 integers named winningDigits, with a randonly generated number in the range of 0 through 9 for each element in the array. This program should ask the user to enter 5 digits and should store them in a second integer array named player. This program must compare the corresponding elements in the two arrays and count how many digits match. Once the user has entered a set of numbers, the program should display the winning digits and the player's digits and tell how many digits matched. Input validation: Do not accept player inputs less than 0 or greater than 9.

Hello if it's not to much trouble can I get a response today or early morning 2/28/2011 I will submit earlier next time Thank you in advance

Explanation / Answer

Hello if it is not to much trouble can I get a response today or early morning mon. 2/28/2011 Thank you in advance.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote