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
Nuetrik [128]
3 years ago
7

This list represents the horses leading in a race: leadHorses ← ["Justify", "Bravazo", "Good Magic", "Tenfold", "Lone Sailor", "

Sporting Chance", "Diamond King", "Quip"] This code snippet updates the list: tempHorse ← leadHorses[3] leadHorses[3] ← leadHorses[4] leadHorses[4] ← tempHorse What does the leadHorses variable store after that code runs?
Computers and Technology
1 answer:
IrinaVladis [17]3 years ago
5 0

Answer:

leadHorses ← ["Justify", "Bravazo", "Good Magic", "Lone Sailor", "Tenfold",  "Sporting Chance", "Diamond King", "Quip"]

Explanation:

leadHorses ← ["Justify", "Bravazo", "Good Magic", "Tenfold", "Lone Sailor", "Sporting Chance", "Diamond King", "Quip"]

tempHorse ← leadHorses[3]

tempHorse ← Tenfold

leadHorses[3] ← leadHorses[4]

leadHorses[3] ← Lone Sailor

leadHorses[4] ← tempHorse

leadHorses[4] ← Tenfold

leadHorses ← ["Justify", "Bravazo", "Good Magic", "Lone Sailor", "Tenfold",  "Sporting Chance", "Diamond King", "Quip"]

Tenfold and Lone Sailor swap positions.

You might be interested in
Supplementary content SC is usually an important part of a webpage (but is not required for a page to receive a high or even hig
vredina [299]

Answer:

True

Explanation:

In a web page, there are two categories of content, they are, the main content and the supplementary content.

The main content holds the needed information of the web page and changes from page to page, while the supplementary content, as the name implies, supports the quality of the main content. It content can be duplicated in multiple pages and does not need a high rating to promote the quality of a web page.

6 0
3 years ago
(ii)<br>Give two uses of the Start Menu.​
9966 [12]

Answer:

used folders, files, settings, and features. It's also where you go to log off from Windows or turn off your computer. One of the most common uses of the Start menu is opening programs installed on your computer. To open a program shown in the left pane of the Start menu, click it

7 0
3 years ago
Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula: tan(angl
KatRina [158]

Answer:

1. Modified formulae for calculating tree height.

treeHeight = tan(angleElevation)\times shadowLength.

2. C++ program to calculate tree height.

#include<iostream>

#include<math.h>

using namespace std;

int

main ()

{

 double treeHeight, shadowLenghth, angleElevation;

 cout << "Please enter angle of elevation and shadow length" << endl;

 cin >> angleElevation;

 cin >> shadowLenghth;

 

 //Modified formulae to calculate tree height.

 treeHeight = tan (angleElevation) * shadowLenghth;

 cout << "Height of tree is:" << treeHeight;

}

Output:

Please enter angle of elevation and shadow length

45

12

Height of tree is:19.4373

Explanation:

Since no programming language is mentioned, so solution is provided using C++.

In the above C++ program, first angle of elevation and length of shadow provided by user will be stored in variables angleElevation and shadowLength.

Then using  the modified formalue height of tree will be  calculated and stored in variable treeHeight. Final result is displayed to user.

6 0
3 years ago
Which one of the following statements about a relationship cardinality is FALSE? a.The notation 1:N shows a relationship's maxim
Sunny_sXe [5.5K]

Answer:

The correct answer is  d.In an E-R model, the three types of maximum cardinality are 1:1, 1:N, and N:M.

Explanation:

An entity relationship diagram is a diagram that illustrates how "entities" relate to each other. ER diagrams of a system are often used to design or refine relational databases in the areas of software engineering, business information systems, education, and research. Also known as the ERD model or ER model, they use a set of defining symbols such as rectangles, rhombuses, ovals, and links to express the cohesion of entities, relationships, and their properties. They are a reflection of the grammatical structure and the use of entities as nouns and relationships as verbs.

6 0
3 years ago
Design a class named Car that has the following fields:
Archy [21]

Answer:

public  class Car {

   private int yearModel;

   private String make;

   private int speed;

   

   public Car(){

       yearModel = 2000;

       make = "Nissan";

       speed = 4;

   }

   

   public Car(int yearModel, String make, int speed) {

       this.yearModel = yearModel;

       this.make = make;

       this.speed =speed;

   }

   

   public void setYearModel(int yearModel){

       this.yearModel = yearModel;

   }

   public void setMake(String make){

       this.make = make;

   }

   public void setSpeed(int speed){

       this.speed = speed;

   }

   

   public int getYearModel(){ return yearModel; }

   public String getMake(){ return make; }

   public int getSpeed(){ return speed; }

   

   public String toString(){

       return "Car's year model: " + getYearModel() + ", make: " + getMake() + ", speed: " + getSpeed();

   }

}

Explanation:

<em>Variables</em> are declared.

<em>No-arg constructor</em> is created with default values.

<em>A constructor with parameters</em> is created.

The required <em>set methods</em> and <em>get methods</em> are created.

<em>toString</em> method is created to return car's specifications.

3 0
3 years ago
Other questions:
  • How do you clear space in your iCloud?
    14·1 answer
  • Help please<br> helpp im begging
    14·1 answer
  • Write a method called findNames that meets the following specs: It takes two arguments: a list of strings, allNames, and a strin
    12·1 answer
  • An aircraft departs an airport in the mountain standard time zone at 1615 MST for a 2-hour 15-minute flight to an airport locate
    14·1 answer
  • A provides legal protection for something an individual has created
    12·1 answer
  • How to print wireless from laptop to samsung printer?
    6·2 answers
  • Write a Python program string_functions.py that defines several functions. Each function re-implements Python's built-in string
    9·1 answer
  • To inspire unit 1 App
    11·1 answer
  • What is the way to discover requirments for software projects ?
    14·1 answer
  • What were the important developments that occurred in photography that facilitated the creation of motion pictures? Two critical
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!