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

  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