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
Furkat [3]
4 years ago
11

Write a function named get_my_age that returns your age as an int (this is YOUR age, so if you were 21 you would return the numb

er 21). Note that this function takes no arguments and no input from the user. Call the function once and print the result. Reflect on the difference between creating a variable with a constant value and creating a function with no arguments that returns a constant return value.
Computers and Technology
1 answer:
d1i1m1o1n [39]4 years ago
5 0

Answer:

<em>The programming language is not stated; However, I'll answer this question using 2 programming languages (Python and C++)</em>

<em></em>

<em>Comments are used for explanatory purpose </em>

Python program starts here

def get_my_age():  #Declare function

      age = 21  #Assign value to age

      print(age)  #Print age

get_my_age() #Call function

#End of Program

C++ Programming Language starts here

#include<iostream>

using namespace std;

int get_my_age() //Declare Function

{

int age = 21; //Assign value to age

cout<<age; //Print age

}

int main()

{

get_my_age(); //Call Function

return 0;

}

You might be interested in
What are the programs in a computer​
stealth61 [152]

Answer:

Computer skills examples

Operating systems  

Office suites  

Presentation software

Spreadsheets  

Accounting software

Explanation:

A program is a set of ordered operations for a computer to do in computing. The program in the modern computer described by John von Neumann in 1945 has a one-at-a-time series of instructions that the computer follows. Typically, the application is saved in a computer-accessible storage location.

4 0
3 years ago
Do you believe that OOP should be phased out and we should start working on some alternative(s)?
AlekseyPX

Answer:

Explanation:

The OOP or object-oriented programming can be used in day to day situations, and can be more simple to understand for the programmer and for the user, for beginners is easier to learn with a visual interface, and even we can improve our imagination with objects, colors and aesthetic models, we can reuse, and we have a structure to hide our code, OOP It is not an obsolete technology yet.

5 0
4 years ago
_______ is used to transmit high-bandwidth digital data over telephone lines.
slava [35]

A DSL is used to transmit high-bandwidth digital data over telephone lines.

<h3>What device is used to transmit data over telephone line?</h3>

DSL is known to be a kind of a technology that is made for high-speed network or is one that is used via Internet access over voice lines.

Therefore, A DSL is used to transmit high-bandwidth digital data over telephone lines.

Learn more about modem from

brainly.com/question/7320816

#SPJ11

7 0
2 years ago
Give a recursive implementation for the function: def is_sorted(lst, low, high) This function is given a list of numbers, lst, a
vaieri [72.5K]

Answer:

# recursive method to find if list is in ascending order

def is_sorted(list, low, high):

   if low >= high:     # if reached end of list

       return True

   if list[low] > list[low+1]:     # if item at low is greater than low+1

       return False                # return false

   return True and is_sorted(list, low+1, high)    # or return True and recursion call to low+1

Explanation:

7 0
3 years ago
Bitcoin is a(n) _____ application that lets any computer with the application act as a client or server to other computers also
vagabundo [1.1K]
Virtual token or currency

Hope this helps.
8 0
3 years ago
Other questions:
  • What at some advantages of creating a powerpoint?
    9·1 answer
  • The isometric projection camera technique provides an illusion of perspective by using things like parallax scrolling to create
    10·1 answer
  • In what year was the first mobile phone produced?
    15·1 answer
  • 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
  • Write a Twitter class that sets the Twitter user first (who is to be followed) and lets the client add up to 5 followers, which
    8·1 answer
  • During the _____ of the systems development life cycle (SDLC), an information system is operating, enhancements and modification
    9·1 answer
  • The concept of the internet was developed by the u.s. department of defense as a network that ________ in event of an attack.
    8·1 answer
  • Write a script called fact.sh that is located in your workspace directory to calculate the factorial of a number n; where n is a
    14·1 answer
  • Por que se dice que las TIC´S son las integracion de las TI y las TC?
    6·1 answer
  • How has 5G become more energy efficient?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!