Comp 220

Good Essays
| | iLab 5 of 7: Pointers and Pointer OperationsILAB OVERVIEW | | | |

Scenario and Summary | |
This lab will explore the use of pointers in several ways. Pointers will be used to dynamically allocate memory for new class objects on demand from the user, and they will be used to access class-member functions. Pointer arithmetic will be used to access and sort class objects according to criteria explained in the lab.
Pointers are, essentially, address variables, or variables that hold as their value the address of other variables. In terms of memory management, they are very powerful devices, and they more closely and efficiently use the actual internal hardware registers of the microprocessor that the program operates on.
Pointers also have the requirement that the pointer type must be of the same data type as the variable, or the data that it points to or holds the address of. The power of pointers also hints at the potential complexity of their use, which is why this lab is focused almost entirely on several different aspects and uses of pointers. The lab also introduces pointer arrays and pointers to pointers.
The Resistor class created in the Week 2 lab will be used as the class that the pointer operations will be used upon. The lab also requires the use of accessor functions and static data members, which may need to be added to the Resistor class definition and implementation. Deliverables | 1. Submit a single Notepad file containing the source code for all the files of the lab to the Dropbox for Week 5. Your source code should use proper indentation and be error free. Be sure that your last name and the lab number are part of the file name: for example, YourLastName_Lab5.txt.

Each program should include a comment section that includes, at a minimum, your name, the lab and exercise number, and a description of what the program accomplishes. 2. Submit a lab report (a Word document) containing the following information to the

You May Also Find These Documents Helpful

  • Good Essays

    Comp

    • 436 Words
    • 2 Pages

    Metropolitan Avenue Makati City July 21, 2014 Prof. Nemencio Caludio Ph.D. Referee PLOS Biology Dear Dr. Caludio, I am Anna Karenina Arandia, a graduate of BS Biology at University of Santo Tomas. Together with the research group, we humbly present to you our thesis about parasites in freshwaters. As one of the leaders, I am submitting our thesis entitled “Prevalence of some parasitic agents affecting the gills of some cultured fishes in Sharkia, Damietta and Fayium governorates” for…

    • 436 Words
    • 2 Pages
    Good Essays
  • Good Essays

    comp 1

    • 855 Words
    • 4 Pages

    Lejla Skocic Lynch Comp 1 October 15, 2012 The karate kid: Sequel Outdoes the Original The Karate kid is a much loved classic. With a lasting tale of an underdog, it’s a dime-a-dozen genre. The 1984 original film still remains a classic, with outstanding acting and an amazing plot. It’s no wonder why once the original came out; it was a huge hit among people instantly becoming a favorite by many. Then in 2010 The karate Kid was remade, becoming a huge box office hit. It is unusual to say…

    • 855 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    English Comp

    • 495 Words
    • 2 Pages

    English Composition is a class that is needed for all functions of life. Without comprehension of literature, language, and sentence formation, a person cannot go through the basic tasks of life. Most careers involve the handing in of a resume, and then proposals to follow. Not to mention persuasive schemes to convince your boss to follow a plan you have designed. Corresponding to far away loved ones, via hand-written or e-mail, means much more when it the language is passionate and bold. Written…

    • 495 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Comps apps

    • 319 Words
    • 2 Pages

    Dear Prospective Applicant: Writing the essay for a college application can be one of the more dreaded parts of the application process for students. Admission officers are painfully aware of that fact, and we answer many questions about the role and purpose of the essay: "How much does it count?", "What should I write about?" and "How do I know if an experience is 'significant' or not?" are common queries. Writer's block often arises as you worry about offering a pithy snapshot of your life…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    W8 Comp

    • 898 Words
    • 4 Pages

    Week 8 : Final Exam - Final Exam Time Remaining: Page: 1 2 3 Page 1: Multiple Choice 1) Which of the following Windows commands will restart the computer FileServer in 2 minutes? (Points : 5) 1. (TCO shutdown /r /m //FileServer /t 2 shutdown /r /m //FileServer /t 120 shutdown /r /m \\FileServer /t 2 shutdown /r /m \\FileServer /t 120 2. (TCO : 5) 1) From a 32-bit Windows CLI, the command used to open a new CLI windows is _____. (Points command cmd start prompt 1) Which one…

    • 898 Words
    • 4 Pages
    Good Essays
  • Good Essays

    English Comp

    • 675 Words
    • 3 Pages

    English Comp. 1 (online) Aug. 29, 2012 In the Deep Blue I am on the boat with my family; myself, parents, brother and sister. Everything that I was taught up until this very moment I had to do on my own. Looking out into the deep, crystal clear ocean water, I know it was finally going to be the “make it or break it” point, the question I was asking myself was am I really doing this?, and thinking over and over again, I have always been deathly afraid of water. Scuba diving….the word running…

    • 675 Words
    • 3 Pages
    Good Essays
  • Good Essays

    University Comp

    • 1064 Words
    • 5 Pages

    Similarities & Differences between McDonald’s and Subway When you think about a fast food restaurant you think about something quick to eat so you can carry on with your day. A fast food restaurant is much more than that. In this essay I will be looking at McDonald’s and Subway. Although McDonald’s and Subway are both fast food restaurant chains, the nutrition received from the two menus is different. McDonald’s and Subways are both well known fast food chains in the United States. When…

    • 1064 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    comp 4

    • 464 Words
    • 2 Pages

    Caitlyn Johnson Competency Standard 4 As a CDA candidate it is my job to establish positive and productive relationships with each child’s families. This means that candidates must establish a positive, responsive and cooperative relationship with each parent. I must engage in two-way communication with families, encourage their involvement in the program and to also support the child’s relationship with his or her own family.I believe that is important to establish trust and respect, as well…

    • 464 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Comp Admin

    • 2710 Words
    • 11 Pages

    compensation. Allowance: compensation to provide for items that are in short supply. Ex. Transportation or housing. Employee engagement: level of connection and employee feels to employer that brings out full effort. Pay model 1.2 Strategic comp objectives - efficiency can be stated more specifically (improve quality and performance, delight customers, control labour costs). Procedural fairness: fairness of the decision process. Compliance: conforming to federal provincial a d territorial…

    • 2710 Words
    • 11 Pages
    Good Essays
  • Satisfactory Essays

    Anto 220

    • 525 Words
    • 1 Page

    1 Garoutte Adam Garoutte 2/19/15 Anto 220 Response Paper 1 There are many cultural barriers when Ronald Fleury ’s team first made it to Saudi Arabia, when they were on to road four Suv going over 100 Mph and Adam Leavitt was pretty concerned about how fast they were going I can't quite remember who said that it was standard protocol so that it will be easy to see anyone tailing them. Once they made it to the crime scene they were not allowed to even touch anything by order of the Sadi officer…

    • 525 Words
    • 1 Page
    Satisfactory Essays