179k views
4 votes
Write a program that inputs the number of hours you are taking this semester and outputs how much time outside of class you should spend studying. (Hint: every 1 credit hour = 2-3 hours spent outside of class).

User KillianGDK
by
4.9k points

2 Answers

4 votes

If you were looking for the answer to this

A student is studying for a social studies test, and he is also writing a paper and reading a novel for his language arts class. Which statement represents a well-written SMART goal that the student has written for himself for one study session?

Spend time studying for social studies and language arts by the end of the semester.

Spend time today on social studies, and spend time tomorrow on language arts.

Spend one hour reviewing chapter six for social studies, one hour writing the paper, and four hours reading the novel.

Spend 30 minutes reviewing section one of chapter six for social studies, one hour writing an outline for language arts, and 30 minutes reading the novel by 9 p.m. today.

The answer is D :)

Because when you look up this question this one pops up so im posting this so people can find the answer.

User Jimmar
by
4.1k points
6 votes

Answer:

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

// variables

int a,b,c;

//ask to enter semester hours

cout<<"Enter the number of hours in the semester:";

// read the semester hours

cin>>a;

//print the semester hours

cout<<"You have taken "<<a<<" hours in semester."<<endl;

// find the time spend outside of the class

b=a*2;

c=a*3;

// print the time outside class

cout<<"you should spend "<<b<<"-"<<c<<" hours outside of class"<<endl;

return 0;

}

Step-by-step explanation:

Read the hours taken in the semester from user and assign it to "a".

Then find its 2 and 3 time.This will be the time user should spend outside

of the class.

Output:

Enter the number of hours in the semester:15

You have taken 15 hours in semester.

you should spend 30-45 hours outside of class

User IftekharDani
by
5.0k points