wsduniya

wsduniya

Lv2

Imdad Ahmad

0 Followers
0 Following
0 Helped

ANSWERS

Published31

Subjects

History1English1Business2Science1Psychology1Information Technology1Biology3Statistics18Physics1Chemistry2
Answer: The solvolysis of 2-bromo-2-methylbutane in acetic acid involves the b...
Answer: Methyl 3-nitrobenzoate has several characteristic peaks in its IR spec...
Answer:In conclusion, while the Constitution has not always lived up to its pr...
Answer: The Industrial Revolution in England was a period of significant socia...

this is the assignment: Not sure if the code you sent outputs everything the assignment asks.

 

In this activity, you are designing an application for grocery stores and their inventories.

The items depending on their type are divided into the following categories:

Group A: Meat

Group B: Deli

Group C: Pharmacy

Group D: Seafood

Group E: Beverage

Group F: Canned

Group G: Jarred

Group H: Dry Food

Group I: Dairy

Group J: Bakery

Group K: Personal Care

Group L: Paper Goods

Your store must have at least 3 items in each category.

Your application as the first step needs to collect the following information before importing the items to the store:

1. The name of the product

2. The Category

3. The Company/Manufacturer name

4. The purchased price (What company has paid to buy this product)

5. The sale price (What customers will pay to buy this product)

6. The quantity of the purchased items

7. The date of the purchased items

8. The date of the production

9. The expiry date of the product

10. Store Code (a 4-digit number)

11. The currency of the country


12. Items will go on sale on different dates depending on their categories.

Your application is responsible to use encryption method 1 for #1, and #3. (You have to define the suitable encryption method.)

Your application is responsible to use encryption method 2 for #2. (You have to define the suitable encryption method.)

Your application is responsible to use encryption method 3 for #4, and #5. (You have to define the suitable encryption method.)

Your application is responsible to use encryption method 4 for #6. (You have to define the suitable encryption method.)

Your application is responsible to use encryption method 5 for #7, #8, and #9. (You have to define the suitable encryption method.)

Your application is responsible to use encryption method 6 for #10. (You have to define the suitable encryption method.)

Your application is responsible to use encryption method 7 for #11. (You have to define the suitable encryption method.)


The output of the encryptions will generate a number that will be known as the barcode of that specific item in this store.

Before selecting and implementing your encryption methods, you have to answer the following questions:

- Will all the generated barcodes have the same number of digits?

- How should we deal with barcodes that have different numbers of digits?

- Do you need to define decryption?

- Is there any other questions, aspects, complications, simplifications, etc. that I need to think about in advance?

Items will go on sale on different dates depending on their categories.

Group A, B, C, and D follow the following rules:

- Items will go on a 10% promotion when the date passes 50% of the durable life period - Yellow Tag

- Items will go on a 25% promotion when the date passes 65% of the durable life period - Green Tag

- Items will go on a 50% promotion when the date passes 75% of the durable life period - Red Tag

- Items will go on a 95% promotion when the date passes 95% of the durable life period - Star Tag and Final Sale (Bring Me Home Today!)

- Items with less than one day of their durable life period must be removed from the shelves and storage to be removed from the inventory

Group E, F, G, and H follow the following rules:

- Items will go on a 10% promotion when the date passes 60% of the durable life period - Yellow Tag

- Items will go on a 25% promotion when the date passes 70% of the durable life period - Green Tag

- Items will go on a 50% promotion when the date passes 80% of the durable life period - Red Tag

- Items will go on a 95% promotion when the date passes 95% of the durable life period - Star Tag and Final Sale (Bring Me Home Today!)

- Items with less than one day of their durable life period must be removed from the shelves and storage to be removed from the inventory


Groups I, J, and K follow the following rules:

- Items will go on a 10% promotion when the date passes 40% of the durable life period - Yellow Tag

- Items will go on a 25% promotion when the date passes 50% of the durable life period - Green Tag

- Items will go on a 50% promotion when the date passes 60% of the durable life period - Red Tag

