COMP 220 Lab 3

  

COMP 220 Lab 3
Inheritance: Baseball Player and Pitcher Classes

Objectives:

· Develop and apply an appropriate and useful inheritance hierarchy.

· Use multiple cpp and header files effectively to develop modular code.

Background

Assume that all baseball players, regardless of their position, have these two important statistics:

· rbi – runs batted in, a whole number (so you must data type int)

· batting average – real number percentage of hits per at-bat (a real number, so you must use data type double)

Pitchers are baseball players with an additional statistic, era (earned run average), a real number for earned runs per nine innings pitched (so you must use data type double).

Developing the Class Hierarchy

A logical class hierarchy for these two types of objects would use aPlayer class as a parent (base) class for a derived (child) Pitcherclass. The Pitcher class would include all the members of the Player class and have an additional (private) era data member, and, of course, appropriate (public) accessor, mutator and constructor methods.

         

This relationship is sometimes called a tree, but is also called a hierarchy, more particularly in this case, a class hierarchy. Note that the arrow points from derived (child) class to parent (base) class, which indicates the search path for executing member methods; if the method is not found in the Pitcher class, the compiler looks back to the parent class, Player, to find it.

File Organization (Class Header and Implementation Files, etc.)

Each class (in this case Player and Pitcher) will have its own header (.h) and implementation (.cpp) file, and, of course, there needs to be an executable file that actually uses the class (an application .cpp file with a main function). As with the classes previously developed in the course, the application will be a“driver” program that executes each member function at least once with an arbitrary, but specifictest case data set.

Requirements

Use the given Player class as a base class for Pitcher and add to the BaseballPlayerDriver file code to test the class with the data specified below.

Player class requirements:

1. Create with separate header (Player.h) and implementation (Player.cpp) files.

2. Two private data members, rbi and battingAverage.

3. A parameterized constructor that receives and sets the initial values for both rbi and battingAverage.

4. Two accessor (get) methods that return the values of the data members: getRbi and getBattingAverage.

5. Two mutator methods:

5.1. setRbi that receives a whole number and writes it to the rbi data member.

5.2. setBattingAverage that receives a real number and writes it to the battingAverage data member.

6. showAll accessor method that displays the values of both data members as shown here for an arbitrary test case for a player who has 10 rbi and batting average 0.1234:

rbi = 10
batting average = 123

Note that the battingAverage variable will be a floating point number (double), but it must be rounded and display as a digit integer.

Pitcher class requirements:

1. Pitcher class must be derived from Player class.

2. Create with separate header (Pitcher.h) and implementation (Pitcher.cpp) files.

3. One private data member, era.

4. A parameterized constructor that receives and sets the initial values for all three data members, rbi, battingAverage and era.

5. getEra accessor method that returns the value of era.

6. setEra mutator method that receives a real number and writes it to the era data member.

7. showAll function toover-ride the base class’s showAll function and do the following: call the base class’s showAll function to display the inherited data members’ values and, in addition, output the additional value, the pitcher’s era, as shown for an arbitrary test casefor a pitcher who has 10 rbi, batting average 0.1234 and era of 3.456:

rbi = 10
batting average = 123

era = 3.46

Note that the era variable will be a floating point number (double), but it must be rounded and display to decimal places.

BaseballPlayerDriver class requirements:

1. Tell the user you’re creating a Pitcher with 10 rbi, batting average 0.1234 and era 3.456.

2. Use the parameterized constructor to create to instantiate a Pitcher variable, p1 with initial values 10 rbi, batting average 0.1234 and era 3.456.

3. Tell the user you’re using the get methods to display the values of the data members.

4. Use cout and the three get methods to display the values.

5. Tell the user you’re using the showAll method to display the values of the data members.

6. Call the showAll method.

7. Tell the user you’re using setRbi to change it to 9.

8. Use setRbito change it to 9.

9. UseshowAllto display the data values.

10. Tell the user you’re using setBattingAverage to change it to 0.2345.

11. Use setBattingAverage to change it to 0.2345.

12. Use showAll to display the data values.

13. Tell the user you’re using setEra to change it to 5.678.

14. Use setEra to change it to 5.678.

15. Use showAll to display the data values.

Additional Requirement:

Use the const modifier for member functions that do not write to a data member to guarantee the data members are protected.

Report

Put all five files (Player.h, Player.cpp, Pitcher.h, Pitcher.cpp andBaseballPlayerDriver.cpp ) in a folder called FirstNameLastNameLab3Pitcher, zip it into a file named FirstNameLastNameLab3Pitcher.zip and submit it to the Week 3 Drop Box by the deadline.

