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
kozerog [31]
3 years ago
7

Write a C++ program that would take 10 integers and outputs mean, median, and range. Create at least three functions: one for so

rting numbers, one for finding mean, and one for finding median and range. Use these functions in your program. Use arrays for input numbers. Example input/output is shown below. [Hint: Use globally defined one - dimensional array] (30 Points) Input: 1246789472 Output: 558
Computers and Technology
1 answer:
Ksenya-84 [330]3 years ago
5 0
Yes c is correct because yeah i said so
You might be interested in
Open design would seem to favor the attacker, because it certainly opens the implementation and perhaps also the design for the
Naddika [18.5K]

Answer:

Explanation:

Open  design  allows  for  much  closer  inspection  of  the  security  system—more  awareness  of  the  security  practices  in  place  is  more  likely  to  reveal  vulnerabilities  to  enable  resolving  those  vulnerabilities  rather  than  their  exploitation.  Obscurity  is  an  insufficient  security  mechanism,  open  design  allows  a  more  thorough  inspection,  and  knowing  that  a  design  will  be  open  should  make  designers  more  careful

4 0
4 years ago
Write a program to move the Turtle based on the user’s request. Display a menu with options for the user to choose. Use the foll
Strike441 [17]

Answer:

#import turtle

import turtle

 

# set screen

Screen = turtle.Turtle()

 

# decide colors

cir= ['red','green','blue','yellow','purple']

 

# decide pensize

turtle.pensize(4)

 

# Draw star pattern

turtle.penup()

turtle.setpos(-90,30)

turtle.pendown()

for i in range(5):

   turtle.pencolor(cir[i])

   turtle.forward(200)

   turtle.right(144)

 

turtle.penup()

turtle.setpos(80,-140)

turtle.pendown()

 

# choose pen color

turtle.pencolor("Black")

# importing turtle module

import turtle

 

# number of sides

n = 10

 

# creating instance of turtle

pen = turtle.Turtle()

 

# loop to draw a side

for i in range(n):

   # drawing side of  

   # length i*10

   pen.forward(i * 10)

 

   # changing direction of pen  

   # by 144 degree in clockwise

   pen.right(144)

 

# closing the instance

turtle.done()

turtle.done()

Explanation:

7 0
2 years ago
C++ Problem: In the bin packing problem, items of different weights (or sizes) must be packed into a finite number of bins each
ipn [44]

xekksksksksgBcjqixjdaj

4 0
4 years ago
In understanding "controlling for" a third variable, which of the following is a similar concept? a. Conducting a replication b.
nordsb [41]

Answer:

D) Identifying Subgroups

Explanation:

In data Analytics, a third variable also known as a confounding variable, is a variable that "sits in-between", it has influence on both the independent variable and dependent variable. If this "third variable" is not properly handled, the result of the anlysis will yeild incorrect values. identifying subgroups in a dataset is important for undertanding it

7 0
3 years ago
1. Write a bash script to create 3 files of different size greater than 1700 kb and less than 1800 kb . The 2. Content of the fi
Mazyrski [523]

Answer:

See explaination

Explanation:

Bash Script:

#!/bin/bash

echo "Creating files a.txt, b.txt, c.txt..."

#1

# Create a random number between 1700 to 1800. This is the Kb we are looking for

# And then multiply by 1000 (1Kb = 1000 bytes)

r=$(( ($RANDOM % 100 + 1700) * 1000 ))

# head -c specifies the number of chars to read from the input,

# which is /dev/urandom stream in this case.

# Ideally we should have just used r*1000 to specify number of bytes,

# but since we are pipelining it to base64 to get text chars,

# this conversion will happen in the ratio of 4/3.

head -c $r /dev/urandom | base64 > a.txt

# Hence, we trunctate the file to the exact (random number we generated * 1000) bytes

truncate -s $r a.txt

r=$(( ($RANDOM % 100 + 1700) * 1000 ));

head -c $r /dev/urandom | base64 > b.txt

truncate -s $r b.txt

r=$(( ($RANDOM % 100 + 1700) * 1000 ));

head -c $r /dev/urandom | base64 > c.txt

truncate -s $r c.txt

#3 Use tar command to create all_three.tar from a.txt, b.txt, c.txt

tar -cf all_three.tar a.txt b.txt c.txt

echo $(stat -c "%n: %s" all_three.tar)

#4 Gzip a.txt into a.gz (without deleting the original file) and so on

gzip -c a.txt > a.gz

gzip -c b.txt > b.gz

gzip -c c.txt > c.gz

echo $(stat -c "%n: %s " a.gz b.gz c.gz)

#5 Gzip a.txt, b.txt, c.txt into all_three.gz

gzip -c a.txt b.txt c.txt > all_three.gz

echo $(stat -c "%n: %s" all_three.gz)

#6 Gzip the all_three.tar we created in #3

gzip -c all_three.tar > all_three.tar.gz

echo $(stat -c "%n: %s" all_three.tar.gz)

# Check all files we created with ls command sorted by time in ascending order

ls -ltr a.txt b.txt c.txt all_three.tar a.gz b.gz c.gz all_three.gz all_three.tar.gz

4 0
3 years ago
Other questions:
  • Materials that allow electricity to flow are called A) Metals B) Attractors C) Conductors D) Insulators
    11·2 answers
  • A fitness tracker can be classified as a wearable computer. true
    9·1 answer
  • Which signal types are represented by a continuous wave form?
    11·1 answer
  • Why is important to maintain a naming convention within the company that is developing computer programs?
    6·1 answer
  • The running time of Algorithm A is (1/4) n2+ 1300, and the running time of another Algorithm B for solving the same problem is 1
    6·1 answer
  • What are the methods of identifying publicly switched networks?
    14·1 answer
  • What is the difference between requirements and controls in the security process? Give examples of each.
    11·1 answer
  • In the context of wireless signal propagation, the phenomenon that occurs when an electromagnetic wave encounters an obstruction
    14·1 answer
  • Plz answer me will mark as brainliest​
    13·1 answer
  • What time is it NOW??
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!