Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you help me with c++ Given integer homeworkTime, write multiple if statements: - If homeworkTime is greater than or equal to 32 , output
Can you help me with c++
Given integer homeworkTime, write multiple if statements: - If homeworkTime is greater than or equal to 32 , output "I can complete my homework." - If homeworkTime is greater than or equal to 53, output "I can finish my homework and have extra time." - If homeworkTime is less than or equal to 5, output "I don't have time to do my homework." End with a newline. Ex: If the input is 56 , then the output is: I can complete my homework. I can finish my homework and have extra time. \begin{tabular}{r|r} 1 & \#include \\ 2 & using namespace std; \\ 3 & \\ 4 & int main() \{ \\ 5 & int homeworkTime; \\ 6 & \\ 7 & cin >> homeworkTime; \\ 8 & \\ 9 & /* Your code goes here / \\ 10 & \\ 11 & return 0; \\ 12 & \} \end{tabular}Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started