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

  Slect two principles for policy and standards development

1.principles for policy and standards development please respond to the following select two principles for policy and

  Find whether the year entered from the keyboard

create a C program to determine whether the year entered from the keyboard is a leap year. Display a message indicating whether the year is or is not a leap year.

  Design the hardware and software driver

Design the hardware and software driver that will implement a byte-wide data transfer from your processor to a peripheral device. Each transfer has to accompany by a strobe to deskew the data.

  Overview of company and client business case

What is your companys expertise and Ensure that the expertise matches the skill sets required for the business case you have chosen - Overview of Company and Client Business Case

  Description in the last episode of the mafghanistan trilogy

description in the last episode of the mafghanistan trilogy the mamerican forces invaded liberated mafghanistan in

  Comprise your recommendations as if you were the manager in

prepare a 1400 to 1750-word paper detailing how a new technology system should be implemented or introduced to a

  There are five factors to consider when assessing the

there are five factors to consider when assessing the growing impact of it in business firms both today and over the

  Illustrate the operation of count-sort on an array

Design an algorithm (pseudo code) that returns the SECOND largest key value of a Black-Red Tree. In addition, you can use diagrams to demonstrate that your algorithm make sense.

  What could be done to minimize such effects

What are some of the limitations or dangers you see in the use of AI technologies such as expert systems, virtual reality, and intelligent agents? What can be done to minimize such effects.

  Write java syntax that declares a 1d integer array

Write Java syntax that declares a 1D integer array. Instantiate and initialize the array from Q#1 with values: 5, 3, 5, 7,

  Why vista a better choice for home or office computing

Investigate net for information about some of the new features offered by Vista over previous operating systems or operating systems on other computing environments.

  How has the system installed by dtis helped integrate

how did the dtis crm team change the business process for dealing with abandoned vehicles in san francisco? how did

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