Answered step by step
Verified Expert Solution
Link Copied!

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++

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+How should it be delivered?

Answered: 1 week ago

Question

=+4 How does one acquire a global mindset?

Answered: 1 week ago