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
lbvjy [14]
3 years ago
13

Christina used the following expression to calculate the average ages of her three program users: average = age1 + age2 + age3 /

3 However, her output is not correct. What did she do wrong?
A.She did not use parentheses around the age values to indicate the proper order of operations.
B.She did not use quotation marks around the age values to indicate the proper order of operations.
C.She should have used the multiplication symbol instead of the division symbol.
D.She should have used a string function to perform the calculation.
Computers and Technology
2 answers:
aleksley [76]3 years ago
6 0
I am thinking it's A. Not so sure though.
Illusion [34]3 years ago
4 0

Only age3 is divided by 3. To calculate the average, you should first add the ages, then divide by the number of ages. This can be accomplished by adding parenthesis around the age values. Answer A is the correct one.

You might be interested in
Ben is creating a presentation on the causes and effects of World War II. On a slide, he organizes text across two columns and u
podryga [215]
Ben can use the "Appear" animation, but he has to make sure he sets the effect options to "By paragraph", otherwise all bullets appear at the same time. I'm sure Ben can figure that out.
7 0
3 years ago
Read 2 more answers
When describing scientific evidence, what is the meaning of the word “repeatable”?
Anvisha [2.4K]
Repeatable when talking about science means that the evidence and conclusions that have been considered in one study should be also possible to come to in another study.

In other words,

If study 1 finds result X, study 2 should also find result X. This means that the result is repeatable. 
5 0
4 years ago
____ memory is very fast memory circuitry located near the cpu that is used to speed up processing.
Nonamiya [84]
Cache memory is a very fast memory circuit located near the CPU that is used to speed up processing.
4 0
3 years ago
Read 2 more answers
Write a program that can print a banner with rotated letters, such that they can be read from top to bottom. Specifically, each
My name is Ann [436]

Answer:

package Lab6Problema;

import java.util.Scanner;

public class Lab6Problema{

public static void H() // prints H

{

System.out.println();

System.out.println("** **");

System.out.println("** **");

System.out.println("******");

System.out.println("** **");

System.out.println("** **");

}

 

public static void E()//prints E

{

System.out.println();

System.out.println("******");

System.out.println("** ");

System.out.println("******");

System.out.println("** ");

System.out.println("******");

}

 

public static void L()//prints L

{

System.out.println();

System.out.println("* ");

System.out.println("* ");

System.out.println("* ");

System.out.println("* ");

System.out.println("******");

}

 

public static void O()//prints O

{

System.out.println();

System.out.println("******");

System.out.println("* *");

System.out.println("* *");

System.out.println("* *");

System.out.println("******");

}

 

public static void W()//prints W

{

System.out.println();

System.out.println("* *");

System.out.println("* *");

System.out.println("* ** *");

System.out.println("* ** *");

System.out.println("** **");

}

 

public static void R()//prints R

{

System.out.println();

System.out.println("***** ");

System.out.println("** **");

System.out.println("***** ");

System.out.println("** **");

System.out.println("** **");

}

 

public static void D()//prints D

{

System.out.println();

System.out.println("**** ");

System.out.println("* * ");

System.out.println("* *");

System.out.println("** * ");

System.out.println("**** ");

}

public static void blank() //prints blank space

{

System.out.println();

System.out.println();

System.out.println();

}

public static void main(String[] args) {

//just enter "Hello World" as input as specified

System.out.println("Enter a Message");

Scanner scan=new Scanner(System.in);

String myMessage=scan.nextLine(); // read msg using scanner

int numOfCharacters=myMessage.length();// calculate message lenth

for(int i=0;i<numOfCharacters;i++) // loop through each chracter in msg

{

// gets character at position i, and switch accordingly

switch(myMessage.charAt(i))

{

// if character is 'H' or 'h', call method H(). Similarly for other

// Hecharacters in message.

case 'H':

case 'h':H();break;

case 'E':

case 'e':E();break;

case 'L':

case 'l':L();break;

case 'O':

case 'o':O();break;

case 'W':

case 'w':W();break;

case 'R':

case 'r':R();break;

case 'D':

case 'd':D();break;

case ' ':blank();break;

}

}

}

}

Explanation:

4 0
3 years ago
The function below takes two string parameters: sentence is a string containing a series of words separated by whitespace and le
postnew [5]

Answer:

Python 3 code used below

Explanation:

def word_extraction(sentence,letter)

  //splitting the sentence into individual words

  words=sentence.split()

  for word in words:

//This will take care of the word in lower

      if letter in word.lower():

         return word

  return ""

# Testing the function here. ignore/remove the code below if not required

print(extract_word_with_given_letter('hello HOW are you?', 'w'))

print(extract_word_with_given_letter('hello how are you?', 'w'))

4 0
3 years ago
Other questions:
  • _______ is a variation of phishing that uses voice communication technology to obtain the information the attacker is seeking.
    9·1 answer
  • Write an assembly language program with a loop and indexed addressing that calculates the sum of all the gaps between successive
    11·1 answer
  • The countryside presents
    11·1 answer
  • Write a program that uses an "if" statement to determine if the number is greater than one. If the number is greater than 1, the
    9·1 answer
  • Define a function below, sum_numeric_vals, which takes a single dictionary as a parameter. The dictionary has only strings for k
    12·1 answer
  • An online travel agency such as Travelocity is an example of a(n) _____.
    14·1 answer
  • Studios had to forgo the theatre business in the late_1__ because of the rising theatre rents and advertising costs. Television
    8·1 answer
  • ................. are used to summarize data (option) (a) report (b) action ​
    12·2 answers
  • P16 Consider the following network. ISP B provides national backbone service to regional ISP A. ISP C provides national backbone
    7·1 answer
  • Stephen is looking through some design diagrams created for a specific application. He spots a diagram which uses a parallelogra
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!