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
A disadvantage of online surveys is that _________. a. it is difficult to access large numbers of potential respondents. b. they
Minchanka [31]

Answer:

B seems like the best answer to me.

Explanation:

7 0
3 years ago
Select the correct answer.
Veronika [31]
I think it’s c. llS....
6 0
3 years ago
Read 2 more answers
An online game is played with two dice. In this context, explain what is meant by decomposition
Hunter-Best [27]
You want to throw 2 dice and get (or show?) their value.
    Their value is random, so you need to generate two numbers between 1 & 6.
    You may need to display the numbers
    The main part of the program needs to know the numbers to limit what the user may do next.


That's most of the first level of decomposition. You need to keep decomposing (breaking into smaller simpler pieces) (think of an outline) and deciding what objects, functions, data structures and logic you're going to use to code this.
8 0
3 years ago
QUESTION 7
marishachu [46]
False, it needs to be properly cited because that is plagiarism which is illegal
6 0
3 years ago
Technically a coding question utilizing python how would one calculate a square root
WITCHER [35]

Answer:

import math

math.sqrt( x )

Explanation:

The basic code that can be written to calculate the square root of a number is as follows

import math

math.sqrt( x )

5 0
3 years ago
Other questions:
  • PLEASE HELP!!!!!!!!!!!
    7·1 answer
  • What are the disadvantages of cloud computing?
    9·1 answer
  • Ruth knows the name of a presentation file and the folder it's in, but there are many files in that folder. How can Ruth quickly
    8·1 answer
  • What can you say about the following Java class definition?
    10·1 answer
  • Which of the following is a proper use of the application NetStumbler?Which of the following is a proper use of the application
    10·2 answers
  • Which of these is a formatting option that you can use to enhance your text document?
    5·2 answers
  • “Artificial intelligence is the tool of education in the near future”. Research on the possibility of “AI technology” in scienti
    15·1 answer
  • Which MLA web source citations are formatted correctly? Check all that apply.
    6·2 answers
  • Write down a scratch program which:
    5·1 answer
  • Given the following class: Create a class MyGenerator that can be used in the below main method.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!