Discussion 4 – Proj Risk

 Assigned Readings:Chapter 9: Risk response and Treatment OptionsChapter 10: Risk Monitoring and ControlProject Quality Conference Paper:  https://www.pmi.org/learning/library/practice-three-project-quality-management-7198Project Quality Conferecne Paper:  https://www.pmi.org/learning/library/developing-grading-system-project-quality-6731Six Sigma Conference Paper:  https://www.pmi.org/learning/library/quality-commitment-six-sigma-initiatives-4801Initial Postings: Read and reflect on the assigned readings for the week. Then post what you thought was the most important concept(s), method(s), term(s), and/or any other thing that you felt was worthy of your understanding in each assigned textbook chapter.Your initial post should be based upon the assigned reading for the week, so the textbook should be a source listed in your reference section and cited within the body of the text. Other sources are not required but feel free to use them if they aid in your discussion.Also, provide a graduate-level response to each of the following questions:

  • What is TQM?
  • What must a Project Quality Plan address?
  • What does the cost of quality refer to?
  • What is Six Sigma?
  • Compare and contrast Quality Control and Quality Assurance.
  • Please research and provide a two page, referenced discussion on the logic of identifying and eliminating risk for a project and be sure to include an explanation on how an organization comes to conclusions as to how much revenue and time to commit to this process.
[Your post must be substantive and demonstrate insight gained from the course material. Postings must be in the student’s own words – do not provide quotes!] [Your initial post should be at least 450+ words and in APA format (including Times New Roman with font size 12 and double spaced). Post the actual body of your paper in the discussion thread then attach a Word version of the paper for APA review] 

Text

 

Title: Managing Project Risks; 464 Pages

ISBN: 978-1-119-48975-7

Authors: Peter J. Edwards, Paulo Vaz Serra, Michael Edwards

Publisher: Wiley-Blackwell

Publication Date: 2019

IT473 week 8

 

Weekly Assignment/Discussions via Unicheck :

1) Explain the Phong lighting model in OpenGL.

    Your assignment submission must be between 550 to 700 words.

2) Submit a wire-frame model of your final project. Including the indices of the object.

Exp19_Excel_Ch09_CapAssessment_Tips

Solution file + Step by step video link is available in the answer 

98% Marked 

Please Use your file      

1

Start   Excel. Download and open the file named Exp19_Excel_Ch09_Cap_Assessment_Tips.xlsx.   Grader has automatically added your last name to the beginning of the   filename.
 

  The Excel workbook contains circular references. When you open the file, an   error message displays. This error will be resolved as part of the project

 

2

The   Tip Left column in the Friday worksheet contains a fill color and number   formatting. You want to fill these formats to the other daily worksheets.
 

  Group the Friday through Monday worksheets, staring with the Friday   worksheet. Fill the format only for the range E5:E24.

 

3

Now   you want to insert column totals for the five worksheets simultaneously.
 

  With the worksheets still grouped, insert SUM functions in the range B25:E25   and apply the Totals cell style. Ungroup the worksheets.

 

4

The   Week worksheet is designed to be a summary sheet. You want to insert a   hyperlink to the Total heading in the Monday worksheet.
 

  On the Week worksheet, in cell A5, insert a hyperlink to cell A25 in the   Monday worksheet with the ScreenTip text Monday’s Totals. Test the hyperlink to   ensure it works correctly.

 

5

In   cell A6 on the Week worksheet, insert a hyperlink to cell A25 in the Tuesday   worksheet with the ScreenTip text Tuesday’s Totals. Test the hyperlink to   ensure it works correctly.

 

6

In   cell A7, insert a hyperlink to cell A25 in the Wednesday worksheet with the   ScreenTip text Wednesday’s Totals. Test the hyperlink to ensure it works   correctly.

 

7

In   cell A8, insert a hyperlink to cell A25 in the Thursday worksheet with the   ScreenTip text Thursday’s Totals. Test the hyperlink to ensure it works   correctly.

 

8

In   cell A9, insert a hyperlink to cell A25 in the Friday worksheet with the   ScreenTip text Friday’s Totals. Test the hyperlink to ensure it works   correctly.

 

9

Now,   you are ready to insert references to cells in the individual worksheets.   First, you will insert a reference to Monday’s Food Total.
 

  In cell B5 on the Week worksheet, insert a formula with a 3-D reference to   cell B25 in the Monday worksheet. Copy the formula to the range C5:E5.

 

10

The   next formula will display the totals for Tuesday.
 

  In cell B6, insert a formula with a 3-D reference to cell B25 in the Tuesday   worksheet. Copy the formula to the range C6:E6.

 

11

In   cell B7, insert a formula with a 3-D reference to cell B25 in the Wednesday   worksheet. Copy the formula to the range C7:E7.

 

12

In   cell B8, insert a formula with a 3-D reference to cell B25 in the Thursday   worksheet. Copy the formula to the range C8:E8.

 

13

In   cell B9, insert a formula with a 3-D reference to cell B25 in the Friday   worksheet. Copy the formula to the range C9:E9.

 

14

Now   you want to use a function with a 3-D reference to calculate the totals.
 

  In cell B10 on the Week worksheet, insert the SUM function with a 3-D   reference to calculate the total Food purchases (cell B25) for the five days.   Copy the function to the range C10:E10.

 

15

