Are there any questions about homework or lecture material?
- Class example: create a program that converts feet to centimeters, which allows for multiple numbers to be input in one line.
- Write a program that can detect whether or not the inputted word is a word you don't like, and if it is, it will "bleep" out the word when it prints/returns.
- What does
char foo(int x)
mean? - Create a quadratic equation solver program from scratch that can be called by other functions and is readable, simple, clean, and efficient. Detect whether or not the roots will be real or imaginary BEFORE computation and report an error if imaginary.
- What needs to be try-catch for the previous functions? What errors should be thrown?
- Why is (with a vector named v)
v[v.size()]
a range error? - Correct the following code:
double ctok(double c)
{
int k = c + 273.15;
return int
}
int main()
{
double c = 0;
cin >> d;
double k = ctok("c");
Cout << k << '/n';
}