Write an algorithm that displays the squares of the numbers

Assignment Help Computer Engineering
Reference no: EM131290585

Exercises & iLabs Logic and Design

Exercise

Assignment (part A): Your goal is to solve the following simple programming exercise. Using a FOR loop, write an algorithm that displays the squares of the numbers 1 to 10 to console output. Thought provoking question: Do you need to accept input?

Assignment (part B): Using a pretest WHILE loop, write an algorithm that displays the squares of the numbers 1 to 10 to console output.

Assignment (part C): This is extra for those who desire a challenge. Accomplish the same output as above, but use a posttest WHILE loop this time.

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 (indicating the user has finished). If the item purchased is $50.00 or more, give your customer a 10% discount on the item purchased. Display all of the purchases to the customer with the original price and the discount price.

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

Reference no: EM131290585

Questions Cloud

What is the purpose of risk management industry standards : What is the most important component of an effective risk management system? Briefly explain how speculative derivatives transactions are treated from an accounting perspective.
Public sector bargaining differs from private sector : Many labor relations experts believe there is a need to revise U.S. labor law. Do you agree andwhy is there pressure to update the law now? Name at least three (3) changes you would considermaking and why? Although there are many similarities betw..
Fnd the var for one day : Find the VAR for one year at a probability of 0.05. Identify and use the most appropriate method given the information you have.
Does the otr time appear to be stable : Does the OTR time appear to be stable? Why or why not?If you were to use a control chart to evaluate stability, which chart would you use? Why?
Write an algorithm that displays the squares of the numbers : Write an algorithm that displays the squares of the numbers 1 to 10 to console output. This is extra for those who desire a challenge. Accomplish the same output as above, but use a posttest WHILE loop this time.
Intellectual property clause regarding ownership of ip : Intellectual Property (IP) Clause regarding ownership of IP How your contract clause can be applied in a business managerial setting for either a personal, real, or IP dispute or an IP property clause regarding either owner of IP or trade secrets.
Given the answer of the multiple choice questions : Which mission area includes restoring health and social services networks and returning economic and business activities to a healthy state? Which of the following statements about the Stafford Act is correct?
Sid acceptance of the offer effective : The email mentioned that Sid should accept the offer by replying to her email. He received the email and went to Diyas house and communicated acceptance of the offer. Is Sid's acceptance of the offer effective?
Explain apple decision and quell potential negative reaction : You have been tasked with creating a press release to make this decision public and get ahead of any negative press. Compose a statement to the press to explain Apple's decision and quell potential negative reactions.

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  By testing example with different values for the inputs

The customers should come in at a steady rate by z number of seconds. There must be a max of customers that may come in as w.

  How many memory locations can be addressed

A computer system has a word addressable memory. Each word is 32 bits (4 bytes) wide, and sytem uses 24-bit addressing. How many memory locations can be addressed?

  To further investigate this weeks topics and to explain

to further investigate this weeks topics and to demonstrate your understanding of e-commerce as it relates to business

  Define the probability that the contention ends on round

Two CSMA/CD stations are each trying to transmit long (multiframe) files. After each frame is sent, they contend for the channel using the binary exponential backoff algorithm. What is the likely that the contention ends on round , for k What is t..

  Define the concept of normalization

In your own words, define the concept of normalization. What does normalization accomplish? What are the advantages of normalization? In general, how do you go about normalizing a relation.

  Implementing class diagram

Design a class diagram representing a book described by the following statement. “A book comprises of the number of parts that in turn are composed of the number of chapters.

  Implement an application that will hold the customer list

You will need to implement an application that will hold the customer list for Acme Anvil Supply. This list will be read from a file and stored in a binary tree.

  Is filename generation happen on variable assignment

Will the following command always rightly loop through each of the positional parameters?

  Create a singly linked list and a doubly linked list

Create a singly linked list and a doubly linked list with 20 elements in each one. You can chose any type of data you want to fill these but they must be pre-populated. for each type of linked list, swap 2 adjacent elements by adjusting only the l..

  Devise 7-bit even-parity hamming code for the digits 0 to 9

Devise a 7-bit even-parity Hamming code for the digits 0 to 9.

  Design a digital logic system that lights a lamp

button is presses if the a disk played is a hit and is not pressed if the disk played is a miss. plan a digital logic system that lights a lamp when a majority of the members think the disk is a hit.

  How to prepare some of its high-quality publications itself

how to prepare some of its high-quality publications itself

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