CS Discussion 2

 

https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

https://www.instructables.com/id/Raspberry-Pi-Projects/

       Read the attached product brief on the Raspberry PI. Also look at some of the projects that have been built with the Raspberry Pi in the 2nd link. And yes, it can run Java.

Consider the following questions for your post.

1. Do you see anything that you would like to try or have the Raspberry PI do?

2. What does it mean to have this much computing power for $35 ? It was not too long ago that desktop PCs had these types of specs.

3. What other features or hardware to you think this needs to be usable?

If you think this is a toy, look at links below. 

https://www.brennan.co.uk/

https://www.element14.com/community/videos/17859/l/embedded-video-player.jspa?autoplay=false&mediaID=17859&fixedPlayerSize=false&setSizes=true&width=1060

The formula is =(1+D$4)*Fleet!$H5

Homework Assignmet

 These instructions are compatible with both Microsoft Windows and Mac operating systems.

San Diego Sailing keeps data about its fleet of rental and charter boats. One of the sheets is missing a piece of data and another sheet has circular reference errors. You will complete work on these sheets, calculate projected rates for each boat, and build basic statistics about past rentals.

[Student Learning Outcomes 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7]

File Needed: SanDiegoSailing-02.xlsx (Available from the Start File link.)

Completed Project File Name: [your name]-SanDiegoSailing-02.xlsx

Skills Covered in This Project

  • Create and copy formulas.
  • Use formula auditing tools.
  • Set mathematical order of operations.
  • Use relative, mixed, and 3D cell references.
  • Use COUNTIF and SUMIF functions.
  • Build an IF formula.
  • Insert the TODAY function.

NOTE: If group titles are not visible on your Ribbon in Excel for Mac, click the Excel menu and select Preferences to open the Excel Preferences dialog box. Click the View button and check the Group Titles check box under In Ribbon, Show. Close the Excel Preferences dialog box.

  1. Open the SanDiegoSailing-02.xlsx workbook.
  2. If the workbook opens in Protected View, click the Enable Editing button so you can modify it.
  3. The file will be renamed automatically to include your name. Change the project file name if directed to do so by your instructor, and save it.
  4. Review a formula.
    1. Click the New Prices sheet tab and review the Formula bar.
    2. Click cell D5. The formula begins with 1+D4.
  5. Edit and copy a formula with mixed references.
    1. Edit the formula in cell D5 to show D$4 instead of “D4.” The formula should multiply one plus the percentage value in cell D4 by the current rate on the Fleet sheet ($H5). With an absolute reference to row 4 and column H on the Fleet sheet, you can copy the formula down the column (Figure 2-105).The formula is =(1+D$4)*Fleet!$H5Figure 2-105 Mixed reference in the edited formula
    2. Copy the formula in cell D5 to cells D6:D19 without formatting to preserve the border.
    3. Select cells D5:D19 and drag the Fill pointer to copy the formulas to cells E5:E19.
    4. Click cell E6. The formula is adjusted to use the percentage value in cell E4 in place of cell D4. Note also that the reference on the Fleet sheet ($H6) is adjusted to show the correct row.
  6. Build a formula with mixed references.
    1. Click cell F5 and type =(1+ to start the formula.
    2. Select cell F4 and make it an absolute reference to the row but not the column.
    3. Type )* for the closing parenthesis and multiplication.
    4. Click cell I5 on the Fleet sheet, and make the reference absolute for the column but not the row (Figure 2-106).The formula is =(1+F$4)*Fleet!$I5Figure 2-106 Mixed references in the new formula
    5. Copy the formula down column F without formatting to preserve the border.
    6. Format cells F5:F19 as Currency and then copy cells F5:F19 to cells G5:G19.
  7. Build an IF function formula.
    1. Click the Fleet sheet tab and select cell G5. Rental boats with a stove in the galley must seat 8 or more people.
    2. Create an IF function in which the logical_test argument determines if there are 8 or more seats.
    3. Use Yes for the value_if_true argument. Use No for the value_if_false argument. (If you type the formula, enclose the text arguments within quotation marks.)
    4. Copy the formula to cells G6:G19 without formatting and then center the data in column G.
  8. Insert the TODAY function in cell B21. Format the date to show the month spelled out, the date, and four digits for the year (January 1, 2020).
  9. Create a division formula.
    1. Click the Bookings sheet tab and select cell F5. Calculate average revenue per passenger by dividing the fee by the number of passengers.
    2. Build the division formula.
    3. Copy the formula in cell F5 to cells F6:F19.
  10. Create and copy a COUNTIF function to count bookings by boat manufacturer.
    1. Select cell D27.
    2. Start the COUNTIF function from the Statistical category by clicking the More Functions button in the Function Library group.
    3. Use cells $C$5:$C$19 as the Range argument.
    4. Set a Criteria argument that will select all boats in the “Beneteau” group. The criteria is ben*. If you type the formula, include quotation marks.
    5. Copy the formula in cell D27 to cells D28:D30.
    6. Edit the criteria in each copied formula in cells D28:D30 to reflect the boat make.
  11. Create and copy a SUMIF function to calculate total revenue by boat make.
    1. Select cell E27.
    2. Start the SUMIF function with cells $C$5:$C$19 as the Range.
    3. Set the Criteria argument to ben*.
    4. Set the Sum_range argument to cells $E$5:$E$19.
    5. Copy the formula in cell E27 to cells E28:E30.
    6. Edit the criteria in each copied formula in cells E28:E30 as needed.
  12. Complete formatting.
    1. Apply the Currency format to all values that represent money.
    2. Format the labels in cells A1:A2 as 18 point.
    3. Select cells A1:F2 and click the Alignment launcher [Home tab, Alignment group]. Center the labels across the selection.
    4. Merge and center the label in cell C25 over cells C25:E25 and format it at 16 points.
    5. Bold and center the labels in rows 4 and 26.
    6. Select cells A4:F19 and apply All Borders. Do the same for cells C25:E30.
    7. Center the page horizontally.
  13. Save and close the workbook (Figure 2-107).Excel 2-5 completedFigure 2-107 Excel 2-5 completed
  14. Upload and save your project file.
  15. Submit project for grading.