- Items will go on a 95% promotion when the date passes 95% of the durable life period - Star Tag (Bring Me Home Today!)

- Items with less than one day of their durable life period must be removed from the shelves and storage to be removed from the inventory

Group L follows the following rules:

- Items will go on a 10% promotion when the date passes 70% of the durable life period - Yellow Tag

- Items will go on a 25% promotion when the date passes 80% of the durable life period - Green Tag

- Items will go on a 50% promotion when the date passes 90% of the durable life period - Red Tag

- Items will go on a 95% promotion when the date passes 95% of the durable life period - Star Tag and Final Sale (Bring Me Home Today!)

- Items with less than one day of their durable life period must be removed from the shelves and storage to be removed from the inventory

The output of your program will be a printed receipt that shows a list of 12 items (one item from each category), 8 items with the regular price, and 4 items on sale that a customer bought also the customer has 3 items to return from three different categories.

A receipt needs to include the following information on it:

- The price of each item that has a regular price

- If the price is reduced the reduction amount and sales percentage will be printed on the lines below the regular price; therefore the customer will see the regular price, the sales price, the reduced amount, and the sales percentage

- Each item has a unique barcode
- The date and the time of the purchase
- The store number along with the address of the store
- The final Balance
- The payment method

As per our discussion in class, your code needs to ask the following question from the user at the very beginning:
"Would you like to import any item to your store?"
The answer to this question is YES/NO.
If YES, there will be 12 steps to collect the information related to that specific item being imported to the store to fill in and then, the program will proceed with the following steps.
If No, 30 items (3*10, 3 items in each category) have already existed in our store and the program will proceed with the following steps.

Memory management, allocating, and deallocating memory are one of the most important aspects to be considered in this project.

Regarding the promotions tags available in different colors, your application must be able to generate a list of items with the proper color of the tag that depends on the percentage of the promotion.



In order to submit your final version, you need to record a video, a maximum of 4 minutes. In this video, you need to explain the different parts of the code you have written, the functions, the pointers, memory allocation, memory management, and encryption methods, and if available the decryption methods must be explained verbally. The steps you are taking in explaining your written code must follow the steps, line by line, of your main function. This video should clarify the approaches you have taken along with the fulfillment of the requirements of this project.

