Week 4 PRG 218 Basic Concepts of Object-Oriented Programming

profileludyh6

Week 4

PRG 218   Basic Concepts of Object-Oriented Programming

You will   Write eight assignment  70- to 100-word response to the following:

1  Supporting Activity: Object-oriented Programming

What are the similarities and differences between object-oriented programming and procedural programming in C++? How may this knowledge assist you when creating C++ programs?

2  Supporting Activity: Debug

 

   Imagine that you are hired as a software debug for Riordan Manufacturing to help fix a new, object-oriented based payment system.

 

How would you approach this task? How could you systematically approach testing and finding bugs?

3   Supporting Activity More about Program Structure

Write a program that will call this function through a pointer and verify that it works. You’ll need an #include directive for the cstring header in your program to use the strlen () function.

4 Supporting Activity More about Program Structure

At present, when the calculator hits an invalid input character, it prints an error message, but doesn’t show you where the error was in the line. Write an error routine that prints out the input string, putting a caret (^) below the off ending character, like this:

12 + 4,2*3

5   Supporting Activity More about Program Structure

 

Add an exponentiation operator, ^, to the calculator, fitting it in alongside * and /. What are the limitations of implementing it in this way, and how can you overcome them?

6   Supporting Activity More about Program Structure

 

Explain in your own words how to define and use pointers to functions

7  Supporting Activity More about Program Structure

 

How to write multiple functions with a single name to handle different kinds of data automatically

8   Supporting Activity More about Program Structure

 

Explain in your own words how to define and use arrays of pointers to functions

 

 

 

 

 

 

 

Programming Using Structures and Classes

 

 

 

Use the program in Ch. 7 of Beginning Visual C++ 2012 on p. 292 as a starting point for this assignment.

 

Modify the program in the following ways:

 

•Add a third box to the calculation.

•Calculate length (L), width (W), and height (H) for the third box.

•Calculate the total volume for all three boxes in question.

 

 

Answer the following questions in your own words after making the required modifications to the program:

 

 

•Under what circumstances must you use classes?

•Why do you use a class instead of a structure? Are they interchangeable? Explain your answer.

•Are classes more useful than structures? Why or why not?

 

 

 

 

Each assignments must write separately look at it and let me know if anyone can do it. They is Instructions for the Programming Using Structures and Classes

 

 

 

 

 

 

 

 

  • 11 years ago
  • 15
Answer(1)

Purchase the answer to view it

blurred-text
  • attachment
    assign_1_oop.docx
  • attachment
    assgn_2.docx
  • attachment
    support_activity_1.docx
  • attachment
    support_activity_2.docx
  • attachment
    support_activity_3.docx
  • attachment
    support_activity_4.docx
  • attachment
    support_activity_5.docx
  • attachment
    support_activity_6.docx
  • attachment
    support_activity_7.docx
  • attachment
    support_activity_8.docx
Bids(0)