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
Oksi-84 [34.3K]
3 years ago
11

Assume that isIsosceles is a bool variable, and that the variables isoCount, triangleCount, and polygonCount have all been decla

red and initialized. Write a statement that adds 1 to each of these count variables (isoCount, triangleCount, and polygonCount) if isIsosceles is true.
Please help me complete this. I have been struggling for quite some time and need help with a explanation. But mainly I need the answer. Thank you.
Computers and Technology
1 answer:
Leona [35]3 years ago
6 0

Answer:

if (isIsosceles) {

 isoCount++;

 triangleCount++;

 polygonCount++;

}

Explanation:

The above will work in C/C++/Java/JavaScript, but you didn't specify which language you need. Anyway the principle stays the same.

You might be interested in
In your own words, describe UML. Identify at least two types of UML diagrams that can be used in software development; describe
lora16 [44]

<u>Uml (Unified Modified Language):</u>

In those days before software development normally we used flow chart, which will have Start, Process, Conditions and Stop, Modified version of flow chart is called UML (Unified Modified Language).

UML is standard model language which help develop understand flow of the software. Uml (Unified Modified Language).

There are 7 type of diagram is used in Uml (Unified Modified Language).

  • Class Diagram.
  • Object Diagram.
  • Component Diagram.
  • Composite Structure Diagram.
  • Deployment Diagram.
  • Package Diagram.
  • Profile Diagram.

I will suggest profile diagram and class diagram.

  • Profile diagram – This diagram is just to define use role and user rights.
  • Class diagram: - This diagram explains the class and their uses in the software development.
7 0
4 years ago
Assume the variable date has been set to a string value of the form mm/dd/yyyy, for example 09/08/2010. (Actual numbers would ap
bonufazy [111]

Answer:

String date = "21/05/2020";

String dayStr = date.substring(0,2);

int day = Integer.parseInt(dayStr);

System.out.println(day);

Explanation:

Create a variable called <em>date</em> which holds the current date

Create a variable called <em>dayStr</em>. Initialize it to the day part of the <em>date</em> using the substring method

Create a variable called <em>day</em>. Parse the <em>dayStr</em> and assign it to the <em>day</em>

Print the <em>day</em>

6 0
4 years ago
How does a hard drive
stealth61 [152]
Your answer is incomplpete<span>Native Americans have lived there for thousands of years, long before ... On July 4, 1776, people from the thirteen colonies created the United States ... In the early 1800s, the new nation faced many controversial issues, such as slavery ..... the United Stateswould not become involved in a war the two countries were fighting ...</span>‎Pre-Columbian America - ‎Colonial America - ‎<span>American Revolution</span>
8 0
4 years ago
Assume that d is a double variable. Write an if statement that assigns d to the int variable i if the value in d is not larger t
mamaluj [8]

Answer:

That's because the value has reached the size limit of the int data type. ... you should use long rather than int , because long can store much larger numbers than int . If ... In other words, a float or double variable can't accurately represent 0.1 . ... If you're using Java to measure the size of your house, you'd need an electron ...

Explanation:

3 0
3 years ago
Devices inserted into a computer that give it added capabilities
mestny [16]
Your answer should be expansion boards
5 0
3 years ago
Other questions:
  • If no mode is indicated for a parameter, what mode is used?
    15·1 answer
  • What does the term hardware refer to?
    13·1 answer
  • We wish to design a decoder, with three inputs, x, y, z, and eight active high outputs, labeled 0, 1, 2, 3, 4, 5, 6, 7. There is
    5·1 answer
  • How do i get the schools admin password for the good wifi
    10·2 answers
  • Which of the following extends a network over a large geographic area by connecting local area networks together?
    14·2 answers
  • Difference between primary key and foreign key
    12·1 answer
  • What solicits online input such as product ratings from consumers?
    7·1 answer
  • You are the network administrator for a small company that implements NAT to access the internet. However, you recently acquired
    13·1 answer
  • Heeeeeeelp :)<br><br> hwjkwdlfo;pk
    8·1 answer
  • USE PYTHON TURTLE GRAPHICS
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!