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
Airida [17]
3 years ago
6

The following code does not work as intended. It is meant to input two test grades and return the average in decimal format: int

test1 = scan.nextInt(); int test2 = scan.nextInt(); double average = (test1 + test2 )/2; System.out.println("Answer: " + average);
Computers and Technology
1 answer:
yuradex [85]3 years ago
6 0

Answer:

To return average in Decimal we will use float datatype instead of double.

Explanation:

int test1 = scan.nextInt();

int test2 = scan.nextInt();

float average = (test1 + test2 )/2;

System.out.println("Answer: " + average);

You might be interested in
Ordering a mocha latte and paying for it from the starbucks smartphone app is using what type of internet commerce? (1 point) c2
beks73 [17]
The answer is mobile commerce

Mobile commerce or M-commerce is the transaction of goods and services through handheld devices like cellular phones and PDAs. It continues to grow by including purchase and sale of a huge range of products and services like online banking and information delivery. 

Simply, it is all about doing transactions through digital means.






5 0
4 years ago
Does anyone know what to do when brainly won't let you answer questions? I click on answer question and then it just sits there
sveticcg [70]

Answer:

That'll happen to me every once in a while. What you have to do is reload the page. If it still doesn't let you answer, try exiting out the page, and getting back on it with a new tab.

Hope this helps!!

8 0
3 years ago
Read 2 more answers
_________ is the biggest problem you can face if you don’t identify the scope of your risk management project. Scope creep Nonco
mart [117]

Answer: Scope creep

Explanation:

 Scope creep in the project management basically refers to the uncontrolled development or growth in the project creep. It basically occur when the project scope are not appropriately defined.

It usually involve lack of change in the control system and increase the complexity of the project. It is also has poor requirement analysis.

So, that is why it is the biggest problem we usually face in the project management.

5 0
3 years ago
What is the first step in creating a maintenance ?
tankabanditka [31]
The first step would be knowing the manufacturer s recommended schedule for maintenance
7 0
3 years ago
Write a program that inputs numbers and keeps a running sum. When the sum is greater than 100, output the sum as well as the cou
Eduardwww [97]
In python:
total = 0
i = 0
while total <= 100:
number = int(input("Enter a number: "))
i += 1
total += number
print("Sum: {}".format(total))
print("Numbers Entered: {}".format(i))
3 0
3 years ago
Other questions:
  • What are the two components that make up the chipset?
    15·1 answer
  • All web traffic is based on the ____________________ protocol.
    14·1 answer
  • For what tools such as USMT and Treanxition used?
    15·1 answer
  • 100BaseT network uses the TCP/IP protocol suite exclusively, and workstations on your network obtain addresses dynamically from
    6·1 answer
  • Answer ASAP and I'll give brainliest.
    10·2 answers
  • NAND is logically complete. Use only NAND gates to constructgate-level circuits that compute the
    7·1 answer
  • Which option is considered a part of the document that is used to collect specific and predefined information?
    7·1 answer
  • List the three control problems associated with competingprocesses and briefly define each.
    7·1 answer
  • What online server provides you space to store and launch your website?
    11·1 answer
  • What is the recipe for enchanting table?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!