{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Suggested for Exam 1 - Exam 1 EE361 Spring 2008 Problems...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Exam 1 EE361 Spring 2008 Problems Suggested by Students >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Let user input the number of students to enter grades for. Then, grades and names of students are entered into two correlating arrays. Then the system counts the number of people who got each letter grade (an A is between a 90 and a 100, etc) and prints out the class stats (how many people have gotten each grade). >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Declare a new data type that is capable of holding each of the following items: title, authoer, ISBN Number, cost, number of pages, and quantity on hand. Use appropriate data types for each item. (Hint: think struct) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> The code below will be used in the following parts of the problem. #include "stdafx.h" using namespace System; int main( array <System::String ^> ^args) { int num1 = 5, num2 = 10, num3 = 0; int *pnum4 = &num1; int pnum5[] = {15, 20, *pnum4}; num2 = pnum5[1]; *pnum4 = num2; pnum4 = pnum5+2; num2 = *pnum4; num3 = *(pnum4-2); Console::ReadLine(); return 0; } a) When the user is prompted for input and the execution pauses what are the values
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern