Assignment Chef icon Assignment Chef

Browse assignments

Assignment catalog

33,401 assignments available

[SOLVED] PHYC10003 Physics 1 Semester 1 2016

PHYC10003 Physics 1 Semester 1, 2016 Assessment Question 1 [ (2+2+1) + (2+2+1) + (2+3+3+2) = 20 marks] (a)      Newton’s 2nd  law can be written F = ma or  F= dp/dt. i.      Show that both of these equations are equivalent. Outline your reasoning and assumptions. ii.      State the name and explain the meaning of the type of frame in which Newton’s laws are directly applicable. iii.      How much work is done by the net force on (or by) an object moving in uniform circular motion? (b)     An Airbus A380 jet of mass 3 × 108  kg is cruising at a constant speed of 200 m/s, heading due east. A bird is also flying due east at 1.0 m/s directly in the path of the  jet. The bird is 30 cm   long, and has a mass of 1.0 kg. After the collision, the pilot notices that the bird appears to be squashed flat and stuck to the front of the airplane. (i)       Show that it takes less than 2 ms for the airplane to squash the bird. (ii)     Calculate the average force exerted by the airplane on the bird during this time period. (iii)    State the average force exerted by the bird on the airplane during this time period. (c)      A student, Benedict, is competing in a race across an open rectangular field. He finds it hard to run in a straight line, and his displacement from the start at (0,0) is subsequently given by where t denotes time. i.      What is the magnitude of his displacement from the start after 10 s? ii.      The magnitude of his displacement after 10 s is not equal to the magnitude of the distance he covers in that time. Which is greater? Give reasons for your answer. iii.      What is his speed at t = 10 s? Another student, Beatrice, starts at the same time. Her displacement is given by: iv.      Write down Benedict’s displacement relative to Beatrice in (i, j) notation. Question 2 [3+ 3 + 1 + 2 + 3 + 3 = 15 marks] Shown below is a graph of potential energy versus Δx, the separation of two  atoms which could be brought together to form. a molecule. As the atoms are brought closer together, the potential between the atoms can lead to bonding. a)   Sketch the force F between the atoms as a function of the separation Δx. Clearly label your axes and also include a label stating the relationship between F, the potential energy and the separation. b)   Indicate the region(s) of Δx which represent where the force between the atoms is i)    repulsive and ii)   attractive. c)   Estimate the value Δx for maximum bonding to occur in this molecule. Alexandra is conducting a gravity experiment in the lift (elevator) of a tall building with her partner Lee. She asks Lee to stand on a weight measuring scale which has been calibrated in newton, not kilogram.  They travel between several floors non-stop and the journey takes about 20 seconds. Graphed below are  the readings obtained from the scale during this journey. When the lift begins to move, the reading on scales changes significantly and then settles down to a steady value, until they approach the destination floor where once again it changes. d)   From the graph, determine Lee’s mass. e)   What is the maximum magnitude acceleration of the lift in the first 6 seconds ofthe journey ? f)    In which direction is the lift travelling (up or down)? Explain the reasoning behind your answer. Question 3                                                                             [ (2 + 3 + 2) + (1 + 2 + 3 + 3) = 16 marks] a)   Consider the pulley which is attached to the roof by a bar as shown in the diagram. Two masses m1  and m2   are suspended by rope from this pulley. Note: There is no friction preventing the pulley from turning and that the pulley, bar and connecting ropes may be considered massless. DATA: m1 = 3.0 kg, m2  = 6.0 kg i.      Draw a free body force diagram for each of  the masses. Use T for the tension in the rope between the two masses. ii.      Calculate the tension T in the rope and the accelerations a1 and a2  of the masses m1 and m2 respectively. Show your working. iii.      Calculate the tension the bar connecting the pulley to the roof beam. Show your reasoning. b)   A box of mass m is being pulled along a flat surface by a constant force, F, as shown. The force makes an angle θ to the horizontal. Assume that the force is not sufficient to ever lift the box off the surface and that the surface is frictionless. i.      Write an algebraic equation for the acceleration of the block. ii.      Write an algebraic equation for the normal reaction between the box and the flat surface, N. The box is now sliding on surface with a coefficient of kinetic friction, μ between the box and the surface. iii.       Show that the acceleration a“  is now given by the expression iv.      Show that the maximum value of a“ , for a constant value ofF occurs when tanθ = μ . (Hint: use calculus Question 4 [3 + 2 + 2 + 3 + 4 = 14 marks] A young student is swinging in a circle around a vertical pole on the end of a 10 m rope, as shown in the diagram. The motion of the student traces a circle in the horizontal plane. a)   Sketch and label the physical forces acting on the student (use a free-body diagram). b)   Assuming the student has a mass of 50 kg, calculate the tension in the rope. c)   Calculate the centripetal force acting on the student. d)   Calculate the student’s speed. Consider now the more general case, where the angle of the rope with the vertical is θ, the student has a mass of m kg and the length of the rope is l . e)    Show that the speed is given by Question 5 [5 + 2 + 3 = 10 marks] A thin rod of mass Mrod  = 50 g and length L = 20 cm is attached to a small motor and rotated about one end as shown in the diagram below. Each complete revolution takes 6 seconds. a)   Show using calculus that the moment of inertia of the rotating rod described above is MrodL2 /3. b)   Calculate the angular momentum of this rotating rod. Now consider the case when the rod is rotated about an axis, a distance %L from then end ofthe rod, as shown below. c)   Find or derive, in terms of Mrod  & L, an expression for the moment of inertia of the rotating rod. Note: The moment of inertia of a thin-rod rotated about its centre-of-mass is MrodL2 /12. (You may use the parallel axis theorem in your answer.) Question 6 [ 2+ (1 + 1 + 1) + 2 + (3 + 2) + 2 + 1 + 2 + 2 = 19 marks] Mirrors are placed 35,000 m apart on either side of Lake Eyre. A light source/detector combination is placed at the mid-point between the two mirrors  at the  origin  of the  stationary reference  frame.  as illustrated in the accompanying figure. At time t = 0  in the stationary reference frame a light pulse is emitted from the light source. (a)      State the principle of simultaneity. (b)     In the stationary reference frame find the space-time coordinates of the events: (i)      Light pulse arrives at Mirror R, (ii)     Light pulse arrives at Mirror L. (iii)    Light pulses arrive back at Detector (after having reflected from mirrors). (c)     Are  the  two  events, light  pulse arrives at mirror  R and light  pulse arrives at mirror  L simultaneous in the stationary reference frame? Explain briefly. At time t = 0  in the stationary reference frame Speedy Duck happens to be flying past from left to right at a speed of 6.00 × 107 m.s-1 . Speedy Duck is at the origin of her reference frame and at time t, = 0 the light source/detector is passing her position. (Lake Eyre, the mirrors and the light source/detector are moving from right to left at  6.00 × 107 m.s-1    in  Speedy Duck’s reference frame.) (d)     In Speedy Duck’s reference frame what are the space-time coordinates of the events: (i)      Light pulse arrives at Mirror R, (ii)     Light pulse arrives at Mirror L. (e)      Conceptually, why do you expect the event light pulse arrives at mirror R to occur before the event light pulse arrives at mirror L in Speedy Duck’s reference frame? Explain briefly. (f)      In  Speedy Duck’s reference frame, after reflecting  from the mirrors the two light pulses arrive back at the light source/detector simultaneously even though the events described in part (e) are not simultaneous. Briefly explain how this is possible. In the Stanford Linear Accelerator electrons are accelerated to a final energy of 4.0 × 10-9 J . (g) Find the value for and the corresponding momentum of the electrons? Astronomical Data: Body Period Mean Radius (m) 3.84×108 (from Earth) 7.36×1022 Earth 1.00 y 6.37×106 Mass(kg) 6.39×1023 1.07×1016

$25.00 View

[SOLVED] ACF5130 Week 11 Valuation Theory 2SPSS

ACF5130 Financial statement analysis and business valuation Week 11: Valuation Theory 2 Discussion Question 1: Estimating Residual Income Use the following details to estimate the residual income of TCBH Group for the year ended 31 December 2023. TCBH Group had a book value of equity of $127,650 on 31st December 2023. Net Income ($million)                          8,900 Book Value of Equity ($ million)         127,650 Cost of Equity (%)                                5.25 Discussion Question 2: Residual Income Valuation The following exhibit (all figures in $ million) shows the Balance Sheets of XYZ Inc for the years ended 31 December 2022 and 31 December 2023 respectively. Sales revenue was $3,726 million. Sales revenue is forecasted to grow at a 6% rate per year in the future, on a constant asset turnover of 0.65. Operating profit margins of 14% are expected to be earned each year. Further, financial assets and financial liabilities will grow at 10% annually, and accounts payable will grow at 6% until 2028. Assume that the terminal growth rate of residual income is 1% and that XYZ Inc has a current WACC of 6%. XYZ Inc has 1,289 million shares outstanding. Required: 1. Forecast the residual income up to 2028. 2. Estimate the terminal value. 3. Estimate the share price of XYZ Inc. Discussion Question 3: Relative Valuation PGB Retail Ltd is considering listing on the Imaginary Stock Exchange. PGB Retail Ltd operates a chain of department stores in Imaginaryland. It is planning to issue 1,250 million shares in the IPO and is considering an IPO price of I$1.42 per share. Currently, there are two listed department stores in Imaginaryland - AnythingUWant Inc, and UllFindItAll Ltd. Their current P/E ratios are 6.80 and 7.20 respectively and their P/B ratios are 2.80 and 3.20 respectively. PGB Retail Inc disclosed its most recent earnings as I$250 million. It has a current equity base of I$600 million. Based on the above information, comment on the IPO price of PGB Ltd. Discussion Question 4: Relative Valuation Wefly Ltd. has a current P/E ratio of 7.42. The industry average is 7.50. Assume that Wefly Ltd has stable earnings and its interest coverage ratio is 5.30. Wefly Ltd has a current cost of equity of 9%. Based on this information, comment on whether Wefly Ltd is overvalued, undervalued or fairly priced. The forward P/E ratio of Wefly Ltd is 6.90. Discussion Question 5: Growth Rate Metcash Ltd’s current share price is $3.84. It paid dividends per share of $0.22 and its EPS was $0.27 in the last financial year. It’s current P/E ratio and cost of equity (Finbox) are 13.71 and 8.26% respectively. Metcash Ltd has a current ROE of 24.62%. Using this information, estimate the market’s expected growth rate for Metcash Ltd’s earnings. What is the maximum P/E ratio that Metcash Ltd can sustain given its existing capital base? Discussion Question 6: PEG Ratio The Table below shows the average P/E ratios, expected 5-year earnings growth rates, and PEG ratios of some industries in the US as of January 2024. Required: • Analyse the relation between the PE ratio and PEG ratio • Analyse the relation between the expected earnings growth rate and PEG ratio • How would you characterise the relation between the PEG ratio and industry risk (measured by earnings volatility)?

$25.00 View

[SOLVED] ECON 2331 Economic and Business Statistics 2 Assignment 2

ECON 2331: Economic and Business Statistics 2 Assignment 2 (75 marks; 5%) To receive full marks, you need to show all your work. 1.   Social networking is becoming more and more popular around the world. Pew Research Center used a survey of adults in several countries to determine the percentage of adults who use social networking sites (USA Today, February 8, 2012). Assume that the results for surveys in Great Britain, Israel, Russia, and United States are as follows: (31 marks total)   Country Great Britain Israel Russia United States Use Social Networking Sites Yes 344 265 301 500 No 456 235 399 500 a.   State the null and alternative hypotheses. (2 marks) b.   Conduct a test to determine whether the proportion of adults using social networking sites is equal for all four countries. What is the degrees of freedom? (10 marks) c.   What is the p-value? (2 marks) d.  Using a 5% level of significance, what is your conclusion? (2 marks) e.   What are the sample proportions for each of the four countries? (2 marks) f.    Which country has the largest proportion of adults using social networking sites? (2 marks) g.   Using a 5% level of significance, conduct multiple comparison tests among the four countries. What is your conclusion? What is the degrees of freedom?(11 marks) 2.   Based on sales over a six-month period, the five top-selling compact cars are Chevy Cruze, Ford Focus, Hyundai Elantra, Honda Civic, and Toyota Corolla (Motor Trend, November 2, 2011). A sample of compact car sales in Chicago showed the following number of vehicles sold: (17 marks total) Cars Vehicles Sold Chevy Cruze 108 Ford Focus 92 Hyundai Elantra 64 Honda Civic 84 Toyota Corolla 52 a.   State your null and alternative hypotheses. (2 marks) b.   Use a goodness of fit test to determine if the sample data indicate that the market shares for the five compact cars in Chicago are different than the market shares reported by Motor Trend. Show all the steps in your calculations of this test, including the degrees of freedom. (9 marks) c.   Using a 5% level of significance, what is the p-value for this test? (2 marks) d.  What is your conclusion? (2 marks) e.   What market share differences from others, if any, exist in Chicago? (2 marks) 3.   We want to determine if the following sample comes from a normal distribution: (15 marks total) 105 260 314 400 520 280 270 516 419 520 300 306 115 200 208 420 438 511 708 300 418 110 410 312 360 420 519 702 690 518 310 314 418 316 412 510 700 650 670 612 516 480 490 504 518 460 600 680 692 600 a.   Compute the mean and the standard deviation. (3 marks) b.   Compute the test statistic.  Hint:  divide the distribution into 10 equal intervals. (8 marks) c.   At 95% confidence using the critical value approach, test to determine if the sample comes from a normal population. (2 marks) d.  Compute the p-value. (2 marks) 4.   Prior to the start of the season, it was expected that audience proportions for the four major news networks would be CBS 28%, NBC 35%, ABC 22% and   CBC 15%. A recent sample of homes yielded the following viewing-audience  data:   Number of Homes CBS 850 NBC 980 ABC 670 CBC 500 We want to determine whether or not the recent sample supports the expectations of the number of homes of the viewing audience of the four networks. (12 marks total) a.   Clearly state the null and alternative hypotheses to be tested. (2 marks) b.   Compute the test statistic. Show all the steps in your calculations of this test including the degrees of freedom. (6 marks) c.   The null hypothesis is to be tested at 95% confidence. Determine the critical value for this test. (2 marks) d.  What do you conclude? (2 marks)

