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

  Writenbspa 700- to 1050-word paper discussing managerial

writenbspa 700- to 1050-word paper discussing managerial issues associated with managing an organizations is

  Questionwrite down a program which asks user to respond to

questionwrite down a program which asks user to respond to a question by entering either 1 for yes or 2 for no. use a

  Developing the sequential circuit

Develop a sequential circuit which can detect two or more consecutive 1's in a stream of the input bits. Specifically, if last two bits in sequence were 1, the circuit must output 1. Otherwise, it must output 0.

  Explain the functions of devices used for data

Explain the functions of devices used for data and signal transform, i.e. how the analog voice is converted to the digital or analog signals.

  What is the role or place of structured methodologies data

q1. what is the role or place of structured methodologies data and algorithms?q2. what differs between object-oriented

  Explain the impact of telecommuting on energy conservation

the number of american telecommuters is expected to increase by 29 million telecommuters or 43 of the workforce by 2016

  Create metadata entries for the data model components

Create metadata entries for the following data model components and, if possible, input the entries into a computer-aided software engineering (CASE) tool of your choosing:

  Create and develop a project to assign a letter grade

build and develop a project to assign a letter grade (A >= 90, B = [80..89], C = [70..79], D = [60..69], and F = [0..59]) to a student's Assignment based on a test score and other criteria.

  What legal arguments could be raised by sudson

What legal arguments could be raised by Sudson in support of the enforcement of the automatic renewal clause against Letisha and what ethical issues are raised, if any, by Sudson s practice of using the automatic renewal clause in their lease agr..

  Economic life of technology product

Explain what do you understand by the economic life of a technology product. Discuss how does economic life of the technology product is compared with the technology life and product life?

  Determine one protocol which works at the osi layer 2

suppose you are Dave Baker, the Senior System Administrator from Minnesota Consulting Group (MCG). The company with which MCG has an ongoing contract wishes to have some basic TCP/IP concepts explained to senior decision-makers.

  Explain how is the process that you followed similar to or

describe the steps you have taken to maintain and redesign your site over the past several weeks. how is the process

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