I'm looking to get the attached project done. You will need to be proficient in Cloud Computing, AWS EC2, S3, DynamoDB and Java. I'll give you my AWS to work on. I will need daily updates on work and...

1 answer below »
I'm looking to get the attached project done. You will need to be proficient in Cloud Computing, AWS EC2, S3, DynamoDB and Java. I'll give you my AWS to work on. I will need daily updates on work and code pushed to GitHub.
Take a look and let me know if you can do it. I need to gain full marks in this project. If you are not able to complete all task please let me know in advance. Be honest with me. I need this by coming thrusday night.
I also have supporting videos to get guidance.
I'm happy to give any details needed. Thanks!


, Page 1 of 5 RMIT Classification: Trusted School of Computing Technologies COSC2626/2640 Cloud Computing Assessment 2 Assessment Type: Individual assignment; no group work. Submit online via Canvas→Assignments→Assessment 2. Marks awarded for meeting requirements as closely as possible. Clarifications/updates may be made via announcements/relevant discussion forums. Due date: 11:59pm, Friday 30/Apr/2021 Please check Canvas→Assignments→Assessment 2 for the most up to date information. As this is a major assignment in which you demonstrate your understanding, a university standard late penalty of 10% per each working day applies for up to 5 working days late, unless special consideration has been granted. Weighting: 20 marks 1. Overview This assignment consists of 2 tasks: • Task 1: Develop an EC2, S3 and DynamoDB based application based on a programming language of your choice • Task 2: Further develop your draft proposal for Assessment 3 2. Assessment Criteria This assessment will develop your ability to: • Develop cloud-based applications using AWS EC2, S3 and DynamoDB services 3. Learning Outcomes This assessment is relevant to the following Learning Outcomes: • Develop and deploy cloud applications using popular cloud platforms • Design and develop highly scalable cloud-based applications by creating and configuring virtual machines on the cloud and building private cloud. 4. Assessment details Task-1 [19 marks] Create a simple online music subscription application with a programming language of your choice, S3 and DynamoDB and host it in a free-tier EC2 instance (with Ubuntu Server 20.04/18.04 LTS AMI) using your learned knowledge in Tute 4 and Tute 5 which will have following components and functions: 1. DynamoDB: 3 marks 1.1. Create a “login” table in DynamoDB containing 10 entities with the following attributes and values. 1 mark , Page 2 of 5 RMIT Classification: Trusted email (Type: String) user_name (Type: String) password (Type: String) s3######[email protected] i.e. your RMIT student id+’[email protected]’ Firstname Lastname0 i.e. your name+’0’ 012345 s3######[email protected] i.e. your RMIT student id+’[email protected]’ Firstname Lastname1 i.e. your name+’1’ 123456 … … … s3######[email protected] i.e. your RMIT student id+’[email protected]’ Firstname Lastname9 i.e. your name+’9’ 901234 1.2. Write a program to automatically create a “music” table in DynamoDB with the following attributes. 1 mark title, artist, year, web_url, image_url 1.3. Write a program to automatically load the data from a2.json to your music table. 1 mark 2. Write a program to automatically download all the artist images according to the image_url values in a2.json and upload the images into S3. 2 marks 3. login page 2 marks The login page contains an “Email” text field, a “Password” field, and a “Login” button as well as a register link. When user clicks the “Login” button, it will validate if the user entered credentials match with the information stored in the login table. 3.1. If the user credential is invalid, the login page will display “email or password is invalid”. 1 mark 3.2. If the user credential is valid, it will be redirected to the main page. 1 mark 4. register page 3 marks The register page contains an “Email” text field, a “Username” a “Password” field, and a “Register” button. When a user clicks the “Register” button, it will validate if the user entered email matches with the email stored in the login table. 4.1. If the entered email matches with the email stored in the login table, the register page will show “The email already exists”. 1 mark 4.2. If the entered email is unique, 4.2.1. the new user information will be stored in the login table, and 1 mark 4.2.2. the user will be redirected to the login page, where user can login with the new email and password. 1 mark 5. main page 9 marks , Page 3 of 5 RMIT Classification: Trusted The main page contains three main areas: a user area, a subscription area, a query area and a “Logout” link. 5.1. After a user logs in, the user area will show the corresponding user_name. 1 mark 5.2. The subscription area 5.2.1. The subscription area will show all the user subscribed music information (title, artist, and year) stored in DynamoDB. 1 mark 5.2.2. Each music information is followed by the corresponding artist image retrieved from S3 and a “Remove” button. 1 mark 5.2.3. If the user clicks a “Remove” button, the corresponding subscribed music information and artist information will be removed from the subscription area and the corresponding table in DynamoDB. 1 mark 5.3. The query area should contain three text areas, “Title”, “Year”, “Artist” and a “Query” button. Once the user enters some information in any (or all) these text areas and clicks the “Query” button, 5.3.1. If the queried information is not contained in the entities’ corresponding attribute value(s) in the music table, it will show “No result is retrieved. Please query again”. 1 mark 5.3.2. If the queried information is contained in (one or more) entities’ corresponding attribute value(s) in the music table, the area will show 5.3.2.1. All the retrieved music information (title, artist, and year). 1 mark 5.3.2.2. Each music information is followed by the corresponding artist images retrieved from S3 and a “Subscribe” button. 1 mark 5.3.2.3. If the user clicks a “Subscribe” button, the subscribed music information and the corresponding artist image will be added into the subscription area and the subscribed music information will be stored in DynamoDB. 1 mark 5.4. If the user clicks the “Logout” link, the user will be redirected to the login page. 1 mark Important Notes: 1. The whole application must be COMPLETELY programmed by yourself. You CANNOT use any external source code. 2. The whole application must be FULLY deployed in the designated EC2 instance, otherwise NO MARK will be given for Task 1-3 to Task 1-5. Task-2 [1 mark] Write at least 400 words to describe a more detailed plan of your Assessment 3, including the motivation, the objective, the possible system components, the proposed functions and the possibly adopted AWS services and/or external APIs and the functions of each service/API. Note: , Page 4 of 5 RMIT Classification: Trusted 1) References should be included when needed (excluded in the word count); 2) This task is only designed to encourage you to further develop and improve your previously submitted draft plan for Assessment 3. We won’t assess the quality of Task-2 content. You may discuss the details of your plan with your tutor in weekly workshops. 5. Referencing guidelines What: This is an individual assignment, and all submitted contents must be your OWN. If you have used sources of information other than the contents directly under Canvas→Modules, you must give acknowledge the sources and give references using IEEE referencing style. Where: Add a code comment near the work to be referenced and include the reference in the IEEE style. How: To generate a valid IEEE style reference, please use the citethisforme tool if unfamiliar with this style. Add the detailed reference before any relevant code (within code comments). 6. Submission format Create a .txt file and name it [your_student_number].txt (e.g. s3369312.txt). This .txt file will contain items in following order 1. Your Name and student number 2. Code of Task 1 (all python/html/php code in your project) 3. Texts of Task 2 Submit the txt file into Canvas→Assignments→Assessment 2 before the deadline. You will be marked during your demo time. This submission is only for keeping the records. However, your assessment will NOT be allowed to be demonstrated in Canvas until you submit your file. 7. Demonstration You must demonstrate your project online to an available tutor (unnecessarily your tutor) by making an appointment with the tutor in Week 9. The demo booking will be made available to students in Week 5. All demonstrations must be completed by Week 9. There will be penalty if you fail to complete and demonstrate your work by Week 9. The demo is around 15 minutes for each student. Keep everything ready and make your application live during your demo. Note: Each student can only attend one demonstration for Assessment 2. DON’T overbook otherwise you will receive penalty. If you are not satisfied with your mark, you may attend the online remarking session organized by the course coordinator after Week 9 (remarking time and booking will be made available to students through announcements). 8. Academic integrity and plagiarism (standard warning) Academic integrity is about honest presentation of your academic work. It means acknowledging the work of others while developing your own insights, knowledge and ideas. You should take extreme care that you have: • Acknowledged words, data, diagrams, models, frameworks and/or ideas of others you have quoted (i.e. directly copied), summarised, paraphrased, discussed or mentioned in your assessment through the appropriate referencing methods, http://www.citethisforme.com/ieee/source-type , Page 5 of 5 RMIT Classification: Trusted • Provided a reference list of the publication details so your reader can locate the source if necessary. This includes material taken from Internet sites. If you do not acknowledge the sources of your material, you may be accused of plagiarism because you have
Answered 4 days AfterApr 30, 2021COSC2626

