Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Fran's Virtual Fruit Stand, Part 2

Use the concepts and scenario from Assignment 1 (attached if need for help) to help Fran's Virtual Fruit Stand increase the functionality of its online shopping cart. When a customer checks out, the shopping cart must store the required data pertaining to each item the customer is buying. Your job is to design a program that will prompt the user for the required data and then store it. The required data includes the item name, the price per pound, and the number of pounds of that item being purchased. When complete, your program should include three arrays, two loops, one and / or conditional statement, and one variable.

Using Visual Logic, design a flowchart that is also a fully functional program to add functionality to the online shopping cart. According to your design, the program must:

1. Continually accept data regarding the purchase of fruit as specified below until the user enters a sentinel value, or until five (5) items are entered, whichever comes first.

2. Prompt the user for each item and accept the name of the fruit (e.g., "dried apples"), the price per pound, and the number of pounds sold in a month.

3. Store the required data in three arrays (e.g., one for the item name, one for the price per pound, and one for the number of pounds being purchased) with corresponding index values. Note: For example, index value 3, when applied to the "itemName" array, would give us the name of the third item that the customer is buying. That same index value of 3, when applied to the "pricePerPound" array, would give us the price per pound of that same third item that the customer is buying.

4. Store up to five values in each of the three arrays.

5. Provide functionality in which the user ends the program by typing a sentinel value, and the program tells the user what the sentinel value is. Note: An acceptable message may read "Type n to end the program.", where "n" is the sentinel value. If the user does not end the program in this way, then the program ends when it has collected the data for five items.

6. Print an itemized receipt with the following data after the last item in the purchase has been saved to the array.

o Item name
o Price per pound of each item
o Number of pounds purchased of each item
o Subtotal price for each item, calculated as price per pound multiplied by the number of pounds
o Total weight of the entire order (in pounds)
o The cost of shipping which is based on the total weight of the entire order, calculated as 50 cents per pound. Note: For example, if the entire order weighs seven pounds, the cost of shipping would be $3.50.
o Grand total price of all items and shipping.

Note: Use the "console" option in the output command to accomplish this task.

Attachment:- Assignment 1.zip

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92064033
  • Price:- $120

Priced at Now at $120, Verified Solution

Have any Question?


Related Questions in Computer Engineering

If no payments are made a loan of amount 44000 would

If no payments are made, a loan of amount $44000 would increase to $49103.89 after 2 years of monthly compounding interest. If instead, payments of $718.87 are made at the end of each month, how many years would it be un ...

Software design processquestion what are the best practices

Software Design Process Question: What are the best practices in writing program? Describe each one briefly. Noe: This question needs to be research. The book may all of the beat practice listing.

A new machine averages 4 clock cycles per instruction and

A new machine averages 4 clock cycles per instruction, and runs at a system clock of 20 MHz. The Axiom-Verge algorithm set to benchmark the system will take an even 3000 instructions to complete. a) Knowing how many cloc ...

Question suppose you roll a set of n dice then the smallest

Question : Suppose you roll a set of n dice. then the smallest sum is n and the largest is 6n. example if n=10 then the small sum will be 6 and the largest 60. Let m be the desired sum of the numbers rolled. then n Use a ...

Question you all work in or know of people who work in

Question: You all work in or know of people who work in enterprise IT environments Maintaining the enterprise security posture, legal risk, and security is constantly changing. What makes it so difficult to maintain info ...

Short answer1 what is the difference between a logic error

Short Answer 1. What is the difference between a logic error and a syntax error? 2. Define and discuss the difference between unary, binary and ternary operators. Give an example of each. 3. When must you use curly brace ...

The following data is the results of a random sample of the

The following data is the results of a random sample of the ages (in years) of 12 houses in a community: 18, 22, 23, 19, 18, 24, 26, 20, 17, 12, 27, 28. Assume the population is normal. Construct a 90% confidence interva ...

Uranium vi fluoride is crucial for the enrichment of

Uranium (VI) fluoride is crucial for the enrichment of weapons-grade uranium. If a 1.0 mol sample of helium effuses in 255 s, how many seconds will it take for the same amount of uranium (VI) fluoride to effuse under the ...

Suppose you are a manager in the it department for the

Suppose you are a manager in the IT department for the government of a corrupt dictator, who has a collection of computers that need to be connected together to create a communication network for his spies. You are given ...

Question select an example of popular culture a song film

Question : Select an example of popular culture: a song, film, or music video; fashion; episodic visual storytelling such as a TV show; a print or moving image advertisement; or a magazine or book. We will refer to this ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As