Write three statements to print the first three elements of vector runTimes. Follow each with a newline. Ex: If runTimes = {800, 775, 790, 805, 808}, print:

Answers

Answer 1

Answer:

Following are the code to this question:

#include <stdio.h>//defining header file

int main()//defining main method

{

   int runTimes[] = {800, 775, 790, 805, 808};//defining array of integers

   for(int k=0;k<3;k++)//defining for loop for print value

   {

       printf("%d\n",runTimes[k]);//print value with a new line

   }

   return 0;

}

Output:

800

775

790

Explanation:

In the above-given C language code, an array "runTimes" is defined, which holds the number of integer values.

In the next step, a for loop is defined, which uses the "k" variable, which starts from 0 and ends when its value is less than 3.

In the for loop, it uses the print method with "\n", that prints the array value in the new line.


Related Questions

______________ is a pre-designed format to help users with the creation of a document, like a flyer, brochures, or resumes. What's the answer for the blank?

A.PowerPoint
B.Excel
C.Template
D.Pie Chart

Answers

The answer should be Template

DO NOW
1. What are the 4 things that make a computer a
computer?

Answers

Answer:

CPU, GPU, Hard drive, Video Card

Explanation:

Which of the following represents a backup system that will aid in recovery for any type of disaster or disruption?

Transfer operations
Integrity operations
Redundancy operations
Independent operations

Answers

Answer: redundancy operations

Explanation:

Please Help Me
If you had an acer chrombook and it was family linked you had two accounts on it. (The administrater which is the family linked account and a school account) and you forgot the original password to the account how do you completely reboot the computer and start all over again.Like completely reboot like its new.

Answers

Answer:

Sign out of your Chromebook.

Press and hold Ctrl + Alt + Shift + r.

Select Restart.

In the box that appears, select Powerwash. Continue.

Follow the steps that appear and sign in with your Google Account. ...

Once you've reset your Chromebook:

Explanation:

Hope this helps. :)

why do many experts recommand longer time horizonal if you are doing high risk investment

Answers

Answer:In general, the longer your time horizon, the better you can handle fluctuations in value and take more risk in order to reap greater rewards.

Explanation:

What are the requirements to access email on the web?

A. a webmail provider's URL and a password
B. a webmail provider's URL a username and a password
C. a credit or debit card, a username, and a password
D. an email server ID and a password

Answers

Answer:

it's B

Explanation:

You need to have a provider (such as outlook) and a username/password

It’s either A or D u Choose now

PLS WILL GIVE BRAINLEST What eventually led to the abandonment of Jamestown?

malaria-carrying mosquitoes
a civil war
riots started by slaves
famine

Answers

Answer:

famine is the answer I believe

Answer:

D. Famine

Explanation:

Sir Thomas Gates, the newly named governor, found Jamestown in shambles with the palisades of the fort torn down, gates off their hinges, and food stores running low. The decision was made to abandon the settlement.

Question #3
Multiple Select
Which statements are true about a user-defined data type? Select 3 options.
It can only include one data type.
I
It can include bool data.
It cannot be changed once you define it.
It can include string data.
O It can include numeric data,

Answers

An attribute of a piece of data known as a “data type” instructs a computer system how to interpret that data's value.

What are the different type data type and their uses?

Data is categorized into different types by a data type, which informs the compiler or interpreter of the programmer's intended usage of the data.

Most computer languages provide a variety of data types, including integer, real, character or string, and Boolean.

The operations that can be performed to create, alter, and use the variable in another calculation without running the risk are specified by the data type.

Knowing the various types of data makes it easier to make sure that the values of each property are as expected and that the data is gathered in the right format.

A programming language is said to be strongly typed if it only permits operations on variables that respect their data type.

Therefore, It can include string data, bool data, numeric data.

Learn more about data type here:

https://brainly.com/question/14581918

#SPJ2

Answer:

A D E

Explanation:

what are the important reason to practice Opreational Health and Safety procedure?

Answers

To prevent injury

to protect the environment

its the law you can get fined a lot of dollars

Hope you get the question right :)

alexa is scanning a photograph whitch mode should she use A green tone B blue tone C greyscale D sepia ​

Answers

Answer:

grey scale......................

Answer:

C. Greyscale

Explanation:

Got it right on Edmentum!

There are many apps that help find you cheaper gas. If the cost of a gallon of regular gas is $3 at one station and $3.50 at another gas station and your car takes 12 gallons to fill up your car. How much extra are you spending at the more expensive gas station? $5 $6 $7 $8

Answers

Answer:

$7

Explanation:

yoooooo guys what up

can yall help
In three to five sentences, compare and contrast paraphrasing and summarizing.
will mark brainlist

Answers

Answer:

To put simply, paraphrasing refers to the conversion of the original or the concerned source material into the own or personal words of the reader or the interpreter. In contrast, summarizing mainly refers to the conversion of the main idea/concept/s or content of any original text or source material into the writer's or interpreter's own words.

Explanation:

Paraphrasing commonly engages putting any original text of any source material into the own words of the reader or the interpreter of the material.On the other hand,summarizing mainly involves converting the central idea/s or the content/s of the source material into the own words of the reader or interpreter of the source material.

Paraphrasing involves selection of any specific broader section or part of the source material and its conversion into a shorter version in terms of the own words of the reader or the interpreter,whereas,summarizing construes selection of the overall of main idea/s or content of the source material and putting it into a condensed form,expressed in the own words of the reader or interpreter.

7.4 Code Practice: Question 2
Adjust the code you wrote for the last problem to allow for weighted classes. Add a parameter weighted ( 1 = yes, 0 = no) and then return the correct number for the GPA. Weighted classes get one extra point on the GPA value.

