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
uysha [10]
3 years ago
11

Given is the array prices with 100 elements(prices[100]). The problem consists of two parts: 1. Find the highest price in the ar

ray; and 2. Reduce that price by 10% For any three numbers input by the user, output the numbers in ascending order.
Computers and Technology
1 answer:
Scrat [10]3 years ago
4 0

Answer:

1. Input array of 100 numbers

mx = 0

for (int i = 0; i < 100; i++)

  if (arr[i] > mx)

      mx = arr[i]

Output mx

2. Input array of 100 numbers

mx = 0

for (int i = 0; i < 100; i++)

  if (arr[i] > mx)

      mx = arr[i]

mx = mx * 0.9

3. Input three numbers

if(firstNumber > secondNumber) {

swap(firstNumber, secondNumber)

}

if (firstNumber > thirdNumber) {

swap(firstNumber, thirdNumber)

}

if (secondNumber > thirdNumber) {

swap(secondNumber, thirdNumber)

}

output firstNumber, secondNumber, thirdNumber

Explanation:

You might be interested in
Universal Containers has strict security model enforced through object, field, and row-based security mechanisms. The Architect
PIT_PIT [208]

Answer:

Option A, B, and E is the correct options to the following question.

Explanation:

In the following question, some details are missing that is options of the question,

Because the Universal Containers is the corporation which wants to secure their security model that is tested through the using of the Apex automated test i.e., the platform that allow user to test due to secure their security model. So, that's why they follow the following considerations is true for testing the security model.

8 0
3 years ago
"If possible, always bring print-outs of your slides for your audience
taurus [48]
Why do I need a ty for me a couple days to
4 0
3 years ago
Read 2 more answers
Please!! I need help, this is due by tonight!!!
lyudmila [28]

Answer:

sorry if it is too late but I think it is d

Explanation:

4 0
3 years ago
Which operating system is used by most the supercomputer system in the world
DENIUS [597]

Answer:

Linux

Explanation:

Linux runs all of the top 500 supercomputers

3 0
2 years ago
Jane wants to add a chart to her presentation so she’ll click the Insert tab and in the Images group, she’ll click the Chart but
kap26 [50]

(A. Stevie only) because You need to go the illustrations tab in order to click on the chart button.

Jane clicked on images tab so she was wrong.

Mark as brainlest plz :)

3 0
3 years ago
Other questions:
  • For a panoramic photograph, you will more than likely want to control the exposure of the photograph yourself rather than lettin
    11·1 answer
  • This toolbar has icons representing the application's basic operations such as Save and Copy. Drawing Formatting Standard Task
    11·2 answers
  • The GaVS resource where students can locate information regarding Canvas, student email, registration and O365 is called the: St
    6·1 answer
  • Explain why the 7 bit standard ASCII code needs to have the highest bit set to a zero
    11·1 answer
  • There are n coins, each showing either heads or tails. We would like all the coins to show the same face. What is the minimum nu
    6·1 answer
  • A certain computer game is played between a human player and a computer-controlled player. Every time the computer-controlled pl
    8·1 answer
  • An assignment notebook works in conjunction with
    7·2 answers
  • Does anyone know the name of the font :) ?
    14·2 answers
  • Who wanna be besties
    8·2 answers
  • Write the names of different types of communication.​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!