Answer:In conclusion, the prevalence of the disease and the sensitivity and sp...
Answer: Therefore, the mass of the shorter period planet is approximately 1.99...
Answer: The most dense sample is Sample F. The hardest sample is Sample A. If ...
Answer: However, from the graph, we can see that Drug B has a lower EC50 and a...
Answer: However, from the graph, we can see that Drug B has a lower EC50 and a...
Answer:So, the level L such that there is a probability of only 0.01 that the ...
Answer: Thus, the probability of Rebecca being diagnosed with gestational diab...
2. Suppose next that we have even less knowledge of our patient, and we are only given the accuracy of the blood test and prevalence of the disease in our population. We are told that the blood test is 9# percent reliable, this means that the test will yield an accurate positive result in 9#% of the cases where the disease is actually present. Gestational diabetes affects #.1 percent of the population in our patient's age group, and that our test has a false positive rate of #+4 percent. Use your knowledge of Bayes' Theorem and Conditional Probabilities to compute the following quantities based on the information given only in part 2: a. If 100,000 people take the blood test, how many people would you expect to test positive and actually have gestational diabetes? b. What is the probability of having the disease given that you test positive? c. If 100,000 people take the blood test, how many people would you expect to test negative despite actually having gestational diabetes? d. What is the probability of having the disease given that you tested negative? Comment on what you observe in the above computations. How does the prevalence of the disease affect whether the test can be trusted? For this question, you will need to apply Bayes' Theorem. An explanation for the theorem and an example can be found in the text starting on page 163. The idea behind Bayes' Theorem is that the conditional probability of an event that has already taken place, can be found using the conditional probability of a "future" event. For instance, suppose that you know the probability of having cancer is 0.01. You also know that the probability of testing positive for cancer, given that cancer is present is 0.8 and the probability of testing positive, given that cancer is not present is 0.1. Then, you can use Bayes' Theorem to find the probabilitv of having cancer present. given that there is a
Answer: Observations:• The prevalence of the disease affects the accuracy and ...
Answer:The rationale for examining the results of the lateral flow immunoassay...
Here are answers to the questions on toxicology:1.As a forensic toxicologist, ...
Answer:Finally, we can substitute these values into Bayes' theorem:P(D' | T) =...
Answer:The absolute difference is greater than 0.050, so the answer is (D) No,...
Answer:a. There are 285 subjects included in the study.b. Among the 146 subjec...
Answer:Therefore, the result is less than 0.050 absolute difference away from ...
Answer:P(negative test result | subject lied) = 0.8 * (40/97) / (48/97) ≈ 0.66...
Answer: a) Probability (+ Positive Test Result for 1 random selection) = (44 +...
Answer:Therefore, the probability that a person does not actually have the dis...
Answer:Therefore, the probability that the person has the disease given a nega...
Answer: So the probability that the disease is actually present given a positi...
Answer:Therefore, the probability that the disease is not present given a nega...
Answer: a) The specificity of the test is the probability of a negative test r...
Answer: Statement B is false. Hispanic families generally value cooperation ov...
Answer:a) The probability that an individual afflicted with the disease develo...
Answer: So the probability that an individual selected at random from the popu...
In a large population of people, some individuals are infected with a rare disease and some are not. Let POS represent the event that an individual is infected, and let NEG represent the event that an individual is not infected.   A blood test can be administered to try to find out whether an individual is infected. Let represent the event that the test result is positive [i.e., the test indicates that the individual is infected] and let represent the event that the test result is negative [i.e., the test indicates that the individual is not infected]. The blood test is not perfectly accurate. It gives incorrect results with the following probabilities: If a person really is infected, the test result is positive 99.9 percent of the time, and the test result is negative 0.1 percent of the time. If a person really is not infected, the test result is negative 99 percent of the time, and the test result is positive 1 percent of the time.   Suppose that 0.6 percent of all individuals in the population are infected with the disease (i.e., if one member of the population is chosen randomly, there is a probability of 0.006 that s/he will be infected),. a) If one member of the population is selected randomly to take the blood test, what is the probability that the result will be positive? b) Suppose one member of the population is selected randomly to take the blood test and that the test result is positive. Given this test result, what is the probability that the individual tested really is infected with the disease? c) Does your answer to (b) raise any questions in your mind about whether testing randomly chosen individuals for rare diseases would produce useful information? d) Suppose that one member of the population is selected randomly, and is given the blood test twice. Let represent the event that the result of the first test is positive, and let represent the event that the first test is negative. Similarly, let represent the event that the result of the second test is positive, and let represent the event that the second test is negative. If an infected person is given this test twice: -- the first test result is positive 99.9 percent of the time and negative 0.1 percent of the time -- the second test result is positive 99.9 percent of the time and negative 0.1 percent of the time, regardless of the outcome of the first test If a person who is not infected is given this test twice: -- the first test result is negative 99 percent of the time and positive 1 percent of the time -- the second test result is negative 99 percent of the time and positive 1 percent of the time, regardless of the outcome of the first test [Something like this might be the case if errors in the results of the test were due to random mistakes made in the labs that do the testing, rather than an inherent characteristic of the individual being tested.] Suppose a randomly selected member of the population has been given the test twice, and that both results were positive. Given these test results, what is the probability that the individual really is infected? e) In the two-test scenario described in part (d) of this problem, are the events and independent? Your answer should be based on the definition of statistical independence, not just a loose verbal argument.
Answer: Since 0.006094 ≠ 0.00011192, the events Positive and Positive are not ...
Answer: The table seems to be malformed in the text you provided. Based on my ...
Answer: Applebee’s is owned by Dine Brands Global Inc. As of March 30th, 2023,...

Weekly leaderboard

Start filling in the gaps now
Log in