Entries by admin

A C++ Program

A program that uses for loops to perform the following steps: Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum) Output all odd numbers between firstNum and secondNum Output the sum of all even numbers between firstNum and secondNum Output the numbers and their squares between 1 and […]

A calculator program that will add subtract multiply or d…

Design a calculator program that will add, subtract, multiply, or divide two numbers input by a user. Your program design should contain the following: The main menu of your program is to continue to prompt the user for an arithmetic choice until the user enters a sentinel value to quit the calculator program.