$25.00 View

[SOLVED] CP2501/CP3511 Cloud Computing - Project Report

CP2501/CP3511 Cloud Computing -  Project  Report Deadline:  11/Aug/2024, 11.59 pm Task Select an appropriate lab environment within the AWS Academy platform to deploy a web server as illustrated in the following diagram using the AWS CLI. Figure 1:  Illustration Diagram of Your Final Product. Submission Please submit a zip file named (JC123456.zip, (replace (JC123456, with your actual JC num- ber), which should contain the following items. 1.  One text file (.txt) that contains all the AWS CLI commands you used, with comments provided for each command. 2.  One  .pdf file containing the following screenshots (points (a) to (e)). (a)  One screenshot should display the public IPv4 address and the contents of your website in a web browser. Your website should prominently feature your JC num- ber. For instance, in Figure 2, you can see two red circles highlighting the assigned public IPv4 address and a sample JC number (replace it with your JC number) as you implement this project. Figure 2: Final Website.              (b)  One screenshot displays a preview of your VPC (resource map). Refer to Figure 3 for an example. Figure 3:  Resource Map of A VPC. (c)  Two screenshots display the IPv4 CIDRs for both public and private subnets.  Refer to Figures 4a and 4b for examples.                                               Figure 4:  IPv4 CIDRs (d)  Two  screenshots  show the  routes  of  both  public  and  private  route  tables. Refer to Figures 5a and 5b for examples.         Figure 5: Routes in  Route Tables (e) One screenshot displays the inbound rule(s) of the security group, including the protocol and port range. Refer to Figure 6 for an example.           Figure 6:  Inbound Rule. Rubric/Marking Scheme Overall marks:  20  points • 8 points: the screenshots containing the required information. - 2 points: the  screenshot of the final website. - 1 point: the resource map of your VPC. - 2 points: the IPv4 CIDRs for both public and private subnets. - 2 points: the routes of both public and private route tables. - 1 point: the inbound rule of the security group. • (2.5 + 1) points: the commands that create the required VPC and their comments. • (1.5 + 1) points: the commands that set up the security group and their comments. • (5 + 1) points: the commands used to launch the EC2 instance for the web server and their comments. Notes • When working on this project, consider AWS Documentation, previous weekly practical instructions, search engines, and ChatGPT as your best resources and guides. • You have a maximum of three hours to use the lab environment.  Before the  lab auto- matically terminates, remember to save your work regularly to avoid wasting time. • Pay attention to your web browser’s default protocol (HTTP or HTTPS) when visiting your website. • When a web server is not reachable (Port 80: connection refused), there are two possible reasons in this assignment. First, the VPC’s firewall may not allow Port 80  traffic.Second, the web server may not be listening successfully on Port 80 (http or tcp). • The screenshots do not have to be exclusively generated by the AWS CLI.  You can still earn 8 points for the screenshots if you use the AWS Management Console, either exclusively or partially, to create the web server. • You will receive marks for comments if and only if you provide the AWS CLI commands. It is acceptable if those commands do not work. • All resources (VPC, subnets, security group, and final website contents) should be tagged or named with your JC number, as shown in the examples above. Failure to do so will result in a score of ZERO.

$25.00 View

[SOLVED] Research and Application of Machining Processes Part B Application - Module Assignment 2025

Research and Application of Machining Processes Part B: Application - Module Assignment 2025 Aim: The aim of this assignment is to develop your skills in the use of Computer Aided Manufacturing (CAM). Learning outcomes: As a result of undertaking this assignment you should be able to: •   Analyse component designs from a manufacturing engineering point of view. •   Use CAM to develop an optimum solution for the manufacture of components. •   Develop a component from design to manufacture. •   Produce a manufacturing report detailing the techniques used. •   Assess a component for geometrical accuracy. •   Use statistical process control. Submission details •   The assignment will be submitted through Canvas. •   The assignment will form 50% of the total module mark. •    Submission deadline for all parts is 2pm (14:00) UK time on Thursday 3rd April 2025 •   Any work submitted late will receive a penalty of 5% of the assignment mark per working day. •   If you are unclear about any aspect of electronic submission or submission in general, you should seek advice well in advance of the assignment deadline. •   All sections of the assignment should be written in English and written in report form. Penalties will be applied if not. •   You can use landscape page orientation if required but the report should be mostly in portrait format. •   Your report should have a cover page. The following is required in this specific order or 10% reduction in module mark will be applied. Module title, Department, School, Name, ID number, Module coordinator, Report title, Date of submission. •   Immediately following the cover page, a completed University of Birmingham Assessment and Student Template should be provided. See Appendix A for details of this. •   After the completed University of Birmingham Assessment and Student Template, the Report Writing Checklist should be provided. You should check that each aspect of the checklist has been completed in your report. The checklist is included in Appendix B. •   The report is in three parts A, B and C and should be word processed in Arial or Times New Roman, size 12. This includes figure or table captions but not the text in the figures or tables. This can be whatever size you wish. Please consider that Dr Hood is getting older, and his eyesight is getting worse. •   All sections of the assignment  should be completed individually. Think carefully  about the sections you include and the structure of your report. •   The report cover page, feedback sheet, report writing checklist, appendices, and reference list are not included in the page count. •   A separate list of contents figures or tables is not required and will be included in the page count. •   Additional advice on report writing is available through the University Academic Skills Centre. https://intranet.birmingham.ac.uk/as/libraryservices/library/skills/asc/index.aspx. •   Please note: “Plagiarism will not be tolerated. It is the act of a Student claiming as their own, intentionally or by omission, work which was not done by that Student. Plagiarism also includes a Student deliberately claiming to have done work submitted by the Student for assessment which was never undertaken by that Student, including self-plagiarism and the other breaches. Sanctions ofa plagiarism include the student failing the Programme of study” . Background: You are a Graduate Mechanical Engineer working for a company called Jennings Engineering. You have been working for the company for less than one year but have experience of computer aided manufacture (CAM). Part A: Based on recent UK government initiatives, Jennings Engineering has decided to set up a new division focusing on quantum technology and sensor systems. This is highly exploratory in nature and commercially sensitive. You work for Jennings Advanced Manufacturing (JAM) which supports all of Jennings Engineering divisions and have been seconded to this new division to support the R&D manufacturing process development. The designers have developed a series of components with different levels of their perceived complexity, and you have for now been tasked with developing possible machining solutions for one of these products. The component named “Jennings Optical Kinetic Emitter Receiver (JOKER)” is detailed in Figure 1. The component will be manufactured from a prototype material that cannot be used in casting, forming or 3d printing processes and must be produced by machining from a stock workpiece at this stage. The material specification is commercially confidential, but you may assume that the material has similar properties to a copper alloy. You need to develop a turnkey solution for the products to show the viability of this product. Only the CAD file exists for the component. As this product is at an early stage of development there may be iterations ofthe design, and you should be prepared for this. Figure 1: Jennings Optical Kinetic Emitter Receiver (JOKER). You are required to: •  Develop the CAM solution to manufacture the component. •  Provide the full specification of the fixturing, tooling, optimum cutting strategy, machine tool and the justification/reasoning behind the strategies chosen. •  Include details of any strategy you use including the datum, boundary, etc. required. •  Provide enough detail to ensure that your method of production can be recreated easily and show that you can produce the component. It is suggested to show the tool path development and then the output. Please remember to make figures large enough to read and include annotation. •  Suggest alternative ideas if there are features that are not good design practice or challenging to make and potential ways to combat them as well as methods to manufacture in current form. •  Provide a basic optimisation of the number of tools required, the machining time and suggest tolerances for component. •  Provide an image of the final machined component. •  Develop a plan for the inspection of key features and show a brief method using Fusion 360. •  You do not need to provide screenshots of every parameter entry tab in Autodesk Fusion 360 as an understanding of the  software  operation is assumed.  Lecture material should be used to support this activity. You should use the Autodesk Fusion 360 for the CAM aspects. Jennings has stated that they wish to use SECO Tools Ltd as the tool supplier. You are therefore restricted to use only tools detailed on their website. Please see https://www.secotools.com. You can use custom tools if required however must justify this. You are required to also  source  a machine tool specification for the manufacture of the components including justification for the reasons chosen. The full solution to this section of the assignment which will include a detailed description and appraisal of the strategies including pictures used will form Part A of your manufacturing report to be submitted formally via CANVAS. You are restricted to a maximum of twenty (20) A4 pages for Part A. You can choose the structure for your report however your report should enable a reader to recreate your method using only the report for reference. Part  B: Jennings Engineering wishes to publicise your manufacturing skills and capability  to outside companies to generate additional revenue and has therefore decided to produce a trade article for distribution in a trade magazine. Due to commercial restrictions, you are not able to mention or show any aspects from Part A. You should design a component that can be produced by CNC processing and illustrate the CAM routine for this component. The subject matter for this component should have a link to the subjects introduced in the Part A: Research section of this module led by Dr Soo. Your component can be as simple or as complex as you wish, it can be of any size, structure, material, etc. You are required to have a clear element of sustainable machining within the article as well. Any tools can be used as can any CAM strategy however the component must be capable of being produced by milling or turning. Fusion 360 has excellent examples that can be used. The publisher has restricted you to a total of 400 words and two figures for this article and the article must fit on a single page of A4. If you do not follow this, then penalties will be applied.  Both images should be illustrating an aspect of the CAM routine, etc.     You  should remember that the purpose of trade magazines is to draw the reader into the article and that the article should showcase your abilities and hopefully generate new business. Be specific on the technical details. Part C: You have machined a circular feature which has a nominal dimension (diameter) of 48mm in a steel block using four different machining centres (Machines  1 to 4) that have been made available to the newly acquired company Rotary Aerospace Manufacturing Parts Company (RAMP Co) to machine one of their components. They have been used previously by Jennings Aerospace. 12 parts (Parts 1 to 12) with this feature have been machined. The feature on each part has been measured using a CMM to determine the actual machined size of the feature. The measurements were undertaken by three different CMM operators  (Operators A to  C) with three replications (Replications 1 to 3) for each. The measurement data is given in Table 1 with an excel spreadsheet with the filename: Part C measurement data on the CANVAS page giving the results as well. Produce control charts (maximum of 6) and calculate the Cp and Cpk values for the  various features. Critically analyse the results and produce recommendations for process capability and control. Which machine tool would you recommended to be used for a longer production run and why? A maximum of 5 pages is allowed for this section. Table 1: CMM measurement data Part B Assessment breakdown: Comprises 50% of the overall module assessment. oftheoverallmarkPart B:             DFM and CAM20% oftheoverallmarkPresentation:   Overall,for report10 k

$25.00 View

[SOLVED] INFOSYS 110 DIGITAL SYSTEMS Semester Two 2021

INFOSYS 110 DIGITAL SYSTEMS Semester Two 2021 MOJO Coffee: Excellent coffee is never a rational thing; it's a drink imbued with inspiration, freedom , celebration, history, dreams . It's about experience as much as refreshment. It's about personal space, about the pursuit of perfection, about the meeting of minds , about escape and reward. That's the Mojo and it's to treasure. Founded as a boutique roastery café in Wellington by Steve and Julie Gianoutsos in 2003, Mojo Coffee is now one of New Zealand’s most experienced independent coffee roasters and café operators . Starting from humble beginnings on Wakefield Street, Mojo has grown like a family, working with passionate individuals along the way. Mojo Coffee now has 35 locations across Auckland and Wellington. When Covid-19 struck in 2020 Mojo Coffee decided to make their locations cash  free.  This meant that they no longer accepted cash for payments and customers pay by card or via the Mojo App. Existing Mojo App Functionality: The Mojo App is available on both Android and iOS.  All registered users can get 10% off all hot drinks and freshly roasted coffee beans for home, every visit. All that is required is to scan the app at the till. Other handy functions on the app include printing or emailing GST receipts (this is very useful for customers who are claiming their coffees as business expenses), loading credit using your credit card and tracking your transaction history. This case is adapted from information found on https://mojo.coffee/ but is fictitious . 1 Using the information from the exam case, suggest a. One output item mentioned that has been historically non-digital, but has now become “digital-first” . Briefly explain your answer. [2] b. One example of a TPS and one example of a DSS that Mojo could utilise in the process of generating such useful information. [2] c . Two examples of data collected by your TPS and two examples of information generated by your DSS. [4] Construct your answer using the following template. Copy and Paste it into the answer area and fill in your answers accordingly: a. The "Digital-First" item: Explanation: b. One example of TPS: One example of DSS: c. Data example 1: Data example 2: Information example 1: Information example 2: 2 Mojo spreads across 35 locations .  Mojo has the option of either having a single information system running with a centralised database or, allowing each store to run and maintain its own information system , each with its own database. Based on what you have learnt from INFOSYS110, which option makes more sense for Mojo? Explain your recommendation. [3] Suggest two advantages and two disadvantages associated with your recommendation [4]. Construct your answer using the following template. Copy and Paste it into the answer area and fill in your answers accordingly: Your recommendation: Explanation for your recommendation: Advantage 1: Advantage 2: Disadvantage 1: Disadvantage 2: Fill in your answer here 3 When a customer enters the store and scans the app, the counter staff get shown: 1. what drink the customer normally orders and; 2. a prompt to suggest an accompanying snack that the customer is likely to enjoy based on their, and other customer’s , past choices . a.  What type of analytics is being utilised in 1?  Justify your answer. [2] b.  What type of analytics is being utilised in 2?  Justify your answer? [2] c .  What type of unsupervised data mining technique might be used for 2?  Justify your answer. [2] Construct your answer using the following template. Copy and Paste it into the answer area and fill in your answers accordingly: a. Type of analytics utilised in 1: Justification: b. Type of analytics utilised in 2: Justification: c. Type of unsupervised data mining technique: Justification: 4 Mojo are given the following visualisations: Visualisation 1: Visualisation 2: a. Identify two insights that Mojo can derive from visualisation 1 and how they might apply them in their business . [4] b. Identify two insights that Mojo can derive from visualisation 2 and how they might apply them in their business . [4] c . Identify two reasons why it might be risky for Mojo to rely on these visualisations when making business decisions . [4] d. Identify an example of the use of pre-attentive processing in visualisation. [2] Construct your answer using the following template. Copy and Paste it into the answer area and fill in your answers accordingly: a. Visualisation 1 Insight 1: Application: Insight 2: Application: b. Visualisation 2 Insight 1: Application: Insight 2: Application: c. Reason 1: Reason 2: d. Example: 5 The Mojo Team is looking to enhance the functionality of their app and have kicked off a project to enable customers to pre-order their coffees on the app.  The idea is that customers place their orders on the app and then, when they reach the store, they scan in, and the in-store staff start making their coffees .  It is anticipated that reduced wait times will allow for increased customer satisfaction and also for more orders to be processed during busy times . The project manager estimates that this project will take about 3 months to implement and cost    Mojo about $50 000 in one off costs , and about $5 000 per annum in ongoing maintenance costs . Mojo is estimating a 10% increase in profit per annum , because of this initiative. a. What makes this a project? State three characteristics about this work that qualifies it as a project rather than BAU (Business as usual). Briefly explain how each of the characteristics apply. [3] b. What is the time constraint in this project?  Be specific as definitions will get no marks . [1] c . What is the cost constraint?  Be specific as definitions will get no marks . [1] 2 months into the project Julie Gianoutsos points out that if the Mojo app could utilise the GPS functionality of modern phones to detect when the customers are on the way to the store.  She suggests modifying the app so that the barista gets a notification to start making the coffee when a customer is within 200 metres of the store. d. If this was to be actioned, then what would be the likely impact on the project in terms of the project management triangle?  Justify your answer. [2] e. Explain how this added functionality could benefit Mojo. [2] f. Explain how this added functionality could hurt Mojo. [2] Construct your answer using the following template. Copy and Paste it into the answer area and fill in your answers accordingly: a. Characteristic 1: Explanation: Characteristic 2: Explanation: Characteristic 3: Explanation: b. Time constraint: c. Cost constraint: d. Impact: Justification: e. Explanation (benefit Mojo): f. Explanation (hurt Mojo): 6 Mojo has decided to store all the ordering, payment and customer data utilised by the app on the Amazon Cloud rather than storing them on their own computers . a. Why would they choose to do that? [1] Mojo realise that if they have access to their customers ’ GPS data, they could send alerts with incentives for customers to pop in to their stores whenever a customer was within 100 metres of the store. b. They are wondering if this is ethical.  If they used the “rights approach” ethical framework then how would you advise them?  Justify your answer. [2] One of the baristas accessed the database to look up a customer's phone number to ask them out on a date. c . Which information security principle is this violating? Justify your answer. [2] d. Which of the four risk management responses is the most appropriate one to use to resolve this risk? In justifying your answer outline how your response could be actioned.[2] Construct your answer using the following template. Copy and Paste it into the answer area and fill in your answers accordingly: a. Why? b. Advice: Justification: c. Information security principle: Justification: d. Appropriate risk management response: Justification: 7 A part-time staff at Mojo is currently an INFOSYS110 student with a passion in computer programming. During quiet times at work , he contemplates about the code required for Mojo’s digital loyalty programme, where patrons get a free coffee after nine drinks are purchased at Mojo. Being a beginner in coding, he came up with a basic idea where the app may ask a customer the   following question: “ How many drink(s ) have you purchased?” Upon answering this question by inputting a numerical value, the app will process this data and inform the customer about whether they are eligible for a free coffee, or how many more drink(s )  they have to purchase before they get a free one. Responses from the app may therefore be one of the two options below: “You are eligible for a free coffee!” Or “You will have to purchase X more drink(s ) to get your free coffee!” (where X is the number of additional drink(s ) required). To facilitate this , the following JavaScript code is proposed (with blanks A to E): var cupsPurchased = (A) ("How many drink(s ) have you purchased?"); (B) (cupsPurchased 

$25.00 View

[SOLVED] PHYC10003 Physics 1 Semester 1 2017

PHYC10003 Physics 1 Semester 1, 2017 Assessment Question 1                                                                        [(3 + 3) + (2 + 3 + 3 + 1) = 15 marks] a)   Briefly explain the sensation of weightless felt during free-fall even though gravity is present? (you may ignore air resistance when answering). b)   Consider the force(s) felt by a passenger in a car making a sharp left hand turn.  Use this example to explain the difference between centripetal and centrifugal force. Two sailors, Jex and  Beatrice are meant to be competing in a race across an large rectangular lake. The race begins with both sailors effectively crossing the starting (0,0) line together. Jex finds it hard to sail in a straight line, and moves with a displacement from the start at (0,0) given by r(t) = ti(^)+0.2t2j(^). c)   What is the magnitude of Jex’s displacement from the start after 10 s? d)   Jex’s displacement after 10 s is not equal to the magnitude of the distance covered in that time. Which is greater? Give reasons for your answer. e)   What is Jex’s speed at t = 10 s? The other competitor Beatrice, starts at the same time. Her displacement is given by: r(t) = ti(^) -0.3t2j(^) f)   Write down Jex’s displacement relative to Beatrice in (i,j) notation. Question 2 [7 + 3 = 10 marks] The diagram below depicts the geometry of an inelastic collision of a moving white-striped billiard ball and a grey billiard ball which is initially at rest. The white-striped ball is played in the positive-x direction such that it collides with the grey ball. The collision causes the grey ball to move off towards the lower-right pocket at an angle of 30° from the x-axis. The mass of the grey ball is 0.15 kg and the white-striped ball is 0.18 kg. A sound recording reveals that the collision happens 0.25 s after the player has struck the white-striped ball and that the grey ball falls into the pocket 0.35 s after the collision. a.   Calculate the velocity of the white ball after the collision? b.   Calculate the energy lost to the environment in this collision? Question 3                   [ (2 + 5 + 2 + 3) + (5 + 3) = 20 marks] Steve is going on holiday and has carefully packed some physics demos into a suitcase. The mass of the suitcase is m = 7.0 kg, and he intends to place it on the roof of the car without any restraints. In preparation, he has measured the coefficient of kinetic friction between the roof of the car and the suitcase as μk = 0.2  and the coefficient of static friction is μs = 0.5. He is also aware the he cannot ignore air resistance. However, Steve is confident that his driving skills and friction will ensure that the suitcase remains on the roof of the car. Steve gently accelerates from rest to 40 km/hr, striving to ensure that the suitcase remains where he has placed it. a)   If you wish to analyse the motion of the suitcase using Newton’s laws, which frame of reference, that of the car or that of an observer on the footpath, should you use? Explain why. b)   The car increases in speed as it travels in a straight line on a flat road. Draw a diagram in your exam booklet clearly showing all forces acting on the  suitcase. Define all symbols introduced. c)   Considering only the friction between the suitcase and the roof (of the car), calculate the maximum acceleration of the car to ensure that the suitcase does not slide off the roof. Steve decides to increase his speed to 60 km/hr, ensuring that he never exceeds the maximum acceleration calculated in part c) above. Despite all of this, Steve observes the suitcase begins to slide off. d)   Considering all of the forces acting on the suitcase, justify why the suitcase begins to slide off at this greater speed. Jean is riding her bike quickly along a raised pathway at constant velocity as shown in the diagram below. As she reaches position “P” she accidentally drops her drink container and, remarkably, it lands directly into a recycling bin 3.0 m directly below, just as she passes point “Q” 10 m away. You may ignore air resistance. e)   How fast was Jean travelling when the drink container was dropped? f)   What is the speed of the drink container as it reaches the top of the bin directly below Q? A small firework of mass 1.5kg.is attached to the base of the hot air balloon which is stationary and floating 100m above the ground as shown (not to scale). As the firework is lit, there is an explosion which causes the firework to split into two unequal fragments, which are emitted horizontally back-to- back as a result of the explosion. One fragment, A, has a mass of 0.5 kg, while the other, B, has a mass of 1.0 kg. (a)     If the total energy of the explosion is 2.5 kJ and 75% of this energy is converted into the kinetic energy of the fragments, what are the speeds with which the fragments are ejected? Clearly specify which fragment corresponds to which speed. The fragments then fall under the influence of gravity (but air resistance can be ignored) and land on the same horizontal surface (b)     What is the difference in times for each fragment to strike the ground? (c)      Calculate the distance between where the fragments land. Question 5              [1 + 1 + 1 + 1 = 4 marks] A rocket closely resembling Thunderbird 3 is drifting sideways in outer space along the line p-q as shown. The rocket is not subject to any outside forces. Starting at position q, the rocket's engine is turned on and produces a constant thrust (force on the rocket) at right angles to the line p-q. The constant thrust is maintained until the rocket reaches a point r (not shown). (a)     Which path A to E below best represents the path of the rocket between points q and r ? (b)     As the rocket moves from position q to position r, its speed is: (A) constant. (B) continuously increasing. (C) continuously decreasing. (D) increasing for a while and constant thereafter. (E) constant for a while and decreasing thereafter. (c)     At point r the rocket's engine is turned off and the thrust immediately drops to zero. Which of the paths A to E below will the rocket follow beyond point r? (d)     Beyond position r the speed of the rocket is: (A) constant. (B) continuously increasing. (C) continuously decreasing. (D) increasing for a while and constant thereafter. (E) constant for a while and decreasing thereafter. Question 6                   [ (2 + 3 + 2 + 3) + (2 + 1 + 3) = 16 marks] Two objects, m1  of mass 2.0 kg and m2  of mass 1.0 kg, are confined to move in a circular path along a frictionless track of radius 1.5 m.  As shown in the diagram, m1  is initially moving in a counter(anti)-clockwise direction with an angular velocity of +0.5 rad.s-1  whilst m2 moves in the opposite direction, with an angular velocity equal in magnitude to that of m1. In answering the questions below, you may consider each object to be point like. a)   Show that the moment of inertia of m1  is 4.5 kg.m2. b)   Calculate the total angular momentum, of the system before the collision. At an arbitrary point, the objects collide and remain stuck together.  In answering the questions that follow, you may consider each object to be a point-like particle. c)   What is the total angular momentum, of the system after the collision? d)   Calculate the angular velocity (magnitude and direction) of the ‘combined’ object (m1+m2) after the collision. A figure skater with arms extended and moment of inertia Ii  is spinning on ice (assumed frictionless) at an angular speed of ωi. As the skater retracts (pulls in) his arms as shown, his moment of inertia changes to If and his angular speed increases to ωf. e)   Briefly explain why the skater’s angular speed increased as he retracted his arms. Now consider the rotational kinetic energy, Kf, of the skater after his arms have been retracted. f)   Which one of the following statements is correct? A. Kf is equal to Ki . B. Kf is greater than Ki C. Kf is less than Ki . where Ki is the skater’s initial rotational kinetic energy. g)   Justify you answer to the previous question. Include a reference to conservation of energy or work done in your answer. Question 7                  [2 + 2 + 2 + 2 + 3 + 2 + 3 + 3 = 19 marks] One of the closest stars to Earth is Alpha Centauri, which is 4.3 light-years away. A rocket carrying Sid Meier leaves Earth for Alpha Centauri at a speed of 0.9c. You may assume that the Earth and Alpha Centauri are at rest relative to each other. (a)     Define an inertial reference frame. (b)     State Einstein’s Principle of Special Relativity. (c)     Define proper distance. (d)     Sketch a graph of the Lorentz boost factor y versus velocity, v, in units ofc. (e)     What is the distance in km to Alpha Centauri as measured by an observer on Earth? (f)      Is the distance in part (e) the proper distance from Earth to Alpha Centauri? Justify your answer. (g)     According to Sid Meier, how much did he age in years during the journey? (h)     According to Sid Meier, how far did he travel to Alpha Centauri? Question 8                 [  2 + 2 + 5 = 9 marks] a)       Define the concept of escape velocity. b)       The mass and radius of the Moon are 7.4  ×  1022  kg and 1.73  ×  106  m, respectively. What is the escape velocity from the surface of the moon? c)       If the mass of the earth is 6.0 × 1024kg and the distance between the Earth and the Moon is 384,400 km, at what distance from the Earth would an object experience zero net gravitational force from these two masses? Question 9                      [2 + 4 + 2 + 2 = 10 marks] A box of mass m, attached to a spring, oscillates horizontally in simple harmonic motion on a frictionless surface. When it reaches its point of maximum displacement a student places a quantity of sand, also of mass m into the box. a)       How does adding the sand change the frequency and amplitude of oscillation of the system? b)       Given that position of the oscillator obeys the equation x(t) = Acos(wt) show that the total energy of the oscillator is constant. c)       A damping term proportional to the velocity of the box is now switched on. Is the energy of the oscillator still a constant with time? If not, what happens to the oscillator energy? d)       Finally, a time-dependent periodic driving force is applied to the box. If the mass of the box is 100 g and the spring constant is 0.5 N/m, what period should the driving force have in order to make the system resonate? Question 10 [1 + 1 + 3 + 3 = 8 marks] A transverse sinusoidal wave is travelling along a string in the positive x-direction i.e. toward the right. The accompanying figure shows a plot of the displacement as a function of position at time t  = 0. Determine: (a)     the amplitude, (b)     the wavelength, (c)     the phase constant, φ 0 . If the wave speed is v  = 12 m/s (d)     find the angular frequency, w Question 11                      [ (1 + 1) + (1 + 1) + (4 + 4) + 4 = 16 marks] (a)      A string of mass per unit length 7.0  ×  10 4 kg/m is clamped at both ends and stretched to a tension such that the velocity of waves along it is 320 m/s.  If the string is vibrating at a frequency of 240 Hz: (i)      Find a value for the wavelength of this vibration. (ii)     Find a value for the tension in the string. (b)     A train whistle has a power of 250 W and emits sound waves that travel out uniformly in all directions.  Assume that the whistle is a point source: (i)     What is the equation for the intensity of the sound as a function of radial distance, R, from the whistle? (ii)     At a distance of 1.5 km from the whistle, what is the intensity of the sound from the whistle? Potentially Useful Information: Parts (c) and (d) of this question refer to the following diagram: (Speed of sound in air = 343 m/s) (c)     Taking the tunnel to be a pipe of length L that is open at both ends: (i)     Sketch the standing wave patterns (for displacement) for the first three harmonics in the tunnel and find a formula for all resonant wavelengths that can be excited in the tunnel. (ii)     If the tunnel has length L = 25.0 m, show that the frequency of the 10th harmonic is f = 68.6 Hz. (d)     A fast train continuously sounds its whistle as it approaches the tunnel.  The train driver hears a frequency fs = 55.0 Hz from the whistle. The whistle excites the 10th  harmonic in the tunnel,f = 68.6 Hz. Find the speed, v, of the train. (Assume that there is no wind blowing.) Question 12             [ 3 + 2 + (3 + 3 + 2) = 13 marks] (a)      An electron microscopy study of Carabid beetles (H. E. Hinton and D. F. Gibbs, Journal of Insect Physiology, vol 15, p 959, 1969) revealed the presence of ridge structures that act as diffraction gratings, giving rise to iridescence. When green light of wavelength 532 nm shines vertically onto the ridge structures the first order diffraction angle is θ  =  22。. Find a value for the ridge spacing, d. (b)   In the centre of the shadow of a disk or sphere there is a small bright spot, called the Poisson or Fresnel bright spot, as shown in the figure below. Briefly explain how this bright spot arises. (c)    An object is located 520 cm from a thin converging lens of focal length f  =  50cm as shown in the accompanying figure. (i)     With the aid ofa diagram, show where the image will form. (ii)    Calculate the distance from the lens at which the image is formed (iii)    Calculate the transverse magnification of this image.

