When can you use which type of loop

Assignment Help Computer Engineering
Reference no: EM13867797

1) Describe the difference between a "for" and a "while" loop.

When can you use which type of loop?

When can you not use a "for" loop?

2) Chapra - Chapter 12 - Problem 12.1(a)

The code MsgBox displays the variable following MsgBox in a message box (you do not need to use a MsgBox). Work through the problem by hand and then you may check your work using a computer. To demonstrate that you understand loops, rewrite the program using a "while" loop as presented in the VBA handout. Draw a flow chart of your program. Be sure to comment / annotate the lines of
your code so that TA's can award credit for your work.

3) Chapra - Chapter 12 - Problem 12.7 in VBA.

You may use either a recursive function or subroutine to accomplish the problem. Draw a flow chart for your program. Be sure to comment / annotate the lines of your code so that TA's can award credit for your work.

4) Create a program that prompts the user to enter a scalar value for the outside air temperature. If the temperature is equal to or above 80°F, send a message to the command window telling the user to wear shorts. If the temperature is between 60°F and 80°F send a message to the command window telling the user that it is a beautiful day. If the temperature is equal to or below 60°F, send a message to the command window telling the user to wear a jacket or coat. (Adapted from Problem 8.12 of Moore, H., MATLAB for Engineers, 2nd Edition, Prentice Hall, 2009). Create this program in both VBA using "if" and "case" structures in each. When should each structure ("if" and "case") be used?

Reference no: EM13867797

Questions Cloud

In the circular flow model consumers : In the circular flow model, consumers
What is the level of measurement of the two variables : What is the level of measurement of the two variables? What is the above table called? Does the evidence in the table suggest men are more likely to order dessert than women? Explain why.
Example of fluid dynamics : 1) Give a common everyday example of fluid dynamics.
Summarize the content of the article : Article- Giving to the Good and the Needy: Parental Support of Grown Children. Summarize the content of the article. You may have to read the article more than once to do this. In your own words, explain what the article is addressing and how the ..
When can you use which type of loop : 1) Describe the difference between a "for" and a "while" loop. When can you use which type of loop?
Explain your concept for a hole including the theme : How will you address each of the project constraints outlined in the project document - Explain your concept for a hole including the "theme".
Analysis of engineering problems : 1. Code programs using MATLAB 2. Apply MATLAB and Simulink to aid the analysis of engineering problems An LRC circuit is shown in Fig.1.
What is your assessment of amazon evaluation policies : Case - Inside Amazon: Wrestling Big Ideas in a Bruising Workplace. Question- "What is your assessment of Amazon's evaluation policies and culture? Is it sustainable
Describe the number of patients served at the three location : Describe the number of patients served at the three locations each day. What are the maximum and minimum numbers of patients served at each of the locations?

Reviews

Write a Review

Computer Engineering Questions & Answers

  How des operating on a general plaintext input

find out whether or not the assertion is true and if it is, prove that it is. If it is not, prove that it is not.

  Questionsql queriesdownload stovesaccdb access database in

questionsql queriesdownload stoves.accdb access database in doc sharing it has following tables filled with

  Questionmake a simple game where the gorillarobot animals

questionmake a simple game where the gorillarobot animals wants to play with other animals. if the player clicks on an

  Assembly program to find out the price of a car rental

Write down an Assembly program in order to find out the price of a car rental. The car being rented costs $45 per day and frequent renters get a $15 discount on the total bill.

  What are the major data structures used in rdbms

What are the major data structures used in the following areas : RDBMS, Network data model & Hierarchical data model. If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

  Find which statement is true and which statement is false

Two cells within a Karnaugh map are adjacent if only one variable is different between the coordinates of the two cells - Find which statement is true and which statement is false.

  Digital technique for transmission of voice-telephone system

State four benefits and one de-merits of utilizing the digital (rather than analog) techniques for transmission of the voice-telephone signals.

  Facilitate requirement elicitation, specification

What process or tools are you familiar with that facilitate requirements elicitation, specification and decomposition?

  Explain the evolution of machine language

consider the evolution of machine language from generation one to fifth generation programming language. Also Explain what you think about the future of programming language?

  I want design circuit this bufferlifo this blocking is for

i want design circuit this bufferlifo. this blocking is for fifo memory but i want design circuit buffer last-in

  Analyze security requirements and develop a security policy

analyze security requirements and develop a security policy that fully addresses them. the project will enable the

  Question1 prove that it is impossible to extend a

question1. prove that it is impossible to extend a comparison-based implementation of the priority queue adt in which

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