I could really use some help on this and 7.5 (I’ll ask that question for 7.5 later)

Answers

def GPAcalc(grade, weighted):

   grade = grade.lower()

   dictionary = {"a": 4, "b": 3, "c": 2, "d": 1, "f": 0}

   if weighted == 1 and grade in dictionary:

       return "Your GPA score is: "+str(dictionary[grade] + 1)

   elif weighted == 0 and grade in dictionary:

       return "Your GPA score is : "+str(dictionary[grade])

   else:

       return "Invalid"

print(GPAcalc(input("Input a letter grade: "), int(input("Is it weigthed? (1= yes, 0= no)"))))

I modified the code a bit to cut down on the use of if and elif statements. If you need me to change it, I will. Best of luck.

The program is an illustration of conditional statements.

Conditional statements are statements whose execution is dependent on its truth value.

The program in Python, where comments are used to explain each line is as follows:

#This initializes the dictionary

dict = {"a": 4, "b": 3, "c": 2, "d": 1, "f": 0}

#This gets input for grade

grade = input().lower()

#This gets input for the weighted average

weighted = int(input())

#If the weighted average is 1, and the grade is in the dictionary

if weighted == 1 and grade in dictionary:

   #This prints the GPA score

   print("Your GPA score is: "+str(dict[grade] + 1))

#If the weighted average is 0, and the grade is in the dictionary

elif weighted == 0 and grade in dictionary:

   #This prints the GPA score

   print("Your GPA score is : "+str(dict[grade]))

#Otherwise

else:

   #The grade is invalid

   print("Invalid")

Read more about similar programs at:

https://brainly.com/question/19241597

Where can you find thousands of templates for Excel?
O Home tab
Page Layout tab
Backstage View
O
Insert

Answers

Answer: The answer is C. backstage view

Explanation: JUST ANWERED

Answer:

c backstage

Explanation:

Assume that your body mass index (BMI) program calculated a BMI of 20.6. What would be the value of category after this portion of the program was executed?

# Determine the weight category.
if BMI 39.9:
category = "morbidly obese"
elif BMI <= 24.9:
category = "normal"
elif BMI <= 39.9:
category = "overweight"
The value of category will be (normal/overweight/.underweight/morbidly obese)

Answers

Answer:

normal is the answer

Answer:

normal

Explanation:

Two types of are desktop computers and notebook computer

Answers

Answer:

personal computer is the correct answer.

Two types of personal computer are desktop computers and notebook computer. Thus, option A is correct.

Today personal computer is changed to laptop mode. Personal computer is made of CPU, monitor, keyboard, printer and mouse. All input device and output device connected with wire or without wire.

Personal computers are also called as desktop or workstation. These days all become compatible device which is called as laptop. Basically all input devices and output device are fixed in laptop so end user can carry the laptop and used anywhere.

Laptop is charged and used, whereas desktop or workstation just fixed in the table and used it.

Learn more about computer on:

https://brainly.com/question/32297638

#SPJ2

Question # 4
Dropdown
Choose the correct term to complete the defintion of your user-defined data type.
v player
life = 3
magic = False
name =

Answers

Answer:

class

Explanation:

edg2020

Answer: class

Explanation: got it right on edgen

Other Questions
$132.75 discounted 40% just put 1 thxs so you will get this much points What distance would you travel in 2.5 hours if you are biking with the speed of 6.3 mph? Horatio's haunted house how can i tell if a boy likes me Determine whether the graph represents a proportional relationship. (4 points) A graph is shown. The x-axis is labeled from 0 to 9. The y-axis is labeled from 0 to 15. Four points are shown on the graph on ordered pairs 0, 2 and 1, 6 and 2, 10 and 3, 12. These points are joined by a line. The label on the x-axis is Number of cars. The title on the y-axis is Number of wheels. Group of answer choices Yes, it is a proportional relationship because the graph goes through the origin Yes, it is a proportional relationship because the graph is a straight line No, it is not a proportional relationship because the graph is not a straight line No, it is not a proportional relationship because the graph does not go through the origin What happens during meiosis I?A. The DNA of each chromosome gets copied.B. Two haploid cells are formed.C. Sister chromatids are pulled apart.D. Four haploid cells form from each parent cell. conveying the idea of time passing and finding a way to measure the length of the action relates to __ time. The type of meter Shakespeare used in his sonnets is called Help please urgent thanks 2Ni(OH) Ni2O + H2O How many moles of water forms from 4.20 mol of nickel (I) hydroxide? PLZZZZZ HELPPPP!!!! I NEED YOU RIGHT NOWSSSSSS 3. As the ice melts into liquid water, what happens to the kinetic energy of the particles in the sample?4. How does the kinetic energy of the particles in the sample relate to the samples temperature? Fill in the blank in the following sentence with the appropriate verb formbelow.Acapulcoen Mxico.O A. estarB. es C. eresO D. est one person in complete control where power is passed down from generation to generation is...dictatorship.absolute monarchy. Which feature makes the passage a good example of pop-culture writing? Select one: a. The author uses words that are informal and friendly. b. The author uses logic to make sense of the facts. c. The author tells what happened in the past. d. The author supports an implied goal. HELP PLEASE! JUST WRITE A SENTENCE OR A COUPLE!Did Mexico had the right to declare independence and break off from Spain? Defend your answer. The Texas high plains region does not revive much rain. It is reasonable to predict that this region, compared to other ecoregions, would have only simplify, dont solve please. thank you! The correct answer will get Brainliest. Choose all the answers that apply.Ground tissue _____.is the most abundant plant tissuetransports food around the plantis responsible for photosynthesisstores food in leaves, stems, and rootsabsorbs water from the air