$25.00 View

[SOLVED] Assignment 2 Project

Assignment 2: Project [60%] Assignment 2 takes the form. of a ‘design pack’ which showcases your proof-of-concept work and offers supporting materials so that potential investors or commissioners can assess how well it meets the stated objectives and delivers for your target market. 1500 word [10% either way] Design Pack to include: a. Logo b. Updated executive summary [approx. 250 words]. c. User profile [max. 200 words]. d. User experience map [max. 100 words. This can be presented as an image/screen shot]. e. Promotional flyer/advert [max 150 words]. f. 800 word (maximum) reflective account of the following: § Your process and reasoning. § Future ambitions for your project, including assessment of its feasibility and scalability. § Challenges encountered. § Reflections on user feedback and what you have learned from it. g. If you have included references (eg to the work of others or previous projects) you should include a bibliography formatted as per normal JOMEC submissions.  

$25.00 View

[SOLVED] MAT223 - Winter 2025 Linear Algebra Take-Home Assignment 3R

Take-Home Assignment 3 MAT223 - Winter 2025 1 In this question we let T : R2 → R2 be the linear transformation pictured in the image below. The image shows you specifically where four input points, 0, a, b, c ∈ R2 are sent by T. Additionally, note that it is implied that: the shaded region on the left is mapped proportionally onto the shaded region on the right; that T(0) = 0, T(a) = a*, T(b) = b* and T(c) = c*; and that the gridlines are spaced at unit distance from each other (i.e. a is the point (1, 2).) Find the matrix AT (i.e. find the matrix AT so that T(x) = ATx.) 2 Let T : R3 → R3 be projection onto the yz-plane. (That is, each point x ∈ R3 is mapped by T to the closest point to on the yz-plane to x. You may assume this is a linear transformation.) Find the matrix AT (i.e. the matrix so that T(x) = ATx). Additionally, show that AT has eigenvalue 0 and is diagonalizable. 3 Read the following definition carefully, and then answer the questions below. Definition   A linear transformation T : R2 → R2 is called sticky if it keeps the vectors on one coordinate axis unchanged, while all other vectors are shifted parallel to that axis. Example   For example, the transformation T(x, y) = (x + 3y, y) is sticky, because it does not affect vectors on the x-axis (i.e. T(k, 0) = (k, 0) for all k ∈ R), but vectors off the x-axis are shifted horizontally. That is, if (x, y) is not on the x-axis (i.e. y ≠ 0), then it is mapped by T to a point on the line through (x, y) and (0, y) (which is parallel to the x-axis). 3.1 This will not be marked. Determine the matrix, AT, for the transformation T defined in the Example above, and sketch a copy of R2 with the fundamental parallelogram for T included. Make sure to indicate T(e1) and T(e2) in your picture. 3.2 Show that if R : R2 → R2 is an arbitrary sticky linear transformation that is not the identity transformation, then AR (the matrix for R) is not diagonalizable. Hint: think geometrically about possible eigenvectors of AR. 4 Determine if the statements below are True or False. If it’s True, explain why. If it’s False explain why not, or give an example demonstrating why it’s false with an explanation. A correct choice of “True” or “False" with no explanation will not receive any credit. 4.1 True or False: If T : R2 → R2 is a linear transformation so that there is exactly one x ∈ R2 with T(x) = x, then T is not invertible (i.e. AT, the matrix for T, is not invertible). 4.2 True or False: If T is a linear transformation which is not invertible (i.e. AT, the matrix of T, is not invertible), then there is some non-zero x in the domain of T so that T(x) = 0. 5 Do not hand this question in! This question explores an interesting application of eigenvectors, but will not be marked. The Neilsen model is a matrix-based model of population change. The model tracks the changes in a population which is divided into n age groups (for some fixed n ≥ 2.) The model works by using the size of each age group at the start (the "starting generation") to predict the sizes of the various age groups at some later points (we can say "generation k" for some k). We let x(k) ∈ Rn be the vector whose coordinates are the sizes of the age groups at generation k. Example   For example, if we wrote it would tell us that: • There are four age groups in the population we are considering (since the vector is in R4 ); • In generation 3 (since it is x (k) for k = 3), the size of the first age group is 55, the size of the second age group is 123, etc. Definition   A Neilsen matrix is a matrix of the form. The Neilsen model works by repeatedly multiplying x(0) (the starting population) by a fixed matrix N of a particular form, called a Neilsen matrix, giving the model the form. That is, the model predicts the sizes of the age groups in generation k, i.e. x (k) , by multiplying the vector x (k−1) representing the previous generation by matrix N. Each step in this iterative process represents the members of age group j moving to age group j + 1, new offspring becoming age group 1, and the members of age group n dying. The value aj ≥ 0 for j = 1, 2, . . . , n is the expected offspring (new members of age group 1) produced by age group ji. And the number bj for j = 1, 2, . . . , n is the fraction of individuals from age group j that will survive as they move into age group i + 1. Theorem   If N is a Neilsen matrix, then it will have exactly one positive eigenvalue. Furthermore, if λ1 is the unique positive eigenvalue of a Neilsen matrix N and λ is any other eigenvalue of N, then |λ| ≤ λ1. Def   For any matrix A, if λ1 is an eigenvalue of A, and |λ| < λ1 for all other eigenvalues λ of A, then λ1 is called the dominant eigenvalue of A. As stated above, this question will not be marked. If you do it anyway, that’s on you. Let N be the Neilsen matrix 5.1 This question will not be marked. Determine the eigenvalues of N; then indicate which eigenvalue is the dominant eigenvalue; and finally, find the eigenvector for that eigenvalue. 5.2 This question will not be marked. Suppose that the starting population vector is Determine the size of age group 3 in generation 50 (i.e., the third coordinate in x(50)) using the same Neilsen matrix N as above. You may leave any large exponents, like 10500 as-is (you don’t need to use a calculator to simplify them.)

