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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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