We appreciate your visit to Project Instructions Overview This project will allow you to practice the material from the first 3 modules Please read through the instructions completely before starting. This page offers clear insights and highlights the essential aspects of the topic. Our goal is to provide a helpful and engaging learning experience. Explore the content and find the answers you need!
Answer :
For this project, you need to complete the following tasks:
1. Select some products of the industry/category and create an array of objects with at least 10 objects. Each object will have at least 4 properties with values. Each object of the array should have the same set of property names with different values. The array must contain at least 10 objects. Select your data from related web sites (stores, factories, etc.)
2. Create a function that can make a calculation and the output can be used to format your object in a nice string format for output. This function should be a pure function that takes one object as an argument and returns a string.
3. Create a new array from your array that only contains string values produced by the above function. Sort this array alphabetically and display an appropriate heading followed by this list one string in line.
4. Prompt the user for a numeric value. Display a string (formatted using the function above) for each of the objects that have a property that is greater or less (up to you) than the value provided by the user.
5. Calculate the average value of the calculation that you calculated of all your objects/products. Output it with descriptive text in a nicely formatted way.
Follow the below instructions:
Step 1: Select some products of the industry/category and create an array of objects:
You can select any industry or category, such as electronics, furniture, Apple products, or anything you use or live in. For example, if you select electronics, you could select TV, computers, printers, etc. For furniture, you could select beds, chair, couch, and so on.
Each object in the array must have at least 4 properties with values. The properties can be of any JavaScript value type. However, each object of the array should have the same set of property names with different values. At least one string value and 2 number value is necessary. You can select your data from related web sites (stores, factories, etc.).
There must be at least 10 objects in the array.
Step 2: Create a function that can make a calculation:
Create a function that can make a calculation and the output can be used to format your object in a nice string format for output. This function should be a pure function that takes one object as an argument and returns a string. You can select any calculation that matches your data. For example, one of the total inventory cost or cost of products sold of each product/object.
This function should take one object as an argument and return a string. The string can be formatted in any way that you feel is appropriate for your data, including the cost that you calculated. It must use one or more properties from the object in the output string.
Step 3: Create a new array from your array that only contains string values:
Create a new array from your array that only contains string values produced by the above function. Sort this array alphabetically and display an appropriate heading followed by this list, one string in line.
Step 4: Prompt the user for a numeric value
:Prompt the user for a numeric value. Display a string (formatted using the function above) for each of the objects that have a property that is greater or less (up to you) than the value provided by the user. Be sure to provide a message if there are no objects that match.
Step 5: Calculate the average value of the calculation:
Calculate the average value of the calculation that you calculated of all your objects/products. Output it with descriptive text in a nicely formatted way. Use template literals (back-tick strings) where appropriate rather than concatenation. Do not use loops, use higher-order methods. If you do, include a comment with your reason.
Do not use var or document.write()
.Do not use movie titles for your data.
To know more about project, visit:
https://brainly.com/question/30329737
#SPJ11
Thanks for taking the time to read Project Instructions Overview This project will allow you to practice the material from the first 3 modules Please read through the instructions completely before starting. We hope the insights shared have been valuable and enhanced your understanding of the topic. Don�t hesitate to browse our website for more informative and engaging content!
- Why do Businesses Exist Why does Starbucks Exist What Service does Starbucks Provide Really what is their product.
- The pattern of numbers below is an arithmetic sequence tex 14 24 34 44 54 ldots tex Which statement describes the recursive function used to..
- Morgan felt the need to streamline Edison Electric What changes did Morgan make.
Rewritten by : Barada