Display the contents of the array in order

Assignment Help Programming Languages
Reference no: EM131289401

Exercises & iLabs Logic and Design

Exercise

Assignment: Arrays are incredible fun! Today we are going to work on a program to keep track of our homework scores for a math class. Write a program that accepts five homework scores as input values and stores them into a table (which is another name for an array). Once the scores are in the array, we can process them again and again.

First, load the scores in your array. Second, display the contents of the array in order. Third, display array in reverse order. Fourth, calculate the average of the five scores entered in the array. Finally, the algorithm should display all the homework scores in the array that are larger than the previously calculated average. Make sure you use some output statements to clarify all the details you are displaying, being cautious about spelling and communicating to your user.

Be sure to THINK about the logic and design first (IPO chart and or pseudocode), then code the Visual Logic command line processing.

Lab Fireworks Stand Checkout (Devry)

Your algorithm will keep track of a customer's purchases at the local fireworks stand. Customers will not know exactly how many items they will purchase, so using a for-loop on this lab is not allowed. Let's keep the rules simple.

Accept the dollar value of each item purchased from the user until the user is finished. When purchases are complete, enter a sentinel value of -1 (Make certain you do not include the -1 sentinel value in your total). Keep track of the total dollar amount of all fireworks purchased. Keep a tally of the number of items purchased. If more than 20 items were purchased, give your customer a 10% discount on the total purchases. Once purchases are complete, display the total number of items purchased, the average price of the items, the total of all fireworks purchased, any discount if applicable, and the total of all fireworks purchased minus the discount.

Be sure to THINK about the logic and design first (IPO chart and/or pseudocode), then code the Visual Logic command line processing.

Deliverables Firework Stand Checkout IPO Model Firework Stand Checkout Pseudocode Firework Stand Checkout Flowchart Firework Stand Checkout Output Sample

Reference no: EM131289401

Questions Cloud

Process to meet customer expectations : Describe how you will determine the capability of your process to meet customer expectations. Include sufficient detail to explain your data collection and analysis approach.
Which retailers signed the agreement : Write a brief report on the Bangladesh Accord on Fire and Building Safety proposed by Industrial. Which retailers signed the agreement, and why have some U.S. retailers refused to sign the pact?
Why should you reduce spending on credit before investing : Why should you reduce spending on credit before investing? Why shouldn't you carry large consumer debt and invest at the same time?
Systems flow chart for the purchase and payment processes : Jenny Smith owns Classic Photography Inc., a company that restores photos for its clients and creates electronic images from the restored photos. The company also frames restored photos and creates sophisticated custom artworks. Create a systems flow..
Display the contents of the array in order : First, load the scores in your array. Second, display the contents of the array in order. Third, display array in reverse order. Fourth, calculate the average of the five scores entered in the array.
Key characteristics of stage : Describe how the spotlight is shining squarely on the incident in Stage One. What are the key characteristics of this stage, and how are they manifested in both the traditional, mainstream, and social media? Include two recent examples to illustra..
For what price does the manufacturer sell the product : If the salon's markup is 40 percent and the wholesaler's markup is 15 percent, both based on their selling prices, for what price does the manufacturer sell the product to the wholesaler?
Give the review on the given article-women in the workforce : Give the Review on the given Article-Women in the Workforce: What Changes Have We Made
Stage one and stage two of crisis reporting : Discuss the impact of social media in Stage One and Stage Two of crisis reporting. What are some key issues to be aware of and what steps should an organization take with regard to social media during these first two stages of crisis reporting?

Reviews

Write a Review

Programming Languages Questions & Answers

  Define prolog relations for the following

Provide some facts for the father, mother, male, and female predicates and then test the entire thing using Prolog.

  Create-implement simple class using static variables-methods

This third programming project is intended to demonstrate your knowledge of the following: create and implement a simple class. properly use static variables, methods and constants

  Write a script to declares and sets variable

Write a script that declares and sets a variable thats equal to the total outstanding balance due. If that balance due is greater than $10,000.00.

  Create class to calculate perimeter and area rectangle

Create class Rectangle. The class has attributes length and width, each of which defaults to 1. It has read-only properties that calculate the Perimeter and the Area of the rectangle.

  Write functions to do several types of string processing

Write functions to do several types of string processing. To test these you must write driver programs USING C++ without any errors and it has be executed properly.

  Create a program that reads in numbers from a file

Create a program that reads in numbers from a file and determines if they are in between two other numbers. For example, it might print a message if the number is between 1 and 5.

  Program using ten radio buttons to show five states

It is program using 10 Radio Buttons to show 5 States and 5 Capitals to user's interface. Also, there is text box to print "Correct" and "Incorrect" when Sate and the Capital is a correct match.

  Create function m-file called mass that requires two vector

Create a function M-file called mass that requires two vector inputs-the number of moles and the molecular weight-and returns the corresponding mass. Because you are providing vector input, it will be necessary to use the meshgrid functio..

  Find the shortest sequence of mips instructions

Find the shortest sequence of MIPS instructions that extracts bits 16 down to 11 from register $t0 and uses the value of this field to replace bits 31 down to 26 in register $t1 without changing the other 26 bits of register $t1.

  Employee wage data application

A small company is moving all its employee data to a computer. To make a smooth transition, a software program will permit the data entry personnel to enter data into a file. Design a program that writes the employees.dat file

  Design an employee class

Design an Employee class that has fields for the following pieces of information: Employee Name and Employee Number

  Prepare an application by using the user interface and

develop an application using the user interface and itemprice below to calculate the price of a pizza based on its size

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