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
Bad White [126]
3 years ago
15

2.2 code practice

Computers and Technology
2 answers:
denis23 [38]3 years ago
7 0

Answer:

I have used Python Language for this question. Code

a = int(input("Enter first number: "))

b = int(input("Enter second number: "))

c = int(input("Enter third number: "))

print("The sum of these numbers is", a + b + c)

Explanation:

a, b and c are variables in the code. int is a command used to convert string into an integer(if possible). input is also a command. It is used to take input from the user. Whenever we make an input to take a number as a input it will be stored in a string not in an integer. The numbers/strings are stored in their variables. At last, I have used print function, which is used to print an integer or any string. To print the sum of numbers taken as input, I add them using their variables name, used in it. We can also give an integer and a string at same as a output by adding them. I know 2 ways to add an integer and a string. But, I have used the easy one for you in the code, and will explain that only. To add a string and an integer first you need to write print() function. Now, write write two quotes in the bracket of print function. Now, write the string you want in the quotes. After writing the string type one comma just after quotes, and type the number you want after comma. You can also write the integer before string by writing the number then comma and then string in quotes. You can also write more string or integer by typing comma then string/integer...

Definition of words I used in the explanation.

Variables: It is used to store any number, string, code etc. For example, a = 23. So, the variable <u>a</u> store the number 23, or b = "This is a string". So, the variable <u>b</u> stores the string etc.

String: It is stored as a sentence, or alphabet not as a number. For example, a = "This is a string", or b = "23". 23 is a number but, it is written between quotes that's why its not a number is a string.

If you have any doubt related my explanation, ask me in comment.

Elan Coil [88]3 years ago
4 0

this is for python correct?

You might be interested in
What is computer topology​
Nitella [24]

Answer:

In networking, topology refers to the layout of a computer network. ... Physical topology means the placement of the elements of the network, including the location of the devices or the layout of the cables. Logical topology maps the flow of data, regardless of the physical layout.

...hope it helps...

7 0
3 years ago
Read 2 more answers
Which wireless communication is typically limited to six feet of distance?
horrorfan [7]

Answer:

bluetooth

Explanation:

cause u need to ask Google

3 0
3 years ago
In a word processing program, the ribbon or menus contain the
lara31 [8.8K]

It contains the commands :)

7 0
4 years ago
Print "Censored' if userlnput contains the word "darn, else print userlnput. End with newline. Ex: If userinput is "That darn ca
sasho [114]

Answer:

The code is given below in Java with appropriate comments

Explanation:

//Import the input.

import java.util.Scanner;

class CensoredWords

{

    //Define the main method.

    public static void main(String args[ ])

    {

         //Define the variables.

         String userInput="" ;          

         //Define the scanner object

         Scanner scobj = new Scanner(System.in);

          //Accept the userInput.

         System.out.print("Enter String: ");

         userInput=scobj.nextLine();

         //Check if the input contains darn.

         //Print censored.

         if(userInput.toUpperCase().indexOf("DARN") != -1)

         System.out.printf("Censored");

         //IF the input does not contains darn

         //Print userInput.

         else

System.out.printf(userInput)

         return;

}

}

6 0
3 years ago
Security and protection as it relates to operating systems is grouped into four categories: Availability, Data integrity, Authen
Ivahew [28]

Answer:

The answer is "Confidentiality".

Explanation:

Data Security is also known as protection against unauthorized computer access, files, and pages through digital information protection. The protection of data also prevents data from bribery.  

  • It applies to both the security of data from unwanted entities being obtained.
  • It allows accessing sensitive data, which may be able to do so.
4 0
4 years ago
Other questions:
  • Which change signaled a musical progression toward rock and roll?
    14·1 answer
  • Which of the preventive strategies is described below: Violence often escalates. Behaviors like excessive complaing, hostility,
    10·1 answer
  • This loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop.
    14·2 answers
  • What are the five types of alignment in Word?
    12·2 answers
  • Stella is surfing the Internet to look for affordable apartments in New York City. Every time she clicks on a link to a webpage,
    9·1 answer
  • Copy the following code and run it. You should break it into the following 3 functions
    6·1 answer
  • How are computers 35 years ago and how are they presently and how are they going to be in the next 35 years
    9·1 answer
  • In this lab you will learn about the concept of Normal Forms for refining your database design. You will then apply the normaliz
    15·1 answer
  • Which statements are true? Select 4 options.
    9·1 answer
  • Type the correct answer in each box. Spell all words correctly, and use numerals instead of words for numbers. If necessary, use
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!