Question: a) Write C++ program to solve any linear equation (first order), prompts the user to enter the slope and y-intercept. [Hint: y = mx +
a) Write C++ program to solve any linear equation (first order), prompts the user to enter the slope and y-intercept.
[Hint: y = mx + c]. No need for loops
b)Write C++ program that prompts the user to enter any positive integer number to compute the factorial of that number.
[Hint: The factorial of a number is the product of all integers up to and including that number (! number)].
[Hint: Use while loop].
c)Write a C++ code to read characters from the keyboard until a zero is read. Use a controlled while loop to find the number of nonzero characters read from the keyboard. Display the number found.
[Hint: Use cin.get() built in fuction].
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