Can any one get this homework done for me in 3 hours?

Homework is 3 parts: A, B, and C

Part A:

A small restaurant only provides burger and sandwich. It has two chefs and one waitress. Chef A is assigned to make burger and Chef B make sandwich. Waitress’s job is to present customer’s order to the right chef. You are required to use {{{{{Command pattern}}}}} to illustrate the order process. As we discussed in lecture, in this case, the invoker is responsible for not only storing and dispatching command, but choosing appropriate receiver as well. The receiver class (chef) contains only one method MakeFood(), it will display on screen the food is being made.

1) Give the UML class diagram

2) Provide the implementation code of the UML class diagram given in JAVA.  The main application should display the following message 

“Welcome, would you like to order a burger or sandwich?”, then based on customer’s choice, store and dispatch the order to the right chef.

Note: Show in the diagram how you used Command pattern to implement the code 

—————————————————————————————————————————————–

Part B: 

A house automation system uses four devices to automate operations. The four devices are

a) A Weather instrument that provides current weather (rain, cloud, sunny, etc)

b) A CoffeePot

c) A Calendar that provides date, day, time info and a timer

d) A Sprinkler

Use{{{{{{{{{{{{{{{ Mediator pattern}}}}}}}}} to coordinate these four devices and automate the following operations

i)    During weekdays, start to make coffee at 6am

ii)   At the weekend,  if weather is sunny, start to make coffee at 7am or at 8am

iii) During June to October, start sprinkler twice a day (6am, 8pm) and run it for 15 mins. But sprinkler will not start if it is raining.

1) Give the UML class diagram

2) Provide the implementation code of the UML class diagram given in this part of question using JAVA.

Note: Show in the diagram how you used Mediator pattern to implement the code 

—————————————————————————————————————————————–

Part C: 

Use the {{{{{{{{{{Observer pattern}}}}}}}}}}}}}}}}} in a situation where registered flight ticket buyers are notified when ticket price is lower than or equal to a certain amount specified by the buyer at the registration time. For example John expects to be notified only when round trip DTW <> NYC on 12/24 <> 12/29  reaches $210.  Different buyer may have different expectation for the same flight. At registration time with a given flight each buyers provides his/her name, from city, destination city, departure date, return date and expected price.  Similarly, a flight is defined by {from city, destination city, departure date, return date and price}

1) Give the UML diagram using the observer pattern.  In the pattern, there should be one single ConcreteObserver class. Each buyer will be an instance of that class.  There should also be one single concreteSubject class. Each flight will be an instance of that class. You are requested to give the details of each class in the diagram (i.e., methods, properties, whether the methods/properties are private, public, or protected).

2) Give the implementation code of the UML diagram. You must use PULL mode to implement the notification. The PULL mode usually involves two steps, first notifies the investor the flight price reaches his expectation and then he retrieves the flight information anytime he wants in the future. In the main application, you are requested to create three flights (as instances of the concretSubject class): 

{Chi, SFO, 01/15/2022, 01/26/2022, $420}, {DTW, NYC, 02/03/2022, 02/10/2022, $240}, {FLL, DFW, 04/23/2022, 04/28/2022, $300} You are also requested to create two buyers: John and Maria. John will register with the first flight with an expectation of $350 and second flight with an expectation of $200.  Maria will register with the second flight with an expectation of $220 and third flight with an expectation of $280. Also in the main program, testing the scenarios of receiving notification.

Note: Show in the diagram how you used Observer pattern to implement the code 

Discussion 8- Legal

Assigned Readings:

Chapter 9. Business Torts.I

nitial 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. Explain each of the elements of the tort of negligence, providing examples of each in a business setting.
  2. Franky Fraud makes spaghetti sauce.  He names his spaghetti sauce “Michael Jordan’s Spaghetti Sauce” and puts a picture of the athlete Michael Jordon on the label.  Franky Fraud also claims that the sauce will extend your life ten years if you eat it every day.  Many bottles of the sauce also contain razor blades.  What tort or torts has Franky Fraud committed?
[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!]

Text

Title: Business 

ISBN: 9780357447642 

Authors: Marianne M. Jennings 

Publication Date: 2021-01-01 

Edition: 12th Edition

Message Authentication

 

  • 3.1 List three approaches to message authentication.
  • 3.2 What is a message authentication code?
  • 3.4 What properties must a hash function have to be useful for message authentication?
  • 3.5 In the context of a hash function, what is a compression function?
  • 3.6 What are the principal ingredients of a public-key cryptosystem?
  • 3.7 List and briefly define three uses of a public-key cryptosystem.
  • 3.8 What is the difference between a private key and a secret key?
  • 3.9 What is a digital signature?

Excel_4E_Concessions

  

Project Description:

In the following Mastering Excel project, you will help Lindsay Johnson, the Director of Parks and Recreation, create and modify a PivotTable report and PivotChart report to analyze revenue from park concessions such as food, boat rentals, and golf fees.