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
Y_Kistochka [10]
3 years ago
5

Write statements that output variable numMugs as follows. End with a newline. Ex: If numMugs is 10, the program should output: N

umber of mugs: 10 Our system will automatically run your program several times, trying different input values to ensure your program works for any input values.
Computers and Technology
1 answer:
baherus [9]3 years ago
3 0

Answer:

numMugs=input(); #take input from the user and store it on a numMugs variable.

print ('Number of mugs:'+numMugs) #print the numMugs variable value with the Number of mugs: line.

Output:

  • If the input is 8 then the program is print Number of mugs: 8.
  • If the input is 'Harry' then the program is print Number of mugs: Harry.

Explanation:

  • The above program is in python language with the two statements one in input and the other is output.
  • The first line takes input and stores it into a variable named "numMugs".
  • The second line print the value as Number of mugs: value_of_numMugs.
  • The above program works for any type of input. It can work for the string data type or integer data type or character data type or any other data type.
You might be interested in
Define a structure Triangle that contains three Point members. Write a function that computes the perimeter of a Triangle . Writ
qwelly [4]

Answer:

The program in C++ is as follows:

#include <iostream>    

using namespace std;

int perimeter(int side1, int side2, int side3){

return side1+side2+side3;

}

struct Triangle  {

int side1;  int side2;   int side3;

};

int main(void) {

int side1, side2, side3;

cout<<"Sides of the triangle: ";

cin>>side1>>side2>>side3;

struct Triangle T;

T.side1 = side1;

T.side2 = side2;

T.side3 = side3;  

cout << "Perimeter: " << perimeter(T.side1,T.side2,T.side3) << endl;

return 0;

}

Explanation:

See attachment for complete code where comments are as explanation

Download cpp
7 0
3 years ago
Where can students quickly locate a list of current classes?
Olenka [21]
In the front office or if your school has student vue it would be on the first page if online school just scroll down to classes
4 0
3 years ago
Which element is the first thing you should complete when making a movie?
AlekseyPX

Answer:

storyboard!!!

Explanation:

its important to have the concept in mind before starting

6 0
3 years ago
Read 2 more answers
true or false then EXPLAIN why. Since many forms of money do not earn interest, people's demand for money is unaffected by chang
katrin [286]

Answer:

False

Explanation:

It is true that many forms of money do not earn interest. However, it is not true that this means that people's demand for money is unaffected by changes in interest rates. One of the ways interest rates can change the demand for money is because this can influence the way people divide their money. When a person has money, he can decide whether to keep this in teh form of money, or whether to keep wealth through another asset. When interest rates decrease, people are more likely to keep money in the form of money, as opposed to other assets. This is the source of the demand for money.

3 0
3 years ago
Read 2 more answers
What type of open source programming language is python
Vlada [557]

Answer:

Python is developed under an OSI-approved open source license, making it freely usable and distributable, even for commercial use. Python's license is administered by the Python Software Foundation.

Explanation:

g00gle

3 0
2 years ago
Other questions:
  • As you're helping a user configure her e-mail over the phone, she remarks that the IP address is different than it was when she
    6·1 answer
  • What keyboard combination can you use to open the windows tool context menu, which contains options such as power options and di
    5·1 answer
  • Any one of the languages that people have designed for specific purposes, such as representing mathematical ideas or computer pr
    15·1 answer
  • How do you double space on microsoft word?
    5·1 answer
  • The mathematical constant Pi is an irrational number with value approximately 3.1415928... The precise value of this constant ca
    12·1 answer
  • You’re having trouble connecting to the Internet so you call your Internet service provider for help. They need to know the perm
    15·1 answer
  • Why do Selection Sort and Insertion Sort’s outer loops run 11 iterations if there are 12 elements in the array?
    7·1 answer
  • Pls awnser if awnser is wrong I will unmark brainliest
    5·1 answer
  • Analyze the error in the html code :<br><br> HTML
    9·1 answer
  • How do you get lugia in pokemon alpha saphire
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!