Week 4 PRG 218 Basic Concepts of Object-Oriented Programming
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
Purchase the answer to view it

- assign_1_oop.docx
- assgn_2.docx
- support_activity_1.docx
- support_activity_2.docx
- support_activity_3.docx
- support_activity_4.docx
- support_activity_5.docx
- support_activity_6.docx
- support_activity_7.docx
- support_activity_8.docx
- Essay #3
- Micro
- For PhyllisYong Only
- Discussions
- ACC 349 Week 3 Learning Team Assignment
- Two Small Essays
- English course
- MGT 521 Week 3 Team Reflection ~ ( Latest Syllabus - Perfect Tutorial - Scored 100% )
- "A" Work Please
- What is a corporate strategy, and why is it important for a small business to identify a corporate strategy? What are possible consequences that a small business may experience if it does not have a defined corporate strategy? Please provide reference pag