The   servers are required to share a portion of their tips with the Beverage   Worker and Assistants. The rates are stored in another file.
 

  Open the Exp_Excel_Ch09_Cap_Assessment_Rates.xlsx   workbook. Go back to the Exp_Excel_Ch09_Cap_Assessment_Tips.xlsx   workbook. In cell F5 of the Week worksheet, insert a link to the Beverage   Worker Tip Rate (cell C4 in the Rates workbook) and multiply the rate by the   Monday Drinks (cell C5). Copy the formula to the range F6:F9.

 

16

Next,   you will calculate the tips for the assistant.
 

  In cell G5 in the Tips workbook, insert a link to the Assistant Tip Rate   (cell C5 in the Rates workbook) and multiply the rate by the Monday Subtotal   (cell D5). Copy the formula to the range G6:G9. Close the Rates workbook.
 

  Note: The tip is a monetary value in the Week worksheet. It should be   formatted for Accounting Number Format.

 

17

You   noticed a circular error when you first opened the Tips workbook. Now you   will find and correct it.
 

  On the Week worksheet, check for errors and correct the formula with the   circular reference. 

 

18

You   want to create a validation rule to prevent the user from accidentally   entering a negative value. For now, you will create a validation in the   Friday worksheet.
 

  Select the range E5:E24 in the Friday worksheet, create a validation rule to   allow a decimal value greater than or equal to zero. Enter the input message   title Tip and   the input message Enter the amount of tip. (including the   period). Use the Stop alert with the error alert title Invalid Number and the error   alert message   The tip must be zero or more. (including the period). Test the   data validation by attempting to enter -20 in cell E5 and then cancel the change.

 

19

Now   you will copy the validation settings to the other daily worksheets.
 

  Copy the range E5:E24 in the Friday worksheet. Group the Monday through   Thursday worksheets, select the range E5:E24, and use Paste Special   Validation to copy the validation settings.

 

20

You   want to unlock data-entry cells so that the user can change the tips in the   daily worksheets.
 

  Group the Monday through Friday worksheets. Select the ranges E5:E24 and   unlock these cells.

 

21

Create   footer with your name on the left side, the sheet name code in the center,   and the file name code on the right side of all worksheets.

 

22

Now   that you unlocked data-entry cells, you are ready to protect the worksheets   to prevent users from changing data in other cells. Individually, protect   each sheet using the default allowances without a password.

 

23

Mark   the workbook as final.
 

  Note: Mark as Final is not available in Excel for Mac. Instead, use Always   Open Read-Only on the Review tab.

 

24

Save   and close Exp19_Excel_Ch09_Cap_Assessment_Tips.xlsx.   Exit Excel. Submit the file as directed.

ransomware attacks

 

Problem – ransomware attacks are evolving and becoming more successful

Theory/model – why they are becoming more successful  – followed by any research questions related to ransomware.

In a minimum of 5-pages, where you clearly explain the overall topic and include at least 20 scholarly references. 

f7f8f7

3 separate Assignments so please provide them separately. (250 words each)

Check attachment!!

Discussion 4- Strategy Applied in Project Mngt

Assigned Readings:

Chapter. 7 Managing Risk

Chapter. 8 Scheduling Resources and Costs

Initial Postings: Read and reflect on the assigned readings for the week. Then post what you thought was the most important concept(s), method(s), term(s), and/or any other thing that you felt was worthy of your understanding in each assigned textbook chapter.Your initial post should be based upon the assigned reading for the week, so the textbook should be a source listed in your reference section and cited within the body of the text. Other sources are not required but feel free to use them if they aid in your discussion.

Also, provide a graduate-level response to each of the following questions:

  1. You have been assigned to a project risk team of five members. Because this is the first time your organization has formally set up a risk team for a project, it is hoped that your team will develop a process that can be used on all future projects. Your first team meeting is next Monday morning. Each team member has been asked to prepare for the meeting by developing, in as much detail as possible, an outline that describes how you believe the team should proceed in handling project risks. Each team member will hand out their proposed outline at the beginning of the meeting. Your outline should include but not be limited to the following information:
    • Team objectives.
    • Process for handling risk events.
    • Team activities.
    • Team outputs.

Text

Title: Project Management: The Managerial Process 

ISBN: 9781260238860 

Authors: Clifford F. Gray, Erik W. Larson 

Publisher: McGraw-Hill Education 

Publication Date: 2020-01-09

Project 6: Global Approaches to Cybersecurity Step 7: Compile International Cybersecurity Environmental Scan Findings

 Project 6: Global Approaches to Cybersecurity
Step 7: Compile International Cybersecurity Environmental Scan Findings

Compile all of the information you found in the previous two steps and write a two-page summary. Use the International Cybersecurity Environmental Scan Template to guide your summary, which should include descriptions of the regions and of the cybersecurity threats prevalent in the regions selected. Address the role of international bodies (NATO and United Nations) in influencing and contributing to international cybersecurity policies.

Submit your summary for feedback. This summary will be included in your final report.

Legislated Privacy Concerns

 

Go  to the website: https://epic.org/privacy/litigation/ which focuses on civil rights issues and privacy. Pick a case.

Using WORD, in your OWN WORDS, write  400 words or more