$25.00 View

[SOLVED] BUSI1640 Personal Professional Development 3 2024-25 Statistics

BUSI1640 Personal & Professional Development 3 2024-25 1 Welcome message from your Module Leader First,  I would  like  to  take  the  opportunity to welcome you to  Personal  and  Professional Development  3  (PPD3).  The  module  which  is  designed  to  develop  your  personal  and professional capabilities, will enable you to hit the ground running in the employability stakes and for you to enjoy a successful start to your career and working life. Building upon Personal & Professional Development 1 (PPD 1) and Personal & Professional Development 2 (PPD 2), this Module (PPD 3) provides you a self-guided online learning platform. Students are expected to study and review the materials including slides and videos, etc, to complete a series of tasks in each online lesson. I wish you an enjoyable learning experience on this Module. Your success on it will depend upon your willingness to: •        dedicate yourself to the online studies; •        complete all online tasks by the deadline to pass this Module. Success is therefore very much in your own hands. This handbook provides essential information about this module including the aims and learning outcomes, the schedule of teaching and learning activities, assessment tasks, reading recommendations and, if applicable, any additional resources that you will need.   Please read it from the start of term so you are aware of key details and important dates from early on. 2 Key contacts (academic queries) The list below provides contact details of the module team. 3 Module details and learning outcomes Host faculty: Business Host school: BOS Number of credits: 0 Term(s) of delivery: Terms 1 & 2 Site(s) of delivery: Greenwich Maritime (Online on Moodle) Aims: 1.   Develop students’ awareness of their skills, knowledge and personal qualities in preparation for seeking appropriate graduate employment. 2.   Prepare students for their responsibilities and rights within the workplace. 3.   Increase students’ employability by developing interpersonal and communication skills. 4.   Enhance skills for  life-long learning and commitment in continuing professional development. Learning Outcomes: 1.   Develop knowledge and understanding of employability and career management in the context of lifelong learning and continuing personal and professional development. 2.   Create a unique, value-added personal brand statement and market this to potential employers in the graduate marketplace. 3.   Critically reflect upon personal strengths and weaknesses and workplace contributions to the expectations of potential employers. 4.   Learn appropriate approaches to CV formulation, application letters, selection tests and selection interviews. 5.  Apply recruitment and selection processes most used by employers, relative to current and future conditions in the labour market, industry sectors and overall economy. 6.   Research and report trends in graduate employment and selected industries. Glossary: •       A Learning Outcome is a subject-specific statement that defines the learning to be achieved through completing this module. 4. Employability The  concept  of employability  has  been  embedded  into  the  curriculum  design  of  this Module. By completing your study, you should expect to gain the following skills which will enhance your employability when presenting to your prospective employers. a. Cognitive Skills Exposure to a wider set of problems with greater emphasis on assessing risk and drawing conclusions. Practice in drawing conclusions, justifying judgements, attention to detail and reflection on skills gained. b. Generic Competencies Through group work, students will be able to set goals including influencing, planning, questioning, listening, persuading, interpersonal sensitivity. It also includes the opportunity to reflect on how the task was managed and how the group worked together. Written element emphasizes clear formatting, spelling and grammar within a clear, well- reasoned narrative. c. Technical Ability Introduce and apply the advanced technical skills (MS Project Software) in project planning with reflection on the value of these skills for the appropriate subject/discipline. d. Organizational Awareness Understanding  organizational  goals  and  structures  with  awareness  of  issues  around management and leadership in project-related context. e. Practical and Professional Elements Demonstrate  increased  professionalism  and  encourage  effective  applications  for  project- related placement and internship opportunities. You can find out more about the Greenwich Employability Passport at:Greenwich Employability Passport for students Information about the Career Centre is available at:Employability and Careers | University of Greenwich 5. Schedule of teaching and learning activities Welcome lecture (mode: online via Microsoft Teams) Date: 27 September 2024 Online Lesson topics Online Moodle activities 1 Moodle, Rubrics and Turnitin Quest 7 quiz questions 2 Essay and Report Quest 2 quiz questions 3 Harvard Referencing and Avoiding Plagiarism 4 quiz questions 4 Library, Critical Reading and Academic Writing 1 quiz question 5 Motivation and Time Management 7 quiz questions 6 Business English and How to Market Yourself 7 quiz questions 7 Work Experience and Teamwork 3 quiz questions 8 Presentation Skills 10 quiz questions 9 Personal Branding 13 quiz questions 10 Mock Job Application (MJA) Quest: you can consult the Employability & Careers Service (ECS) should you need assistance with MJA task. 0 quiz question and MJA task following optional visit to ECS In addition to the teaching and learning activities within the module, additional study support can be seen at:Academic Skills

