Write program that allows a student to practice subtraction

Assignment Help C/C++ Programming
Reference no: EM131971125

Problem 1 - Extend the pay program from Week 7 (PA 7-1) with while or do-while loop that asks the user if they want to continue. Allow both upper and lower case responses. When the processing of employees concludes, show the Total Number of Employees Processed, Total Gross Pay, Total Tax, and Total Net Pay (gross pay - taxes). Process at least 3 employees.

Problem 2 - Write a program that allows a student to practice subtraction. Tell the student when the answer is correct but allow them to try again if the answer is incorrect. Use random numbers in the range 0-100. Always subtract the smaller number from the larger. Use either a while or do-while loop.

Problem 3 - In mathematics the greatest common divisor (gcd) of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers evenly. For example, the gcd of 8 and 12 is 4. For this assignment write a program that has the user enter two integers, then displays the GCD of those numbers. Include either a while or do-while loop.

Problem 4 - In Assignment PA 7-2 you wrote a program that rolled a pair of dice. In that program you detemined whether the player won, lost, or was instructed to "roll again" after the first roll of a pair of dice Extend that program as follows - if the player was told to roll again after the first roll (if it was a 4,5,6,8,9,10), save that number, call it "the point". Now continue rolling until one of two things happen -

1. if the player rolls a 7 before rolling "the point" number again, the player loses and the turn is over; or

2. if the player matches "the point" before a 7 is rolled the player wins and the turn is over.

If any number besides a 7 or "the point" is rolled nothing happens and the player just keeps rolling. Tell the player if they won or lost, the results of each roll, and how many rolls it took to end that player's turn. You may have to review De Morgan's Laws to get your while or do-while loop to work correctly! Show the number of rolls as shown in attachment.

Reference no: EM131971125

Questions Cloud

What is the expected return on the equity of an otherwise : Locomotive Corporation is planning to repurchase part of its common stock by issuing corporate debt.
How is antigone an example of a feminist play : How is Antigone an example of a feminist play? How is Trifles an example of a feminist play? How does each play utilize this theme?
Does the report you have disclose the rating of each debt : Do you think the information presented in the report would help you decide if you would invest in additional tax-supported debt of the entity? Would you?
Justify how you will collect and value the health outcomes : HSH 719 Economic Evaluation - Explain how you will value each of your resource inputs in your economic evaluation and Explain and justify how you will collect
Write program that allows a student to practice subtraction : Write a program that allows a student to practice subtraction. Tell the student when answer is correct but allow them to try again if the answer is incorrect
Patient diagnosed with terminal cancer : As a nurse how do you discuss end of life care to the family with a patient diagnosed with terminal cancer?
Measurement methods measures are used in research study : Which ones of these questionnaires, scales, or other measurement methods measures are used in this research study?
Calculate what should the companys stock price be now : Suppose that your analyst made a mistake, and the beta of the stock is actually 1.2. What should the company's stock price be now?
Various consumer health informatics applications : Distinguish key features as well as relative advantages and disadvantages between various consumer health informatics applications.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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