Answer To: I'm looking to get the attached project done. You will need to be proficient in Cloud Computing, AWS...

Valupadasu answered on May 04 2021
143 Votes
MusicApp/.classpath

    
        
            
            
        
    
    
        
            
        
    
    
        
            
            
            
        
    
    
        
            
            
        
    
    
        
            
        
    
    
    
MusicApp/.project

     MusicApp
    
    
    
    
        
             org.eclipse.wst.common.project.facet.core.builder
            
            
        
        
             org.eclipse.jdt.core.javabuilder
            
            
        
        
             org.eclipse.m2e.core.maven2Builder
            
            
        
    
    
         org.eclipse.jdt.core.javanature
         org.eclipse.m2e.core.maven2Nature
         org.eclipse.wst.common.project.facet.core.nature
    
MusicApp/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=11
MusicApp/.settings/org.eclipse.m2e.core.prefs
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
MusicApp/frontend/build/asset-manifest.json
{
"files": {
"main.css": "/static/css/main.24260a63.chunk.css",
"main.js": "/static/js/main.3e7e10ea.chunk.js",
"main.js.map": "/static/js/main.3e7e10ea.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.1c2d59f4.js",
"runtime-main.js.map": "/static/js/runtime-main.1c2d59f4.js.map",
"static/js/2.55eb1422.chunk.js": "/static/js/2.55eb1422.chunk.js",
"static/js/2.55eb1422.chunk.js.map": "/static/js/2.55eb1422.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.243f80c1ee96fb39a783319076385155.js": "/precache-manifest.243f80c1ee96fb39a783319076385155.js",
"service-worker.js": "/service-worker.js",
"static/css/main.24260a63.chunk.css.map": "/static/css/main.24260a63.chunk.css.map",
"static/js/2.55eb1422.chunk.js.LICENSE": "/static/js/2.55eb1422.chunk.js.LICENSE",
"static/media/index.css": "/static/media/projBackground.aa2eb609.png"
},
"entrypoints": [
"static/js/runtime-main.1c2d59f4.js",
"static/js/2.55eb1422.chunk.js",
"static/css/main.24260a63.chunk.css",
"static/js/main.3e7e10ea.chunk.js"
]
}
MusicApp/frontend/build/favicon.ico
MusicApp/frontend/build/index.html
You need to enable JavaScript to run this app.
MusicApp/frontend/build/logo192.png
MusicApp/frontend/build/logo512.png
MusicApp/frontend/build/manifest.json
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
MusicApp/frontend/build/precache-manifest.243f80c1ee96fb39a783319076385155.js
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "e455eca3278c4a79e934c338399363d0",
"url": "/index.html"
},
{
"revision": "6e59a1d1143d9a2a7c89",
"url": "/static/css/main.24260a63.chunk.css"
},
{
"revision": "703525d7ef022e5fb2d0",
"url": "/static/js/2.55eb1422.chunk.js"
},
{
"revision": "ba3b4500f00880cf9656c39900077397",
"url": "/static/js/2.55eb1422.chunk.js.LICENSE"
},
{
"revision": "6e59a1d1143d9a2a7c89",
"url": "/static/js/main.3e7e10ea.chunk.js"
},
{
"revision": "a8139511e7e3c6f8467f",
"url": "/static/js/runtime-main.1c2d59f4.js"
},
{
"revision": "aa2eb6099c143b77a7b16dd30ab34f99",
"url": "/static/media/projBackground.aa2eb609.png"
}
]);
MusicApp/frontend/build/robots.txt
# https://www.robotstxt.org/robotstxt.html
User-agent: *
MusicApp/frontend/build/service-worker.js
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/precache-manifest.243f80c1ee96fb39a783319076385155.js"
);
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});
workbox.core.clientsClaim();
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {

blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/],
});
MusicApp/frontend/build/static/css/main.24260a63.chunk.css
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.logo{display:block;margin-left:auto;margin-right:auto;width:100%}.bgImage{position:fixed;top:0;width:100%;height:100%;background-size:cover;overflow-x:auto;background-image:url(/static/media/projBackground.aa2eb609.png)}
/*# sourceMappingURL=main.24260a63.chunk.css.map */
MusicApp/frontend/build/static/css/main.24260a63.chunk.css.map
{"version":3,"sources":["index.css"],"names":[],"mappings":"AAAA,KACE,QAAS,CACT,mIAEY,CACZ,kCAAmC,CACnC,iCACF,CAEA,KACE,uEAEF,CAEA,MACE,aAAc,CACd,gBAAiB,CACjB,iBAAkB,CAClB,UACF,CAEA,SACE,cAAe,CACf,KAAM,CACN,UAAW,CACX,WAAY,CACZ,qBAAsB,CACtB,eAAgB,CAChB,+DACF","file":"main.24260a63.chunk.css","sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n\n.logo{\n display: block;\n margin-left: auto;\n margin-right: auto;\n width: 100%;\n}\n\n.bgImage{\n position: fixed;\n top: 0;\n width: 100%;\n height: 100%;\n background-size: cover;\n overflow-x: auto;\n background-image: url('projBackground.png');\n}\n"]}
MusicApp/frontend/build/static/js/2.55eb1422.chunk.js
/*! For license information please see 2.55eb1422.chunk.js.LICENSE */
(this.webpackJsonpfrontend=this.webpackJsonpfrontend||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(64)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e){var t,n,u="";if("string"===typeof e||"number"===typeof e)u+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,a=t.withTheme,d=void 0!==a&&a,p=t.name,h=Object(u.a)(t,["defaultTheme","withTheme","name"]);var m=p,v=Object(c.a)(e,Object(r.a)({defaultTheme:i,Component:n,name:p||n.displayName,classNamePrefix:m},h)),g=o.a.forwardRef((function(e,t){e.classes;var a,l=e.innerRef,c=Object(u.a)(e,["classes","innerRef"]),h=v(Object(r.a)(Object(r.a)({},n.defaultProps),e)),m=c;return("string"===typeof p||d)&&(a=Object(f.a)()||i,p&&(m=Object(s.a)({theme:a,name:p,props:c})),d&&!m.theme&&(m.theme=a)),o.a.createElement(n,Object(r.a)({ref:l||t,classes:h},m))}));return l()(g,n),g}},p=n(27);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:p.a},t))}},function(e,t,n){e.exports=n(69)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(52);function u(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},,function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,u=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){u=!0,i=l}finally{try{r||null==a.return||a.return()}finally{if(u)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(65)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),u=n(25);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(u.a)(e,n),Object(u.a)(t,n)}}),[e,t])}},function(e,t,n){e.exports=n(68)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return F})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return O}));var r=n(13),u=n(0),i=n.n(u),o=(n(5),n(18)),a=n(39),l=n(17),c=n(1),s=n(40),f=n.n(s),d=(n(30),n(15)),p=(n(34),function(e){var t=Object(a.a)();return t.displayName=e,t}("Router-History")),h=function(e){var t=Object(a.a)();return t.displayName=e,t}("Router"),m=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(h.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(p.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;i.a.Component;var v={},g=0;function y(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,u=n.exact,i=void 0!==u&&u,o=n.strict,a=void 0!==o&&o,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=v[n]||(v[n]={});if(r[e])return r[e];var u=[],i={regexp:f()(e,u,t),keys:u};return g<1e4&&(r[e]=i,g++),i}(n,{end:i,strict:a,sensitive:c}),u=r.regexp,o=r.keys,l=u.exec(e);if(!l)return null;var s=l[0],d=l.slice(1),p=e===s;return i&&!p?null:{path:n,url:"/"===n&&""===s?"/":s,isExact:p,params:o.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var b=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(h.Consumer,null,(function(t){t||Object(l.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?y(n.pathname,e.props):t.match,u=Object(c.a)({},t,{location:n,match:r}),o=e.props,a=o.children,s=o.component,f=o.render;return Array.isArray(a)&&0===a.length&&(a=null),i.a.createElement(h.Provider,{value:u},u.match?a?"function"===typeof a?a(u):a:s?i.a.createElement(s,u):f?f(u):null:"function"===typeof a?a(u):null)}))},t}(i.a.Component);function E(e){return"/"===e.charAt(0)?e:"/"+e}function A(e,t){if(!e)return t;var n=E(e);return 0!==t.pathname.indexOf(n)?t:Object(c.a)({},t,{pathname:t.pathname.substr(n.length)})}function C(e){return"string"===typeof e?e:Object(o.e)(e)}function x(e){return function(){Object(l.a)(!1)}}function w(){}i.a.Component;var F=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(h.Consumer,null,(function(t){t||Object(l.a)(!1);var n,r,u=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==r&&i.a.isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?y(u.pathname,Object(c.a)({},e.props,{path:o})):t.match}})),r?i.a.cloneElement(n,{location:u,computedMatch:r}):null}))},t}(i.a.Component);var k=i.a.useContext;function O(){return k(p)}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return f}));var r=n(52);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var u=e.substring(t+1,e.length-1).split(",");return{type:n,values:u=u.map((function(e){return parseFloat(e)}))}}function o(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function a(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,u=t[2]/100,a=r*Math.min(u,1-u),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return u-a*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",s.push(t[3])),o({type:c,values:s})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){return e=i(e),t=u(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,o(e)}function s(e,t){if(e=i(e),t=u(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return o(e)}function f(e,t){if(e=i(e),t=u(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return o(e)}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,u={},i=Object.keys(e);for(r=0;r=0||(u[n]=e[n]);return u}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){"use strict";var r=n(1);function u(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,u=e.length;r=0;d--){var p=o[d];"."===p?i(o,d):".."===p?(i(o,d),f++):f&&(i(o,d),f--)}if(!c)for(;f--;f)o.unshift("..");!c||""===o[0]||o[0]&&u(o[0])||o.unshift("");var h=o.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function a(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=a(t),u=a(n);return r!==t||u!==n?e(r,u):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(17);function s(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,u=t||"/";return n&&"?"!==n&&(u+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(u+="#"===r.charAt(0)?r:"#"+r),u}function m(e,t,n,u){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",u=t.indexOf("#");-1!==u&&(r=t.substr(u),t=t.substr(0,u));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return n&&(i.key=n),u?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=o(i.pathname,u.pathname)):i.pathname=u.pathname:i.pathname||(i.pathname="/"),i}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,u){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,u):u(!0):u(!1!==i)}else u(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,d(),E.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(E.entries[E.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=E.index+e;return t>=0&&t0?r:e)-c/100).concat(i,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},s)}function c(e,t,n){var u;return Object(o.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(o.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(o.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(u={minHeight:56},Object(r.a)(u,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(u,e.up("sm"),{minHeight:64}),u)},n)}var s=n(52),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(14),E={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},A={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(e,t,n,r){var u=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(b.d)(e.main,u):"dark"===t&&(e.dark=Object(b.a)(e.main,i)))}function x(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,r=e.secondary,a=void 0===r?{light:h.A200,main:h.A400,dark:h.A700}:r,l=e.error,c=void 0===l?{light:m[300],main:m[500],dark:m[700]}:l,x=e.warning,w=void 0===x?{light:v[300],main:v[500],dark:v[700]}:x,F=e.info,k=void 0===F?{light:g[300],main:g[500],dark:g[700]}:F,O=e.success,S=void 0===O?{light:y[300],main:y[500],dark:y[700]}:O,D=e.type,B=void 0===D?"light":D,T=e.contrastThreshold,j=void 0===T?3:T,
P=e.tonalOffset,R=void 0===P?.2:P,N=Object(u.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(e){return Object(b.c)(e,A.text.primary)>=j?A.text.primary:E.text.primary}var _=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(o.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(s.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(s.a)(5,JSON.stringify(e.main)));return C(e,"light",n,R),C(e,"dark",r,R),e.contrastText||(e.contrastText=M(e.main)),e},z={dark:A,light:E};return Object(i.a)(Object(o.a)({common:f,type:B,primary:_(n),secondary:_(a,"A400","A200","A700"),error:_(c),warning:_(w),info:_(k),success:_(S),grey:d,contrastThreshold:j,getContrastText:M,augmentColor:_,tonalOffset:R},z[B]),N)}function w(e){return Math.round(1e5*e)/1e5}var F={textTransform:"uppercase"};function k(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,a=void 0===r?'"Roboto", "Helvetica", "Arial", sans-serif':r,l=n.fontSize,c=void 0===l?14:l,s=n.fontWeightLight,f=void 0===s?300:s,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,g=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,E=n.allVariants,A=n.pxToRem,C=Object(u.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var x=c/14,k=A||function(e){return"".concat(e/b*x,"rem")},O=function(e,t,n,r,u){return Object(o.a)({fontFamily:a,fontWeight:e,fontSize:k(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===a?{letterSpacing:"".concat(w(r/t),"em")}:{},u,E)},S={h1:O(f,96,1.167,-1.5),h2:O(f,60,1.2,-.5),h3:O(p,48,1.167,0),h4:O(p,34,1.235,.25),h5:O(p,24,1.334,0),h6:O(m,20,1.6,.15),subtitle1:O(p,16,1.75,.15),subtitle2:O(m,14,1.57,.1),body1:O(p,16,1.5,.15),body2:O(p,14,1.43,.15),button:O(m,14,1.75,.4,F),caption:O(p,12,1.66,.4),overline:O(p,12,2.66,1,F)};return Object(i.a)(Object(o.a)({htmlFontSize:b,pxToRem:k,round:w,fontFamily:a,fontSize:c,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:g},S),C,{clone:!1})}function O(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var S=["none",O(0,2,1,-1,0,1,1,0,0,1,3,0),O(0,3,1,-2,0,2,2,0,0,1,5,0),O(0,3,3,-2,0,3,4,0,0,1,8,0),O(0,2,4,-1,0,4,5,0,0,1,10,0),O(0,3,5,-1,0,5,8,0,0,1,14,0),O(0,3,5,-1,0,6,10,0,0,1,18,0),O(0,4,5,-2,0,7,10,1,0,2,16,1),O(0,5,5,-3,0,8,10,1,0,3,14,2),O(0,5,6,-3,0,9,12,1,0,3,16,2),O(0,6,6,-3,0,10,14,1,0,4,18,3),O(0,6,7,-4,0,11,15,1,0,4,20,3),O(0,7,8,-4,0,12,17,2,0,5,22,4),O(0,7,8,-4,0,13,19,2,0,5,24,4),O(0,7,9,-4,0,14,21,2,0,5,26,4),O(0,8,9,-5,0,15,22,2,0,6,28,5),O(0,8,10,-5,0,16,24,2,0,6,30,5),O(0,8,11,-5,0,17,26,2,0,6,32,5),O(0,9,11,-5,0,18,28,2,0,7,34,6),O(0,9,12,-6,0,19,29,2,0,7,36,6),O(0,10,13,-6,0,20,31,3,0,8,38,7),O(0,10,13,-6,0,21,33,3,0,8,40,7),O(0,10,14,-6,0,22,35,3,0,8,42,7),O(0,11,14,-7,0,23,36,3,0,9,44,8),O(0,11,15,-7,0,24,38,3,0,9,46,8)],D={borderRadius:4},B=n(8),T=(n(28),n(22));n(5);var j=function(e,t){return t?Object(i.a)(e,t,{clone:!1}):e},P={xs:0,sm:600,md:960,lg:1280,xl:1920},R={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(P[e],"px)")}};var N={m:"margin",p:"padding"},M={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!_[e])return[e];e=_[e]}var t=e.split(""),n=Object(B.a)(t,2),r=n[0],u=n[1],i=N[r],o=M[u]||"";return Array.isArray(o)?o.map((function(e){return i+e})):[i+o]})),I=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function L(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function W(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function $(e){var t=L(e.theme);return Object.keys(e).map((function(n){if(-1===I.indexOf(n))return null;var r=W(z(n),t),u=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||R;return t.reduce((function(e,u,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Object(T.a)(t)){var u=e.theme.breakpoints||R;return Object.keys(t).reduce((function(e,r){return e[u.up(r)]=n(t[r]),e}),{})}return n(t)}(e,u,r)})).reduce(j,{})}$.propTypes={},$.filterProps=I;function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=L({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?H.standard:n,i=t.easing,o=void 0===i?V.easeInOut:i,a=t.delay,l=void 0===a?0:a;Object(u.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof r?r:q(r)," ").concat(o," ").concat("string"===typeof l?l:q(l))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Q=n(33);var G=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,a=e.palette,s=void 0===a?{}:a,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=Object(u.a)(e,["breakpoints","mixins","palette","spacing","typography"]),m=x(s),v=l(n),g=U(f),y=Object(i.a)({breakpoints:v,direction:"ltr",mixins:c(v,g,o),overrides:{},palette:m,props:{},shadows:S,typography:k(m,p),spacing:g,shape:D,transitions:K,zIndex:Q.a},h),b=arguments.length,E=new Array(b>1?b-1:0),A=1;AB.length&&B.push(e)}function P(e,t,n){return null==e?0:function e(t,n,r,u){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var l=!1;if(null===t)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case o:l=!0}}if(l)return r(u,t,""===n?"."+R(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here