$25.00 View

[SOLVED] Process Model Individual Assignment

Process Model Individual Assignment You work for Henry Evers Manufacturing Company. The company is a manufacturer of home furnishings. You conduct a Questionnaire to understand the process behind the company’s Order Fulfilment process and you get the following narrative: “As soon as the customer places an Order, it is received by the Sales department and a Sales Order is created. The Sales Order is sent to the Finance Department to check if the customer has any outstanding balance for more than 60 days. The AR Clerk at the Finance Department checks and sends the results back to the Sales Department. If there is an outstanding balance for more than 60 days, the Sales Department puts the Order on hold and notifies the customer. Otherwise, the Order Entry Clerk creates an Order Confirmation and sends it to the customer. Simultaneously a Picking List is generated and sent to the Order Fulfilment Department who picks up the next set of process steps. The Order Fulfilment Department receives the Picking List and determines which Warehouse is closest to the Customer location. The Picking List is sent to that Warehouse location. There the items from the Picking List are picked. An Invoice is generated and printed. The items are packed along with the printed Invoice. It is checked if the customer wants the item shipped or wants to personally pick the order up. If it needs shipped, a shipping label is printed, stuck to the packed items and shipped to the customer. If it is to be picked up, the package is held, and the customer is notified that the item is read for pickup” Instructions for submission: 1. Create a swimlane to map the above process in Microsoft Visio. 2. Take a screen print of the Swimlane (not the whole Visio screen) and upload the image for the assignment. (Note: Do not submit the Visio file)

$25.00 View

[SOLVED] ECON 2331 Economic and Business Statistics 2 Assignment 4

ECON 2331: Economic and Business Statistics 2 Assignment 4 (105 marks; 5%) To receive full marks, you need to show all your work. 1.   A multiple regression analysis between yearly income (Y in $1,000s), college grade point average (X1), age of the individuals (X2), and the gender of the individual (X3; zero representing female and one representing male) was performed on a sample of ten students, and the following results were obtained: (19 marks total) Coefficients Standard Error p-value 110.02301.6512X 3-4.48111.4400Regression360.59Residual (Error)23.91187.5095011.00286.0094511.25384.0094011.75483.0093011.75584.5093512.00684.0093513.00782.0093213.25880.0093814.50978.5092515.001079.0090016.501177.0087517.001277.5087017.50

$25.00 View

[SOLVED] COMP6452 Software Architecture for Blockchain Applications Lab 1/Project 1 2025 Term 2

Lab 1/Project 1 - Introduction to Smart Contract Development COMP6452 Software Architecture for Blockchain Applications 2025 Term 2 1    Learning Outcomes In this lab, which also leads to Project 1, you will learn how to write a smart contract using Solidity and deploy it on the Ethereum testnet blockchain. After completing the lab/project, you will be able to: •  develop a simple smart contract using Solidity •  test your smart contract manually and automatically by issuing transactions and running unit tests •  create and fund your account on the Ethereum testnet •  deploy your contract to the Ethereum testnet This lab provides step-by-step instructions to develop, test, and deploy your first smart contract. Then as Project 1, which  is graded, you will extend that smart contract to fix several defects and add additional functionality. 2    Introduction Smart contracts are user-defined code deployed on and executed by nodes in a blockchain.  In addition to executing instructions, smart contracts can hold, manage, and transfer digitalised assets. For example, a smart contract could be seen as a bunch of if/then conditions that are an algorithmic implementation of a financial service such as trading, lending, and insurance. Smart contracts are deployed to a blockchain as transaction data.   Execution of a smart contract function is triggered using a transaction issued by a user  (or a system acting on behalf of a user) or another smart contract, which was in turn triggered by a user-issued transaction.   A smart contract does not auto-execute and must be triggered using a user-issued transaction. Inputs to a smart contract function are provided through a transaction and the current state of the blockchain.  Due to blockchains’ immutability, transparency, consistency, and integrity properties, smart contract code is immutable and deterministic  making  its execution trustworthy.   While  “code  is  law”  [1]  is  synonymous  with  smart contracts, smart contracts are neither smart nor legally binding per the contract law. However, they can be used to execute parts of a legal contract. While Bitcoin [2] supports an elementary form of smart contracts, it was Ethereum  [3] that demon- strated the true power of smart contracts by developing a Turing complete language and a run-time environment to code and execute smart contracts.  Smart contracts in Ethereum are deployed and exe- cuted as bytecode, i.e., binary code results from compiling code written in a high-level language.  Bytecode runs on each blockchain node’s Ethereum Virtual Machine (EVM) [4].  This is analogous to Java bytecode executing on Java Virtual Machine (JVM). Solidity  [5] is the most popular smart contract language for Ethereum.   Contracts  in Solidity are like classes in object-oriented languages, and contracts deployed onto the blockchain are like objects. A Solidity smart contract contains persistent data in state variables, and functions that can access and modify these state variables. A deployed contract resides at a specific address on the Ethereum blockchain. Solidity is a high-level, object-oriented language that is syntactically similar to JavaScript. It is statically typed and supports inheritance, libraries, and user-defined types.  As Solidity code is ultimately compiled into Ethereum bytecode, other blockchain platforms that support the EVM, such as Hyperledger Besu, can also execute it. Fig. 1 shows the typical development cycle of a smart contract.   Like any program, it starts with requirement analysis and modelling. State diagrams, Unified Modelling Language (UML), and Business Process Model and Notation (BPMN) are typically used to model smart contracts.  The smart contract code is then developed using a suitable tool ranging from Notepad to sophisticated IDEs. Various libraries and Software Development Kits (SDKs) may be used to minimise errors and enhance productivity. De- pending on the smart contract language, code may also need to be compiled, e.g., Solidity.  Smart contract code and results must be bug-free because they are immutable and transparent. Figure 1: Smart contract development cycle. Because transactions trigger smart contract functions, we need to pay fees to deploy and execute smart contracts on a public blockchain.  In Ethereum, this fee is referred to as gas.  More formally,  gas is a unit of account within the EVM used in calculating a transaction’s fee, which is the amount of Ether (ETH) a transaction’s sender must pay to the miner/validator who includes the transaction in the blockchain.  The amount of gas needs to execute a smart contract depends on several factors such as the computational complexity of the code, the volume of data in memory and storage, and bandwidth requirements.  There is also a cost to deploy a smart contract depending on the length of the bytecode. Therefore, it is essential to extensively test and optimise a smart contract to keep the cost low.  The extent that one can test (e.g., unit testing), debug, and optimise the code depends on the smart contract language and tool availability. While Ethereum has a rich set of tools, in this lab, we will explore only a tiny subset of them. Most public blockchains also host a test/development network, referred to as the  testnet,  that  is identical in functionality to the production network.   Further,  they  usually  provide  fast transaction finality and do not charge real transaction fees.  It is highly recommended to test a smart contract on a testnet.  Testnet can also be used to estimate transaction fees you may need to pay in the production network. Once you are confident that the code is ready to go to the production/public blockchain network, the next step is to deploy the code using a transaction.  Once the code is successfully deployed, you will get an address (aka identifier or handler) for future interactions with the smart contract.  Finally, you can interact with the smart contract by issuing transactions with the smart contract address as the recipient (i.e., to address).  The smart contract will remain active until it is disabled, or it reaches a terminating state.  Due to the immutability of blockchains, smart contract code will remain in the blockchain even though it is deactivated and cannot be executed. This lab has two parts. In part one (Section 3 to 8), you will develop, test, and deploy a given smart contract to the Ethereum Sepolia testnet by following step-by-step instructions. Part two (Section 9) is Project 1 where you will update the smart contract and unit tests to fix some of its functional weaknesses, and then deploy it onto the testnet. You are not expected to complete this handout during tutorial/lab time. Instead, you will need additional time alone to complete the lab and Project 1.  Tutors will provide online and offline support. 3    Developing a Smart Contract In this lab, we will write a smart contract and deploy it to the public Ethereum Sepolia testnet.  The motivation of our Decentralised Application (DApp) is to solve a million-Dollar question:  Where  to have lunch? The basic requirements for our DApp to determine the lunch venue are as follows: 1.  The contract deployer SHOULD be able to nominate a list of restaurants r to vote for. 2.  The contract deployer SHOULD be able to create a list of voters/friends  v  who  can vote for r restaurants. 3.  A voter MUST be able to cast a vote only once. 4.  The contract MUST stop accepting votes when the quorum is met (e.g., number   of   votes > |v|/2) and declare the winning restaurant as the lunch venue. The following code shows a smart contract written in Solidity to decide the lunch venue based on votes.  Line 1 is a machine-readable license statement that indicates that the source code is unlicensed. Lines starting with //, ///, and /** are comments. 1 /// SPDX-License-Identifier: UNLICENSED 2 3 pragma solidity ^0.8.0; 4 5 /// @title Contract to agree on the lunch venue 6 /// @author Dilum Bandara, CSIRO’s Data61 7 8 contract LunchVenue{ 9 10 struct Friend { 11 string name; 12 bool voted; //Vote state 13 } 14 15 struct Vote { 16 address voterAddress; 17 uint restaurant; 18 } 19 20 mapping (uint => string) public restaurants; //List of restaurants (restaurant no, name) 21 mapping(address => Friend) public friends; //List of friends (address, Friend) 22 uint public numRestaurants = 0; 23 uint public numFriends = 0; 24 uint public numVotes = 0; 25 address public manager; //Contract manager 26 string public votedRestaurant = ""; //Where to have lunch 27 28 mapping (uint => Vote) public votes; //List of votes (vote no, Vote) 29 mapping (uint => uint) private _results; //List of vote counts (restaurant no, no of votes) 30 bool public voteOpen = true; //voting is open 31 32 /** 33 * @dev Set manager when contract starts 34 */ 35 constructor () { 36 manager = msg.sender; //Set contract creator as manager 37 } 38 39 /** 40 * @notice Add a new restaurant 41 * @dev To simplify the code, duplication of restaurants isn’t checked 42 * 43 * @param name Restaurant name 44 * @return Number of restaurants added so far 45 */ 46 function addRestaurant(string memory name) public restricted returns (uint){ 47 numRestaurants++; 48 restaurants[numRestaurants] = name; 49 return numRestaurants; 50 } 51 52 /** 53 * @notice Add a new friend to voter list 54 * @dev To simplify the code duplication of friends is not checked 55 * 56 * @param friendAddress Friend’s account/address 57 * @param name Friend’s name 58 * @return Number of friends added so far 59 */ 60 function addFriend(address friendAddress, string memory name) public restricted returns (uint){ 61 Friend memory f; 62 f.name = name; 63 f.voted = false; 64 friends[friendAddress] = f; 65 numFriends++; 66 return numFriends; 67 } 68 69 /** 70 * @notice Vote for a restaurant 71 * @dev To simplify the code duplicate votes by a friend is not checked 72 * 73 * @param restaurant Restaurant number being voted 74 * @return validVote Is the vote valid? A valid vote should be from a registered 75 * friend to a registered restaurant 76 */ 77 function doVote(uint restaurant) public votingOpen returns (bool validVote){ 78 validVote = false; //Is the vote valid? 79 if (bytes(friends[msg.sender].name).length != 0) { //Does friend exist? 80 if (bytes(restaurants[restaurant]).length != 0) { //Does restaurant exist? 81 validVote = true; 82 friends[msg.sender].voted = true; 83 Vote memory v; 84 v.voterAddress = msg.sender; 85 v.restaurant = restaurant; 86 numVotes++; 87 votes[numVotes] = v; 88 } 89 } 90 91 if (numVotes >= numFriends/2 + 1) { //Quorum is met 92 finalResult(); 93 } 94 return validVote; 95 } 96 97 /** 98 * @notice Determine winner restaurant 99 * @dev If top 2 restaurants have the same no of votes, result depends on vote order 100 */ 101 function finalResult() private{ 102 uint highestVotes = 0; 103 uint highestRestaurant = 0; 104 105 for (uint i = 1; i 0) { // Already start counting 108 voteCount += _results[votes[i].restaurant]; 109 } 110 _results[votes[i].restaurant] = voteCount; 111 112 if (voteCount > highestVotes){ // New winner 113 highestVotes = voteCount; 114 highestRestaurant = votes[i].restaurant; 115 } 116 } 117 votedRestaurant = restaurants[highestRestaurant]; //Chosen restaurant 118 voteOpen = false; //Voting is now closed 119 } 120 121 /** 122 * @notice Only the manager can do 123 */ 124 modifier restricted() { 125 require (msg.sender == manager, "Can only be executed by the manager"); 126 _; 127 } 128 129 /** 130 * @notice Only when voting is still open 131 */ 132 modifier votingOpen() { 133 require(voteOpen == true, "Can vote only while voting is open."); 134 _; 135 } 136 } Line 3 tells that the code is written for Solidity and should not be used with a compiler earlier than version 0.8.0.  The ∧ symbol says that the code is not designed to work on future compiler versions, e.g., 0.9.0.   It should work on any version labelled as 0.8 .xx.   This ensures that the contract is not compilable with a new (breaking) compiler version, where it may behave differently.  These constraints are indicated using the pragma keyword, an instruction for the compiler.  As Solidity is a rapidly evolving language and smart contracts are immutable, it is desirable even to specify a specific version such that all contract participants clearly understand the smart contract’s behaviour.  You can further limit the compiler version using greater and less than signs, e.g., pragma  solidity  >=0 .8 .2   symbol where it says LUNCHVENUE  AT  0X . . . Those buttons can be used to generate transactions to invoke respective functions.  For example, by clicking on the manager button, we can see that manager’s address is set to the address of the account we used to deploy the smart contract.   The address selected in the  ACCOUNT drop-down  (scroll up to see the drop-down list) is the one we used to deploy the contract.  When we click the button, Remix issues a transaction to invoke the getter function that returns the manager’s address.  The respective transaction will appear on the bottom of the screen.  Getter functions are read-only (when the compiler generates them, they are marked as view only functions), so they are executed only on the node where the transaction is submitted. A read-only transaction does not consume gas as it is not executed across the blockchain network. Similarly, check the numFriends, numVotes, and voteOpen variables by clicking on the respective buttons. Step 10.   To add yourself as a voter/friend, click on the ∨ icon next to the addFriend button, which should show two textboxes to enter input parameters.  As the address selected in the ACCOUNT drop-down list was used to deploy the contract, let us consider that to be your address.  Copy this address by clicking on the icon with two documents. Then paste it onto the friendAddress: textbox. Enter your name in the name:  textbox. Then click the transact button. This generates a new transaction, and you can check the transaction result in the Remix Console area. Note that decoded  output attribute in Remix Console indicates the function returned the number of friends in the contract as one.  Alternatively, the getter function provided by the numFriends button can be used to verify that a friend is added to the contract.  We can also recall details of a friend by providing his/her address to the friends getter function. Step  11.    Go  to the ACCOUNT drop-down list and select any address other than the one you used to deploy the contract.  Copy that address.  Return to the addFriend function and fill up the two textboxes with the copied address and a dummy friend name. Then click the transact button. This transaction should fail.  Check Remix Console area for details.  While you cannot find the reason for failure (more on this later), you will see that the transaction still got mined and gas was consumed. The transaction failed due to the access control violation where the transaction’s  from address  (i.e., msg.sender) did not match the manager’s address stored in the contract (see lines 123-126). Step 12.   Let us add another friend as a voter. Go to the ACCOUNT drop-down list and copy the second address.  After copying, reselect the address used to deploy the contract from the drop-down.  Return to the addFriend function and paste the address we copied to friendAddress:  textbox and enter the friend’s name. Click the transact button. This should generate a new transaction. Check the transaction details, as well as make sure that numFriends is now increased to two. Repeat this step three more times to add a total of five voters.  Each time make sure to copy a different address from the ACCOUNT drop-down list. Step  13.   Next, we add restaurants.  Expand the  addRestaurant function by clicking on the ∨ icon. Enter a restaurant name and then click the transact button.   Check the transaction details on the Remix Console.  Use numRestaurants and restaurants getter functions to make sure the restaurant is successfully added.   Also,  note  the  difference  in gas consumed by  addRestaurant  and  addFriend functions. Repeat this step once or twice to add total of two to three restaurants. Step  14.    It  is time to vote.   Let  us first vote  as a friend.   Go  to the  ACCOUNT drop-down list and select the second address.  Expand the doVote function.  Enter one of the restaurant numbers into the restaurant: textbox. If you do not remember a restaurant’s number, use restaurants getter function to find it. Then click the transact button. You can check the function’s output under decoded  output in Remix Console.   A successful vote should be indicated by true. Step 15.   This time try to vote for a restaurant that does not exist, e.g., if you added three restaurants try voting for restaurant number four. While the transaction will be successful you will see that decoded output is set to false indicating that vote is invalid. Step 16.   Next, try to vote from an address that is not in the friend list.  Go to the ACCOUNT drop-down list and select an address that you did not register as a voter. Return to doVote function and then vote for a valid restaurant number. While the transaction will be successful you will see that decoded  output is again set to false indicating that vote is invalid. Step  17.    Go  to  the  ACCOUNT  drop-down list and select an address that you registered as a friend. Return to doVote function and then vote for a valid restaurant number.  Keep voting from different valid addresses to valid restaurants. Once the quorum is reached, the contract will select the more voted restaurant as the lunch venue. The selected venue can be found by calling the votedRestaurant getter function. Try to issue another vote and see what happens to the transaction.

