Assignment is graded like any other assignment

Assignment Help Management Theories
Reference no: EM132263976

Although this assignment is graded like any other assignment (pass/fail), you should prepare to do it like you would the mini-exam; that is, with time limits (45 minutes) and without looking at other materials. (You will have to time yourself, there won't be a timer displayed.) This will be a good way for you to measure how prepared you are for the next mini-exam. You'll be able to try and re-try this assignment as many times as you need to in order to prepare for the mini-exam.

Ask the users for numbers until the total of the numbers is greater than 30. Also, count how many numbers are even and how many are odd.

For example:

Total is 0
Please enter an integer: 20
Total is 20
Please enter an integer: 7
Total is 27
Please enter an integer: 2
Total is 29
Please enter an integer: 1
Total is 30
Please enter an integer: 1
You had 2 even numbers and 3 odd numbers.

I've only been able to get this far:

#include <iostream>

#include <string>

using namespace std;

int main() {

  int total, n, counter;

  cout << "Total is 0" << endl;

  cout << "Please enter an integer: ";

  cin >> n;

  cout << n << endl;

  while ( total <= 30){

   total = 0;

   total = total + n;

   cout << "Total is " << total << endl;

}

 return 0;

}

Which is essentially nowhere. I need to understand how this problem is solved prior to my exam which will involve a similar problem.

Reference no: EM132263976

Questions Cloud

Create a proposal emphasizing the training process model : Create a training proposal for hourly employees, professional employees, and managers and to explain how it supports the company mission/strategy/key issues.
Find and list two web pages with e-mail links : Find and list two Web sites with links between pages on the same site (as opposed to links to external sites).
What must be done when disaster strikes : What must be done when disaster strikes? Who initiates the execution of the plan? Who decides when the disaster is over?
Why is a threat assessment so important to an organization : 1. Why is a threat assessment so important to an organization?
Assignment is graded like any other assignment : Although this assignment is graded like any other assignment (pass/fail), you should prepare to do it like you would the mini-exam; that is
The creation of a contingency requires every team : Many organisations predict the future and their marketing conditions that will affect their performances every day hence can develop a plan.
What would you change to improve the reliability : ECON 317 If you were to do this assignment again, what would you change to improve the reliability of your results? A summary of your investigation.
Write a Term Paper on Oracle Analytics Cloud : Assignment - Term Paper. Title: Oracle Analytics Cloud. Body of the Report - About Oracle Analytics Cloud: Some history of the system and Infrastructure
Security risks of data storage and retrieval types : Please tell me Compare and contrast the security risks of data storage and retrieval types.

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