Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 to 3 c++ Finish as many of the programs listed here as possible during class. You should be able to complete at least 2

1 to 3 image text in transcribed
c++
Finish as many of the programs listed here as possible during class. You should be able to complete at least 2 programs. 1. Write a program that reads an unspecified number of values from the user. The program will output how many positive numbers and how many negative numbers were entered. The input from the user should stop when the user enters zero. 2. Write a program to play a subtraction game. The game should run as many times as the user desires (ask the user how many games to play at the beginning of the program). Each time the game runs, the user should be presented with a random subtraction problem, using positive integers. The computer should keep track of how many answers the user answered correctly and output that number at the end of the program. 3. Write a program to output a countdown from a number the user enters to 0. The countdown should take one second per number. So, it should print a number, wait a second, print the next number, wait a second, etc., until it gets to zero. HINT: Use "windows.h" and the Sleep(milliseconds) function. Activate NOTE: DO NOTuse arrays for any of these problemsil

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

LO4 Identify a system for controlling absenteeism.

Answered: 1 week ago