$25.00 View

[SOLVED] PHYC10003 PHYSICS 1 Exam 2018

PHYC10003 PHYSICS 1 SESSION 2 TUESDAY 12 JUNE 2018 Question 1 [3 + 5 + 4 + 2 = 14 marks] The starship Enterprise has a mass of 3.0×106 kg. It captures an abandoned vessel belonging to the Romulan Star Empire that has a mass of 1.0×104  kg. The Enterprise uses a “tractor beam” that applies a constant attractive force of 2.0×104 N to the alien vessel to bring it inside its cargo bay.  Both the Enterprise and the alien vessel are initially at rest in deep space and separated by 10 km. a) What are the accelerations ofthe Enterprise and the alien vessel? b) How far has the Enterprise moved relative to its initial position when the alien vessel has been brought into the cargo bay? c) How fast is the alien vessel moving relative to the Enterprise when it enters the cargo bay? d) Does the alien vessel safely enter the cargo bay of the Enterprise? Explain why, using at least one physics concept. Question 2                [6 + 3 + 3 + 2 = 13 marks] The planet Tralfamadore is populated by autonomous machines that enjoy playing ball games. One of these machines throws a ball that follows a parabolic trajectory. At time t = 0 s, the vertical position of the ball is given by y = 0 and the horizontal position by x = 0. At time t = 1 s, the ball reaches a height of y = 4 m and the ball’s velocity, v, is given by v = (2.0 i + 2.0j) ms-1 where i andj are unit vectors in the x- and y-direction, respectively. a)   What is the value of the gravitational constant, g, near the surface ofTralfamadore? b)   What was the magnitude of the initial velocity of the ball? c)   At what angle, θ, to the horizontal was the ball launched? d)   What is the mass ofTralfamadore ifits equatorial radius is 5234 km? Question 3          [(2 + 2 + 3 + 5) + (3 + 2) = 17 marks] a)  Suppose that the co-efficient of kinetic friction of the hard rubber of an automobile tyre sliding on the road surface is 0.80 and that the co-efficient of static friction is 0.90. (i)  What is the deceleration of the automobile on a flat surface if the driver brakes suddenly locking the wheels? (ii) What is the maximum deceleration possible if the driver avoids locking the wheels? (iii) The driver now wishes to park the car on a street with a steep slope. What is the steepest slope of the street on which the car can be parked (with wheels locked) without slipping? Give your  answer in degrees with zero degrees being a flat surface. (iv) Many cars are now fitted with antilock braking systems. Describe, in no more than 200 words (approx. 1 page), how these systems work. Why do they make driving safer? b) In February 1955, a paratrooper fell 370 m from an airplane without being able to open his parachute, but happened to land in snow, suffering only minor injuries. Assume that his speed upon impact was 56 m/s, that his mass including gear was 85 kg, and that the magnitude of the force on him from the snow was at the survivable 1.2 ×  105 N. (i)  What is the minimum depth of snow that would have stopped him safely? (ii) Calculate the magnitude of the impulse from the snow. Flywheels are large wheels, usually very heavy, that are used to store energy. They can be brought to   their maximum rotational speed quite slowly, but the energy that is stored in them can be accessed and used very quickly in applications that require high power delivered over a short time. A particular industrial flywheel has a diameter of 1.5 m and a mass of 250 kg. Assume that all of the mass is located near the outside circumference of the wheel. Its maximum angular velocity is 1200 rpm (revolutions per minute). a)   A small motor spins the flywheel by exerting a constant torque of 50 Nm. How long does it take to reach its maximum angular velocity? b)   How much energy is stored in the flywheel? c)   The motor is disconnected and the spinning flywheel is connected to a machine that will utilise the energy stored in the flywheel. Half of the energy is delivered in 2.0 s. What is the average power delivered by the flywheel to the machine? d)   What is the torque exerted by the flywheel on the machine? Question 5              [5 + (4 + 2) = 11 marks] a) The ballistic pendulum was used to measure the speeds of bullets before electronic timing devices were developed. In one version, a large block of wood of mass M = 0.54 kg was suspended from two long cords. A bullet of mass m = 9.5 g is fired into the block coming quickly to rest. The block of wood (with the embedded bullet) swings upward to a height of h = 6.3 cm. Calculate the initial speed of the bullet just before it hits the block. b) The figure below shows the potential energy of a diatomic molecule (a two-atom system like H2 or O2), which is given by the equation; where r is the separation of the two atoms of the molecule and A and B are positive constants. This potential energy is associated with the force that binds the two atoms together. (i)  Find the equilibrium separation—that is, the distance between the atoms at which the force on each atom is zero. (ii)  Is the force repulsive (the atoms are pushed apart) or attractive (they are pulled together) if their separation is (1) smaller and (2) larger than the equilibrium separation? Question 6            [4 + 3 + 1 + 1 = 9 marks] Discuss, in about one page, the process of precession. Your answer should include: (i) The conditions under which precession occurs, (ii) The physical factors that determine the rate of precession of a body, (iii) An example in which the phenomenon of precession is observed and (iv) A practical application of precession. Question 7                     [ 3 + 2 + 2 + 2 + 2 + 2 + 4 = 17 marks] (a)     Briefly explain the term “relativity of simultaneity” . (b)     State Einstein’s Principle of Special Relativity. (c)     Define proper time. (d)     On a plot of linear momentum, p, versus speed, u, compare the relationship between p and u in a classical Newtonian viewpoint to that in Special Relativity. The following figure shows a moon/planet system. In the reference frame of the moon/planet system the moon and planet are 4.00×108  m apart. At time tp   = 0 s a microwave pulse is emitted from the surface of the moon just as a starship travelling from left to right at a speed of 0.6c passes the moon. At time te   =  1.5 s in the moon/planet reference frame an explosion occurs on the planet. The moon is at the origin of the moon/planet reference frame and the starship is at the origin of its reference frame. In the starship’s reference frame t/  = 0 s as the moon passes the starship. In moon/planet reference frame. (i)  At time tp = 0 s microwave pulseemitted from moon (e)     Is it possible that the arrival of the microwave pulse at the planet triggered the explosion? Explain briefly. (f)      In the moon/planet reference frame. what are the space-time coordinates of the explosion? (Assume that the y and Z coordinates of the explosion are 0.) (g)     In the reference frame of the starship what are the space-time coordinates of the explosion? (Assume that the y /  and Z /  coordinates of the explosion are 0.) Question 8               [ 5 + 3 + 3 = 11 marks] Astronomical Data: (a)  A particular insect called the Spittle Bug is reported to be able to jump to a height of 60 cm. If   the Spittle Bug can do this on Earth find a value for how high the Spittle Bug could jump on the Moon? (b) The Sun rotates on its axis approximately every 26 days. Calculate the radius ofa “heliosynchronous” orbit; that is, an orbit that stays over the same spot on the Sun’s surface. (c)  Find a value for the radial distance from the centre of the Earth where the magnitude of the gravitational potential is 1/8 th of its value at the surface? Question 9              [ 3 + (6 + 2) = 11 marks] (a)     A sand pendulum consists ofa funnel shaped object filled with sand and  suspended from a long string (not shown) as depicted in the diagram. As the pendulum swings back and forth in simple harmonic motion the sand gradually falls from the base of the funnel through a small hole in the bottom. Predict what will happen to the period of oscillation of the pendulum as mass is gradually lost. Explain briefly. You may assume that the mass of the string is negligible and ignore the effects of air resistance. (b)   A pan containing beads is mounted on a spring and oscillates vertically in simple harmonic motion as shown in the following figure. (i)      If the frequency of oscillation of the pan is 60 Hz find the amplitude of the motion at which the beads will start to lift-off the pan. Show your reasoning and working. (ii)     At what point in the motion will this occur? Explain your reasons for your answer. Question 10             [ (1 + 2 + 2 + 2 + 3) + (1 + 4 + 2) = 17 marks] (a)     A transverse wave on a string, of mass per unit length 11 g m-1, has a displacement given by: Find values for the following: (i)      the wave amplitude, (ii)     the wavelength, (iii)    the period, (iv)    the wavespeed, (v)     the string tension. (b)     Polly the parrot is being held captive in a cage with a door made of crystal. By tapping on the crystal door with her beak Polly has been able to determine that the natural resonant frequency of the crystal is 800 Hz. The highest frequency squawk Polly can achieve is 793 Hz but at one time   she belonged to a Physics professor so Polly knows about the Doppler effect. (i)      Will Polly have to fly toward or away from the cage door to Doppler shift her squawk to match the resonant frequency of the crystal? (ii)    Find a value for how fast Polly will have to fly so that her Doppler-shifted squawk matches the resonant frequency of the crystal. Assume that the speed of sound is 343 ms-1. (iii)   If the sound intensity level needed to break the crystal door is 110 dB and Polly wants to be able to break the door from a distance of 1.2 m, find a value for the power in Watts of her squawk that will be required to achieve this. You may assume that Polly is a point source of sound. Question 11 [ 2 + (3 + 3) + (3 + 3 + 3 + 2) =19 marks] (a)      In the centre of the shadow of a disk or sphere there is a small bright spot, called the Arago or Poisson spot, as shown in the figure below. Briefly explain how this spot arises. (b) (i)      Describe with reference to Huygens’ principle why light incident on a single slit will show a diffraction pattern. (ii)     A laser of wavelength 600 nm is incident on a circular aperture of radius 100 micrometres and is then projected onto a screen a distance of 1 metre away. What is the width of the central brightness maximum? (c)        A converging lens has a focal length of 10 cm. An object is placed at a distance of 3 cm from the lens (i)      Define the distinction between a real and a virtual image (ii)     Use ray tracing to find the location of the image. (iii)    Calculate the distance to the image. Is it real or virtual? (iv)    Calculate the transverse magnification of the image.

