Question: write the following in c++ Lab 3.1.1 Create a program with TWO functions. One will be main the other will contain the code below. Create
write the following in c++
Lab 3.1.1
Create a program with TWO functions. One will be main the other will contain the code below.
Create a void function called clove that prints out I love C++!
Save the program as lab1.cpp
Lab 3.1.2
Create a program with TWO functions. One will be main the other will contain the code below.
Create a function called first_name that asks the user to input their first name then print it out
Save the program as lab5_2.cpp
Lab 3.1.3
Create a program with THREE functions.
Create an IF statement in the main function that asks the user to input todays temperature. If the temperature is greater then 70 degrees the program will jump to a function called high_temp and print out that is hot!. If the temperature is under 70 the program will jump to a third function called low_temp and print out that is cool!.
You now have three functions: main, high_temp, and low_temp 1. Save the program as lab3.cpp
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
