ECE 1574 Test 1b

ECE 1574 Test 1b - remainder is zero. 6-The user shall be...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 1574 Test 1B Name:__________________________________________________ Spring 2008 Develop a program that meets the following requirements. 1-Requests that three integer values be entered by the user which shall be referred to by the program as: Min value Max value Divisor. 2-If the minimum value is greater than or equal to the maximum value, the program shall output an error message and request new values. 3-If the user enters 1 for the divisor, then the program shall output an error message and request new values. 4-If the user enters 0 for the divisor, then the program shall output an error message and request new values. 5-The program shall count the number of integers greater than or equal to the minimum value and less than or equal to the maximum value such that when they are divided by the divisor the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: remainder is zero. 6-The user shall be able to run as many calculations as desired without leaving the program. 7-For each calculation performed, the program shall write the results to a file named results.dat. Each row in the file shall list in the following order the minimum value, the maximum value, the divisor, and the count. 8-To perform the calculation the user shall input the word solve. When the user enters the word exit, the program shall end. Upload your cpp file solution to the Test 1 link on Blackboard Honor Code Statement: I have neither given nor received aid on this test. Signature: ________________________________________________________...
View Full Document

Page1 / 2

ECE 1574 Test 1b - remainder is zero. 6-The user shall be...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online