$25.00 View

[SOLVED] ICS3UO - Computer Science - Exam - Sem 2 - 2024-2025

ICS3UO - Computer Science - Exam Date(s): June 18, 2025-June 24th 2025 (Approximate time 1.5 hours) Overview All of your work will be done online. You must have your FileZilla / Web Browser / and Sublime Text (or similar software) available as well as an Internet connection. Follow the instructions carefully for naming the files that you will upload and list on your index page that you were using for the course. Each of the pages that you make, must be a properly formatted html page with title tags, header, body, etc. You can style. as you wish,l but more marks go to performance and functionality over style-so you don't have to spend as much time on that part. Stand-alone FileZilla and Sublime Text (zip packages-not the installers) Sublime Text FileZilla *You may use your existing code and the Internet as reference for this test. Question 1 Upload the code below to a page called: exam-q1.php-upload and test the file; you will notice there are multiple errors within the script. Go through this and fix all of the errors so that thel page displays and works properly. Basically the user inputs a number between 1 and 10 and if they guess the random number correctly, otherwise it tells them they are wrong. In a short paragraph (or jot dots) on your page, indicate where the errors were and briefly why they are errors. Upload this code with your fixes to show it works. Trouble shoot to get it to work. Question 2 Create a file called: exam-q2.php. What's the Average Temperature?: Given the base code below...you will create a for loop that will output the numbers from the array and keep track of the total sum. After the loop is done you will display the sum and then calculate the average temperature. (note: using sizeof() function to get the size of the array will be needed). Level 4: include a single input field where the user can input the string (separated by commas) and the average will be calculated. If the average temperature is below O", output "Brrr, it was cold!" and if over 30° "Whew! It was hot!" Include error checking as well. Question 3 Create a file called: test-q3.php. Cutting Paper: A very large piece of paper has a approximate thickness = 0.00009m, and is cut in half and the pieces stacked together, and then cut again, etc., what will the thickness be after x number of cuts? Show the thickness after each cut. Create an application that allows the user to enter in the number of cuts, x, to be made. The cuts must range from 1 to 100 maximum. Error checking must be included and the output should display each iteration of the loop. The equation is: (2")*0.00009 where n is the cut number. Use the PHP function pow(2,$n) which is equivalent to: 2". Your output should be in table form, not text like below. Error checking required. Sample output User input: 3 After cut 1 the thickness is 2*0.00009= 0.00018 m After cut 2 the thickness is 4*0.00009= 0.00036 m After cut 3 the thickness is 8*0.00009= 0.00072 m Fun Fact A user input of 22 results in a final height of about 377 m. So cutting and stacking just 22 times the paper would stack to a height almost as tall as the CN tower (550m) Question 4 Create a file called: exam-q4.php. Balanced Lever: A lever is balanced if the force x distance (or F*d) from the fulcrum is the same on both sides of the fulcrum. You will require user inputs (3 for forces and 3 for the distances) and a submit button. Given three forces and distances (using +to denote a force on the right of the fulcrum and - to denote the force on the left of the fulcrum state if it is balanced or not. Error checking- make sure no input is empty (they can be zero)

$25.00 View

[SOLVED] ENG2077 ASSESSMENT 3 Weibull Distribution

