1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
artcher [175]
3 years ago
8

Write a program that has the user input how many classes they are taking this semester and then output how many hours they will

need to study each week. Assume that they need to study five hours per week for each class that they take.
Computers and Technology
2 answers:
NeTakaya3 years ago
8 0

wait i don't understand: "Write a program that has the user input how many classes they are taking this semester and then output how many hours they will need to study each week."

olya-2409 [2.1K]3 years ago
8 0

This is for Python

class_amt = int(input('Amount of Classes: '))

hours = class_amt * 5

print(f'You need to study for {hours} hours every week')

You might be interested in
Which of the following is an example of a logic error?
rusak2 [61]

Answer:

Receiving unexpected results from a program

Explanation:

Logic errors are due to the program not producing a desired result.

6 0
3 years ago
Read 2 more answers
For questions 1-3, consider the following code:
olga_2 [115]

Answer:

A and C

Explanation:

9 does not equal 8 so A

9 is not greater than 10 so no B

9 is less than 10 so C

9 ÷ 2 does not equal 1 so no D

6 0
3 years ago
Write a program whose inputs are three integers, and whose outputs are the largest of the three values and the smallest of the t
arlik [135]

Answer:

import java.util.*;

public class Main

{

public static void main(String[] args) {

    Scanner input = new Scanner(System.in);

    System.out.print("Enter the first number: ");

    int n1 = input.nextInt();

    System.out.print("Enter the second number: ");

    int n2 = input.nextInt();

    System.out.print("Enter the third number: ");

    int n3 = input.nextInt();

 System.out.println("largest: " + LargestNumber(n1, n2, n3));

 System.out.println("smallest: " + SmallestNumber(n1, n2, n3));

}

public static int LargestNumber(int num1, int num2, int num3){

    int largestNum = 0;

    if(num1>=num2 && num1>=num3)

        largestNum = num1;

    else if(num2>=num1 && num2>=num3)

        largestNum = num2;

    else if(num3>=num1 && num3>=num2)

        largestNum = num3;

       

    return largestNum;

}

public static int SmallestNumber(int num1, int num2, int num3){

    int smallestNum = 0;

    if(num1<=num2 && num1<=num3)

        smallestNum = num1;

    else if(num2<=num1 && num2<=num3)

        smallestNum = num2;

    else if(num3<=num1 && num3<=num2)

        smallestNum = num3;

       

    return smallestNum;

}

}

Explanation:

Create function called LargestNumber that takes three parameters, num1, num2, num3. Find the largest number using if else structure among them and return it. For example, if num1 is both greater than or equal to num2 and num3, then it is the largest one.

Create function called SmallestNumber that takes three parameters, num1, num2, num3. Find the smallest number using if else structure among them and return it. For example, if num1 is both smaller than or equal to num2 and num3, then it is the smallest one.

Inside the main, ask the user for the inputs. Call the functions and print the largest and smallest.

8 0
3 years ago
Bill downloaded an antivirus software from the Internet. Under the Uniform Commercial Code (UCC), the software is a: Select one:
stellarik [79]

Answer:

a. good

Explanation:

According to the Uniform Commercial Code (UCC), It deals with all the contracts that also involves the sale of the goods,

Here goods include those things or items that are movable in a nature and also consist of manufactured goods that are specialized in nature

Therefore, as per the given situation, the bill downloaded an antivirus software so here the software is treated as a good

3 0
4 years ago
You want to use Windows Update to update other Microsoft applications such as Office. Which of the following is true? Choose the
Aloiza [94]
I’m not 100% but I’m gonna say
A. No, you must use Office Update instead.
8 0
3 years ago
Read 2 more answers
Other questions:
  • What is one reason why private loans are less favorable than federal loans?
    8·2 answers
  • Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is 0.305 meters. INPUT and
    8·1 answer
  • I want to know all the part of computer system
    14·1 answer
  • A _______ is used to analyze and summarize your data without graphical support
    9·2 answers
  • It is vital to the organization and the success of the disaster recovery plan that the plan be thoroughly tested on a(n) _______
    5·1 answer
  • 1. Empty tags do not have ___________.
    14·1 answer
  • If you want to transfer information transform STM to LTM, it is essential that you make the information ______________________.
    9·1 answer
  • Key Categories: more libraries and thousands of functions
    5·1 answer
  • Al thecnology can do all the following except ​
    7·1 answer
  • You are working on a ticket for a user who cannot access the Internet from their PC. After troubleshooting, how do you confirm t
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!