Design a program that will prompt the user for the required

Assignment Help Management Information Sys
Reference no: EM132103153

Assignment : Virtual Store

Use the concepts and scenario from Assignment 1 to help "Your" Virtual Business to 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 of each item, and the number of items being purchased. When complete, your program should include three (3) arrays, two (2) loops, one (1) and / or conditional statement, and one (1) 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. Include a header or an output which shows: "Welcome to XXXX Shop". Note: XXXX is your first and last name.

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

3. 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.

4. Store the required data in three (3) arrays (e.g., one (1) for the item name, one (1) for the price per item, and one (1) for the number of items 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 "pricePerItem" array, would give us the price per item of that same third item that the customer is buying.

5. Store up to six (6) values in each of the three (3) arrays.

6. 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 six (6) items.

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

Item name

Price per item

Quantity of items purchased

Subtotal price for each item, calculated as price per pound multiplied by the number of pounds

Total weight of the entire order (in pounds)

The cost of shipping which is based on the total number of items, calculated as 40 cents per item. Note: For example, if the customer purchased four (4) items, the cost of shipping would be (.40 * 4 = $1.60).

Grand total price of all items and shipping.

Note: Use the "console" option in the output command to accomplish this task. An example of an acceptable output has been provided below:
Item name Price per pound Number of pounds Subtotal
Light Bulbs $4 3 $12
Towels $3 5 $15
Total
Shipping 8 $27
$3.20
Grand Total $30.20

Your assignment must follow these formatting requirements:

Include the code as a fully functional Visual Logic Program with the .vls extension.

Submit the assignment files (Visual Logic Program and Screenshot) as a packaged .zip file.

The specific course learning outcomes associated with this assignment are:

Demonstrate the use of algorithms and pseudocoding to the problem-solving process.

Distinguish among the basic types, steps, and properties of programming.

Apply the techniques of functional decomposition, modularization techniques, and debugging strategies into program design.

Design and write programs using the appropriate data structure and fundamental programming constructs for a given problem.

Select and describe relational comparison operators, AND / OR logic and their precedence for a given problem.

Describe the use of arrays and subscripts, and the steps involved in declaring, initializing, loading, and searching arrays.

Develop design documents for an interactive event-driven program.

Reference no: EM132103153

Questions Cloud

Create a reference document demonstrating appropriate secure : Your company encourages its employees to interact with the corporate Facebook page as a way to promote brand awareness and customer engagement.
Demonstrate knowledge by writing a grant application : PUBH611 HEALTH PROMOTION - GRANTAPPLICATION - demonstrate knowledge by writing a grant application to extend an existing health promotion program
Develop an e-mail-type communication announcing new policy : You are a Principal Information Assurance and Security Analyst for a well-known music producing company in California.
How would you address the need for truly ethical behavior : Does this make such actions (including the recent OPM break-in) legal? Under what conditions (if any) might such actions be considered ethical?
Design a program that will prompt the user for the required : 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.
How much gain is excluded and recognized : Mathew Murphy, single, sold his home that he had owned for 20 years for $670,000. How much gain is excluded? How much is recognized
What amount of interest income to be included in income : Betty Brewster received the following interest payments. What is the amount of interest income to be included in income
Determine which ones are deductible for AGI : Jake, a single individual with a salary of $40,000, paid the following expenses during the year. Determine which ones are deductible for AGI
Calculate the net income reported by stahl consulting : Stahl made an additional investment of $9,000 and withdrew cash of $15,000 during the year. The net income reported by Stahl Consulting for the year was

Reviews

Write a Review

Management Information Sys Questions & Answers

  Develop a network schedule for the project

You must submit both sections as separate files for the completion of this assignment. Label each file name according to the section of the assignment.

  Newly designed urgent care center

Determine which placement of departments for a newly designed urgent care center will minimize transportation costs.

  What is the null hypothesis for given hypothesis test

What is the null hypothesis for this hypothesis test? - What is the alternative hypothesis for this hypothesis test?

  Created a demand for mobile or cloud computing

What changes in technology have created a demand for mobile or cloud computing within the industry you have chosen

  How use of social media can ensure company has competitive

Why and how the use of social media can ensure your company has a competitive edge. The pros and cons of change. The cost and benefit of making the proposed changes.

  Types of judgment heuristics

In a meeting of Polwalski production managers, you have been asked to discuss the three types of judgment heuristics

  Group information dependence problem

Group Information Dependence Problem. Develop power presentation of the 4 articles. Support your presentation with appropriate references

  Will robots replace people in manufacturing

Answer a question based on case study- Will Robots Replace People in Manufacturing? explain your answer

  How security awareness differ from security training program

Analyze how security awareness programs differ from security training programs.

  Which activity has the greatest amount of slack

IT 625 :How long will the project take? What is the critical path(s) for the project?. Which activity has the greatest amount of slack?

  Discuss difference between routers and switches

The IT leadership team has determined that the college will add another satellite campus that will have a Learning Center with 20 computers and 10 classrooms.

  Apple computers high technology personnel rapid response

apple computers high technology personnel rapid response support structureapple computers inc.1. what is apples special

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd