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
____ [38]
4 years ago
15

Given two variables matric_age and grad_age, write a statement that makes the associated value of grad_age 4 more than that of m

atric_age.
Computers and Technology
1 answer:
bearhunter [10]4 years ago
8 0

Answer:

grad_age=matric_age+4

Explanation:

As mention in the question their are two variable matric_age and grad_age respectively .The grad_age variable store the value of 4 more than that of matric_age i.e (matric_age+4) means that it store the value 4 plus matric_age Suppose a matric_age is initialized with 4 then value of grad_age=4+4=8.

You might be interested in
Different units of CPU ?
deff fn [24]
The two typical components of a CPU include the following:<span>--The arithmetic logic unit (ALU), which performs arithmetic and logical operations. --<span>The control unit (CU), which extracts instructions from memory and decodes and executes them, calling on the ALU when necessary.</span></span>
3 0
3 years ago
Write a python program stored in file extra_credit.py that takes three different inputs from the user where : First Input: The p
LUCKY_DIMON [66]

Answer:

Check the explanation

Explanation:

print("************************************************************")

sentence = input("Enter a sentence : ").split()

replace_words = input("\nEnter the words that should be replaced : ").split()

special = input("\nEnter the replacing special Character : ")

result = []

for word in sentence:

   if word not in replace_words:

       result.append(word)

   else:

       result.append(special * len(word))

result = ' '.join(result)

print("\nThe Sentence with words censored is : " + result)

print("************************************************************")

4 0
3 years ago
Write a function called reverse() with this prototype:
tresset_1 [31]

Answer:

void reverse(char dest[], char source[], int size)

{

   for(int i=0;i<size;i++)//using for loop.

   {

       dest[i]=source[i];//assigning each element of source array to dest array.

   }

   int s=0,e=size-1;//initializing two elements s with 0 and e with size -1.

   while(s<e){

       char t=des[s];             //SWAPPING

       dest[s]=dest[e];            //SWAPPING

       dest[e]=t;                  //SWAPPING

       s++;

       e--;

   }

}

Explanation:

I have used while loop to reverse the array.I have initialize two integer variables s and e with 0 and size-1.Looping until s becomes greater than e.

It will work as follows:

first s=0 and e=0.

dest[0] will be swapped with dest[size-1]

then s=1 and e=size-2.

then des[1] will be swapped with dest[size-2]

and it will keep on going till s is less than e.

4 0
3 years ago
Which comparison operator means ‘is not equal to’?
SSSSS [86.1K]

Answer:

A. !=

Explanation:

== Means equal, != is like a block of that, meaning NOT EQUAL

5 0
3 years ago
How are IP addresses usually written?
maxonik [38]

Explanation:

There are two versions of Internet Protocol(IP) present in which the IP address are written which are IPv4 and IPv6.The numbers in IPv4 are 32 bit long while in IPv6 the numbers are 128 bits long.

So let's see IPv4 addresses

IP addresses are written in human readable form.There are 4 groups of 8 bits which represent the corresponding decimal numbers.These groups are separated by (.) .Since there are 8 bits hence the numbers range is 0-255.

for ex:-  124.45.65.210

There are 3 dots  the numbers are in the range of 0-255.There should be no leading zeroes present in the IP address.

4 0
4 years ago
Other questions:
  • Anna is looking for a job. Which two types of skills would she find necessary to secure a job?
    10·1 answer
  • An example of a primary collision factor is
    6·2 answers
  • 5
    9·1 answer
  • Quien quiera jugar fortnote en una hora y media o antes pase id
    12·1 answer
  • In GamePoints' constructor, assign teamWhales with 500 and teamLions with 500. #include using namespace std; class GamePoints {
    13·1 answer
  • The purpose of validating the results of the program is Group of answer choices To create a model of the program To determine if
    12·1 answer
  • Generally, websites ending in .edu, .gov, and .org are less likely to be biased, or to show preference toward a certain financia
    12·1 answer
  • When you begin creating a new powerpoint presentation, you need to select a ____.?
    13·1 answer
  • A browser allows you to set preferences for using the browser. These preferences include all of the following except
    7·1 answer
  • Peter took a selfie in his room. He was a wearing a light blue shirt. But he failed to realize that that shirt would clash in co
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!