ENG2077 ASSESSMENT 3: Weibull Distribution Instructions: 1. Complete the assignment question as given below 2. Name your files using the format: "A3 0123456.ipynb" where A3 represents "assignment no. 3" and 0123456 represents the 7 numeric digits in your GUID. 3. Electronic submission Upload you files to the ENG2077 course Moodle site Wiebull Distribution The Wiebull distribution can be used in analysing failure rates, wind speed distributions, and many other engineering phenomena. It is given by the equation: where the shape factor, k>0, and the scale factor, A >0, characterise the distribution profile. An example distribution is shown in the figure at the end of this assessment description. Write a Pvthon program which calculates the Wiebull distribution (trom the formula above-le. don't use an inbuilt Wiebull library function) as it varies with either the scale or shape parameter: Le. if varving in scale, use a fixed value for the shape parameter and vice versa. Your script. should also plot the distribution as shown in the figure at the end. Your programshould: Ask for the minimum, maximum and increment values for x. Test to make sure these are within the correct limits, i.e. that: Ask the user which option they would like: a fixed value of k with an array of o values, or a fixed value of with an array of k values. Ask for the minimum, maximum and increment of k (or 6 Depending on the option selected. Test to make sure these are within limits (i.e. min z 0, max > min, and that inc < max min). The figure should be given appropriate axes, title and annotations as required. A sample input: A sample figure screen:

$25.00 View

[SOLVED] COMP6452 /

Lab 1/Project 1 – Introduction to Smart Contract Development COMP6452 Software Architecture for Blockchain Applications 2025 Term 2 1 Learning Outcomes In this lab, which also leads to Project 1, you will learn how to write a smart contract using Solidity and deploy it on the Ethereum testnet blockchain. After completing the lab/project, you will be able to: ? develop a simple smart contract using Solidity ? test your smart contract manually and automatically by issuing transactions and running unit tests ? create and fund your account on the Ethereum testnet ? deploy your contract to the Ethereum testnet This lab provides step-by-step instructions to develop, test, and deploy your first smart contract. Then as Project 1, which is graded, you will extend that smart contract to fix several defects and add additional functionality. 2 Introduction Smart contracts are user-defined code deployed on and executed by nodes in a blockchain. In addition to executing instructions, smart contracts can hold, manage, and transfer digitalised assets. For example, a smart contract could be seen as a bunch of if/then conditions that are an algorithmic implementation of a financial service such as trading, lending, and insurance. Smart contracts are deployed to a blockchain as transaction data. Execution of a smart contract function is triggered using a transaction issued by a user (or a system acting on behalf of a user) or another smart contract, which was in turn triggered by a user-issued transaction. A smart contract does not auto-execute and must be triggered using a user-issued transaction. Inputs to a smart contract function are provided through a transaction and the current state of the blockchain. Due to blockchains’ immutability, transparency, consistency, and integrity properties, smart contract code is immutable and deterministic making its execution trustworthy. While “code is law” [1] is synonymous with smart contracts, smart contracts are neither smart nor legally binding per the contract law. However, they can be used to execute parts of a legal contract. While Bitcoin [2] supports an elementary form of smart contracts, it was Ethereum [3] that demon- strated the true power of smart contracts by developing a Turing complete language and a run-time environment to code and execute smart contracts. Smart contracts in Ethereum are deployed and exe- cuted as bytecode, i.e., binary code results from compiling code written in a high-level language. Bytecode runs on each blockchain node’s Ethereum Virtual Machine (EVM) [4]. This is analogous to Java bytecode executing on Java Virtual Machine (JVM). Solidity [5] is the most popular smart contract language for Ethereum. Contracts in Solidity are like classes in object-oriented languages, and contracts deployed onto the blockchain are like objects. A Solidity smart contract contains persistent data in state variables, and functions that can access and modify these state variables. A deployed contract resides at a specific address on the Ethereum blockchain. Solidity is a high-level, object-oriented language that is syntactically similar to JavaScript. It is statically typed and supports inheritance, libraries, and user-defined types. As Solidity code is ultimately compiled into Ethereum bytecode, other blockchain platforms that support the EVM, such as Hyperledger Besu, can also execute it. 1 Fig. 1 shows the typical development cycle of a smart contract. Like any program, it starts with requirement analysis and modelling. State diagrams, Unified Modelling Language (UML), and Business Process Model and Notation (BPMN) are typically used to model smart contracts. The smart contract code is then developed using a suitable tool ranging from Notepad to sophisticated IDEs. Various libraries and Software Development Kits (SDKs) may be used to minimise errors and enhance productivity. De- pending on the smart contract language, code may also need to be compiled, e.g., Solidity. Smart contract code and results must be bug-free because they are immutable and transparent. RequirementAnalysis &Modeling State Action DevelopmentTesting (Local& Testnet) Deployment Execution Figure 1: Smart contract development cycle. Because transactions trigger smart contract functions, we need to pay fees to deploy and execute smart contracts on a public blockchain. In Ethereum, this fee is referred to as gas. More formally, gas is a unit of account within the EVM used in calculating a transaction’s fee, which is the amount of Ether (ETH) a transaction’s sender must pay to the miner/validator who includes the transaction in the blockchain. The amount of gas needs to execute a smart contract depends on several factors such as the computational complexity of the code, the volume of data in memory and storage, and bandwidth requirements. There is also a cost to deploy a smart contract depending on the length of the bytecode. Therefore, it is essential to extensively test and optimise a smart contract to keep the cost low. The extent that one can test (e.g., unit testing), debug, and optimise the code depends on the smart contract language and tool availability. While Ethereum has a rich set of tools, in this lab, we will explore only a tiny subset of them. Most public blockchains also host a test/development network, referred to as the testnet, that is identical in functionality to the production network. Further, they usually provide fast transaction finality and do not charge real transaction fees. It is highly recommended to test a smart contract on a testnet. Testnet can also be used to estimate transaction fees you may need to pay in the production network. Once you are confident that the code is ready to go to the production/public blockchain network, the next step is to deploy the code using a transaction. Once the code is successfully deployed, you will get an address (aka identifier or handler) for future interactions with the smart contract. Finally, you can interact with the smart contract by issuing transactions with the smart contract address as the recipient (i.e., to address). The smart contract will remain active until it is disabled, or it reaches a terminating state. Due to the immutability of blockchains, smart contract code will remain in the blockchain even though it is deactivated and cannot be executed. This lab has two parts. In part one (Section 3 to 8), you will develop, test, and deploy a given smart contract to the Ethereum Sepolia testnet by following step-by-step instructions. Part two (Section 9) is Project 1 where you will update the smart contract and unit tests to fix some of its functional weaknesses, and then deploy it onto the testnet. You are not expected to complete this handout during tutorial/lab time. Instead, you will need additional time alone to complete the lab and Project 1. Tutors will provide online and offline support. 3 Developing a Smart Contract In this lab, we will write a smart contract and deploy it to the public Ethereum Sepolia testnet. The motivation of our Decentralised Application (DApp) is to solve a million-Dollar question: Where to have lunch? The basic requirements for our DApp to determine the lunch venue are as follows: 1. The contract deployer SHOULD be able to nominate a list of restaurants r to vote for. 2 2. The contract deployer SHOULD be able to create a list of voters/friends v who can vote for r restaurants. 3. A voter MUST be able to cast a vote only once. 4. The contract MUST stop accepting votes when the quorum is met (e.g., number of votes > |v|/2) and declare the winning restaurant as the lunch venue. The following code shows a smart contract written in Solidity to decide the lunch venue based on votes. Line 1 is a machine-readable license statement that indicates that the source code is unlicensed. Lines starting with //, ///, and /** are comments. 1 /// SPDX-License-Identifier: UNLICENSED 2 3 pragma solidity ^0.8.0; 4 5 /// @title Contract to agree on the lunch venue 6 /// @author Dilum Bandara, CSIRO’s Data61 7 8 contract LunchVenue{ 9 10 struct Friend { 11 string name; 12 bool voted; //Vote state 13 } 14 15 struct Vote { 16 address voterAddress; 17 uint restaurant; 18 } 19 20 mapping (uint => string) public restaurants; //List of restaurants (restaurant no, name) 21 mapping(address => Friend) public friends; //List of friends (address, Friend) 22 uint public numRestaurants = 0; 23 uint public numFriends = 0; 24 uint public numVotes = 0; 25 address public manager; //Contract manager 26 string public votedRestaurant = ""; //Where to have lunch 27 28 mapping (uint => Vote) public votes; //List of votes (vote no, Vote) 29 mapping (uint => uint) private _results; //List of vote counts (restaurant no, no of votes) 30 bool public voteOpen = true; //voting is open 31 32 /** 33 * @dev Set manager when contract starts 34 */ 35 constructor () { 36 manager = msg.sender; //Set contract creator as manager 37 } 38 39 /** 40 * @notice Add a new restaurant 41 * @dev To simplify the code, duplication of restaurants isn’t checked 42 * 43 * @param name Restaurant name 44 * @return Number of restaurants added so far 45 */ 46 function addRestaurant(string memory name) public restricted returns (uint){ 47 numRestaurants++; 48 restaurants[numRestaurants] = name; 49 return numRestaurants; 50 } 51 52 /** 53 * @notice Add a new friend to voter list 54 * @dev To simplify the code duplication of friends is not checked 55 * 56 * @param friendAddress Friend’s account/address 57 * @param name Friend’s name 58 * @return Number of friends added so far 59 */ 60 function addFriend(address friendAddress, string memory name) public restricted returns (uint){ 61 Friend memory f; 3 62 f.name = name; 63 f.voted = false; 64 friends[friendAddress] = f; 65 numFriends++; 66 return numFriends; 67 } 68 69 /** 70 * @notice Vote for a restaurant 71 * @dev To simplify the code duplicate votes by a friend is not checked 72 * 73 * @param restaurant Restaurant number being voted 74 * @return validVote Is the vote valid? A valid vote should be from a registered 75 * friend to a registered restaurant 76 */ 77 function doVote(uint restaurant) public votingOpen returns (bool validVote){ 78 validVote = false; //Is the vote valid? 79 if (bytes(friends[msg.sender].name).length != 0) { //Does friend exist? 80 if (bytes(restaurants[restaurant]).length != 0) { //Does restaurant exist? 81 validVote = true; 82 friends[msg.sender].voted = true; 83 Vote memory v; 84 v.voterAddress = msg.sender; 85 v.restaurant = restaurant; 86 numVotes++; 87 votes[numVotes] = v; 88 } 89 } 90 91 if (numVotes >= numFriends/2 + 1) { //Quorum is met 92 finalResult(); 93 } 94 return validVote; 95 } 96 97 /** 98 * @notice Determine winner restaurant 99 * @dev If top 2 restaurants have the same no of votes, result depends on vote order 100 */ 101 function finalResult() private{ 102 uint highestVotes = 0; 103 uint highestRestaurant = 0; 104 105 for (uint i = 1; i 0) { // Already start counting 108 voteCount += _results[votes[i].restaurant]; 109 } 110 _results[votes[i].restaurant] = voteCount; 111 112 if (voteCount > highestVotes){ // New winner 113 highestVotes = voteCount; 114 highestRestaurant = votes[i].restaurant; 115 } 116 } 117 votedRestaurant = restaurants[highestRestaurant]; //Chosen restaurant 118 voteOpen = false; //Voting is now closed 119 } 120 121 /** 122 * @notice Only the manager can do 123 */ 124 modifier restricted() { 125 require (msg.sender == manager, "Can only be executed by the manager"); 126 _; 127 } 128 129 /** 130 * @notice Only when voting is still open 131 */ 132 modifier votingOpen() { 133 require(voteOpen == true, "Can vote only while voting is open."); 134 _; 4 135 } 136 } Line 3 tells that the code is written for Solidity and should not be used with a compiler earlier than version 0.8.0. The ∧ symbol says that the code is not designed to work on future compiler versions, e.g., 0.9.0. It should work on any version labelled as 0.8.xx. This ensures that the contract is not compilable with a new (breaking) compiler version, where it may behave differently. These constraints are indicated using the pragma keyword, an instruction for the compiler. As Solidity is a rapidly evolving language and smart contracts are immutable, it is desirable even to specify a specific version such that all contract participants clearly understand the smart contract’s behaviour. You can further limit the compiler version using greater and less than signs, e.g., pragma solidity >=0.8.2 symbol where it says LUNCHVENUE AT 0X... Those buttons can be used to generate transactions to invoke respective functions. For example, by clicking on the manager button, we can see that manager’s address is set to the address of the account we used to deploy the smart contract. The address selected in the ACCOUNT drop-down (scroll up to see the drop-down list) is the one we used to deploy the contract. When we click the button, Remix issues a transaction to invoke the getter function that returns the manager’s address. The respective transaction will appear on the bottom of the screen. Getter functions are read-only (when the compiler generates them, they are marked as view only functions), so they are executed only on the node where the transaction is submitted. A read-only transaction does not consume gas as it is not executed across the blockchain network. Similarly, check the numFriends, numVotes, and voteOpen variables by clicking on the respective buttons. Step 10. To add yourself as a voter/friend, click on the ∨ icon next to the addFriend button, which should show two textboxes to enter input parameters. As the address selected in the ACCOUNT drop-down list was used to deploy the contract, let us consider that to be your address. Copy this address by clicking on the icon with two documents. Then paste it onto the friendAddress: textbox. Enter your name in the name: textbox. Then click the transact button. 9 This generates a new transaction, and you can check the transaction result in the Remix Console area. Note that decoded output attribute in Remix Console indicates the function returned the number of friends in the contract as one. Alternatively, the getter function provided by the numFriends button can be used to verify that a friend is added to the contract. We can also recall details of a friend by providing his/her address to the friends getter function. Step 11. Go to the ACCOUNT drop-down list and select any address other than the one you used to deploy the contract. Copy that address. Return to the addFriend function and fill up the two textboxes with the copied address and a dummy friend name. Then click the transact button. This transaction should fail. Check Remix Console area for details. While you cannot find the reason for failure (more on this later), you will see that the transaction still got mined and gas was consumed. The transaction failed due to the access control violation where the transaction’s from address (i.e., msg.sender) did not match the manager’s address stored in the contract (see lines 123-126). Step 12. Let us add another friend as a voter. Go to the ACCOUNT drop-down list and copy the second address. After copying, reselect the address used to deploy the contract from the drop-down. Return to the addFriend function and paste the address we copied to friendAddress: textbox and enter the friend’s name. Click the transact button. This should generate a new transaction. Check the transaction details, as well as make sure that numFriends is now increased to two. Repeat this step three more times to add a total of five voters. Each time make sure to copy a different address from the ACCOUNT drop-down list. Step 13. Next, we add restaurants. Expand the addRestaurant function by clicking on the ∨ icon. Enter a restaurant name and then click the transact button. Check the transaction details on the Remix Console. Use numRestaurants and restaurants getter functions to make sure the restaurant is successfully added. Also, note the difference in gas consumed by addRestaurant and addFriend functions. Repeat this step once or twice to add total of two to three restaurants. Step 14. It is time to vote. Let us first vote as a friend. Go to the ACCOUNT drop-down list and select the second address. Expand the doVote function. Enter one of the restaurant numbers into the restaurant: textbox. If you do not remember a restaurant’s number, use restaurants getter function to find it. Then click the transact button. You can check the function’s output under decoded output in Remix Console. A successful vote should be indicated by true. Step 15. This time try to vote for a restaurant that does not exist, e.g., if you added three restaurants try voting for restaurant number four. While the transaction will be successful you will see that decoded output is set to false indicating that vote is invalid. Step 16. Next, try to vote from an address that is not in the friend list. Go to the ACCOUNT drop-down list and select an address that you did not register as a voter. Return to doVote function and then vote for a valid restaurant number. While the transaction will be successful you will see that decoded output is again set to false indicating that vote is invalid. Step 17. Go to the ACCOUNT drop-down list and select an address that you registered as a friend. Return to doVote function and then vote for a valid restaurant number. Keep voting from different valid addresses to valid restaurants. Once the quorum is reached, the contract will select the more voted restaurant as the lunch venue. The selected venue can be found by calling the votedRestaurant getter function. Try to issue another vote and see what happens to the transaction. 6 Creating and Funding an Account Now that the LunchVenue contract is working as expected, let us deploy it to the Ethereum Sepolia testnet. We need a digital wallet to create and issue Ethereum transactions. Also, we need test Ether to deploy and interact with the contract. 10 In this lab, we use MetaMask, a browser-based, easier-to-use, and secure way to connect to blockchain- based applications. Once the account is created, we will fund it using an already deployed faucet smart contract on the test network. We also use Etherscan.io – a blockchain explorer or search engine for Ethereum data – to check the transaction details. Step 18. Visit https://metamask.io/ and install the browser extension (it works on Chrome, Firefox, Edge, Opera, and Brave browsers). Step 19. Once installed, click on the Get Started button. A first-time user must create a new wallet. Click on the Create a new wallet button. Read and agree to the policy, enter a new password twice, and click Create a new wallet. This will generate a 12-word or higher Secret Backup Phrase (aka mnemonic) to recover your wallet in case of an error. Save the mnemonic in a secure location. You are required to confirm the Secret Backup Phrase too. Finally, MetaMask creates a new account with associated public and private key pairs. Your 160-bit address is derived from the public key, and the private key is used to sign transactions. Your address will appear as a long hexadecimal string with the prefix 0X at the top of the MetaMask plugin. Click Copy to clipboard to copy your address and see it on any text editor (you may have to move the mouse pointer to where it says Account 1). You can also get your address as a QR code or even update your account name and export your private key using the Account details button. Notice that your current account balance is 0 ETH. Step 20. Next, let us fund our account with test Ether. For this, we use a faucet smart contract that donates Ether. Because we will use the Sepolia testnet to deploy our smart contract, from the drop-down list at the top of MetaMask, select Sepolia test network (see Fig. 6). If the Sepolia test network is not visible, click on Show/hide test networks. Then find the Show/hide test networks slider and set it to ON. Figure 6: Selecting a testnetwork. Step 21. Sepolia testnet has a couple of faucets (see https://ethereum.org/en/developers/docs/ networks/#sepolia). Read through the following options and try one of the faucets: ? Sepolia PoW Faucet at https://sepolia-faucet.pk910.de/ – Copy your MetaMask Account 1 address into the textbox that says Please enter ETH address or ESN name. Prove you are a human by completing the captcha. Next, click on the Start Mining button. Wait until you accumulate at least 0.05 ETH, which could take several minutes. Then click on the Stop mining 11 and claim reward button. Finally, click on the Claim rewards to claim your test Ether. This should create a new transaction to fund your account. Click on the transaction ID link, which will take you to https://etherscan.io. ? Chainlink Sepolia faucet at https://faucets.chain.link/sepolia – Click Connect wallet and selected MetaMask. Allow the web page to connect to your MetaMask plugin, and then select your address on MetaMask. Select 0.25 test ETH. You will need to prove your authenticity by linking your GitHub account. Therefore, select Login via GitHub and link your account. Finally, click on Send request. ? Infura Sepolia faucet at https://www.infura.io/faucet/sepolia – Copy your MetaMask Account 1 address into the textbox and click on LOGIN AND RECEIVE ETH. You will be required to create an Infura account. It is not a bad idea, because Infura is useful for blockchain developers as it provides connectivity and APIs to several public blockchains. You will get a pop up with the title TRANSACTION SENT!. Click on the VIEW ON BLOCK EXPLORER link which will take you to https://etherscan.io. ? Alchemy Sepolia faucet at https://sepoliafaucet.com/ – Sign up for an account. Select Ethereum as your preferred network and Learning as the desired task. Skip the payment setup option. Go back to the homepage. Copy your MetaMask Account 1 address into the textbox that says Enter your wallet address (0x) or .... Prove you are a human by completing the captcha. Next, click on the Send me ETH button. This should create a new transaction to fund your account. Click on the transaction ID link under Your Transactions, which will take you to https://etherscan.io. As seen in Fig. 7, on Etherscan, you can see details of the transaction such as Transaction Hash, Status, From, To, and Value. For a few tens of seconds, the transaction Status may appear as Pending. Once the transaction is included in a block, the

$25.00 View