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

  Explain a minimum of three 3 heuristics to optimize the

your supervisors and customers are very impressed with the database you have put together. however there is still that

  Merging using this process

Merging is the mehood of combining two sorted lists into a single sorted list. In some cases, one list can be appended to the other, and the new list then can be sorted. Merging using this method, though, is not always the most efficient.

  A shows a commutator diagram to describe time division

a. shows a commutator diagram to describe time division multiplexing. sketch the multiplexed signal over the range 0 to

  Develop a marie program that will input a variable number

Develop a MARIE program that will input a variable number of user entered Decimal whole number grades, validating each one (0-100) in a subroutine. If the input is invalid just terminate the input loop.

  Explain how has the configuration for connecting

how has the configuration for connecting inputoutput io devices to computers on the motherboard changed since the late

  Create constructors use the same exception handling

Date objects must store the date in two int instance variables: day and month, and it has to include the String instance variable, error, initialized with null.

  Questiona bank has its head office in stoke it has two

questiona bank has its head office in stoke. it has two branches one in longton and other in burslem. each customer

  Developing ways to support every applications

List some of the ways which we may guarantee that the majority of our target audience may play our applications.

  Produce the result as the user instructed on the screen

Produce the result as the user instructed on the screen with appropriate messages.

  Find three separate on-line resources for perl

How might any or all of the resources you've cited help solve the problem mentioned in step 1 of this assignment?

  Draw a behavioral state machine diagram

Draw a behavioral state machine diagram that describes the various states that a travel authorization can have through its approval process. A travel authorization form is used in most companies to approve travel expenses for employees.

  Write a script using vim editor

Write a script using vim editor. The script should display the path to your homedirectory and the terminal type that you are using.

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