Set i3 to the number of times through the loop

Assignment Help Management Theories
Reference no: EM132263910

How to do this program

Starting with the following C++ program:

#include <iostream>

using namespace std;

void main ()

{

unsigned long i1;

unsigned long i2;

unsigned long i3;

unsigned long i4;

_asm

{

}

cout << "results are "  << (unsigned long) i1 << ", "

<< (unsigned long) i2 << ", "

<< (unsigned long) i3 << ", "

<< (unsigned long) i4 << endl;

}

Set i1 and i2 to each have a value of 1.

Create a loop that will do the following for each iteration of the loop:

1)   Add 3 to i1 and store the result into i1;

2)   Multiply i2 by 3 and store the result into i2;

Terminate the loop if either i1 becomes greater than 100

OR

if both the following

are true: more than 15 iterations of the loop have occurred

AND

i2 has reached a

value of at least 999999.

After the loop terminates do the following:

1) Set i3 to the number of times through the loop

2) Set i4 to the remainder of i1 divided by i3

Reference no: EM132263910

Questions Cloud

How you use the p09 control objectives to organize : Explain how you use the P09 Control Objectives to organize identified IT risks, threats, and vulnerabilities so you can then manage
How are the replication costs monitored : How are the replication costs monitored? How frequently? What configuration changes might be needed and how frequently?
What best describes attack : A network admin has noticed that several machines on her network are infected with malware that is sending a flood of packets to a target external to the networ
Determine the variable type : When a programmer writes a variable definition but lets the compiler determine the variable type, which of the following is NOT true?
Set i3 to the number of times through the loop : 1) Set i3 to the number of times through the loop 2) Set i4 to the remainder of i1 divided by i3
Describe your it decision making : What in these areas is your organization doing right? What in these areas could your organization improve?
Which of the common core state standards for english : Which of the Common Core State Standards for English Language Arts for grade level K-5 might be a focus for this lesson, and why?
Determine the initial estimates of level : 201CEM Operational Research Techniques Assignment - Forecasting and Inventory control, Coventry University, UK. Determine the initial estimates of level
Discussion about the organizational weakness and a threat : How would one distinguish between an organizational weakness and a threat to the organization? Min 250 words main post-2 citations apa format.

Reviews

Write a Review

Management Theories Questions & Answers

  Learning in action

Learning contract proposal that will form the basis of your learning contract report.

  Change is the only constant

"Change is the only constant " Evaluate the different types of change that have occurred in Sony.

  How do advertisers try to use group influence

How do advertisers try to use group influence?  Will you find any specific examples and explain the relevant theory of group behavior and influence?

  Case study:saving sony

You have been appointed by Sony as a consultant on change management. Advise Sony on how they could implement the change by using the various theories of change you have learnt.

  How the stock market works

The purpose of this project is to help you to gain an understanding of how the stock market works and of the relationship between theory and practice.

  Find the optimal production quantities

Find not only the optimal production quantities, but also the optimal total cost.

  Describe the management process

Describe the management process and identify the skills required to manage business organizations.

  Case study : bert''s bonsai and aquatic sport museum

Case Study : Bert's Bonsai and Aquatic Sport Museum Prepare a knowledge management system.

  Knowledge management techniques

Demonstrate understanding of the many-sided nature of knowledge management

  Theory of transtheoretical model

Demonstrate understanding of the many-sided nature of knowledge management

  Write a paper on historical trends of management

Write a paper on Historical Trends of Management.

  Theory of reasoned action

Theory of Planned Behavior and Integrated Behaviors Model

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