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
denis-greek [22]
3 years ago
4

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

clared and initialized. Write a statement that adds 1 to each of these count variables (isoCount, triangleCount, and polygonCount) if isIsosceles is true.
Computers and Technology
1 answer:
trapecia [35]3 years ago
5 0

Answer:

if (isIsosceles){

           isoCount +=1;

           triangleCount +=1;

           polygonCount+=1;

       }

Explanation:

Using Java programming language, we have shown the full implementation.

The three variables  (isoCount, triangleCount, and polygonCount) were declared and initialized to 1,2,3 respectively

After the if condition, the new values for these variables are printed to the screen and they become 2,3,4 respectively. complete code is given below

public class num3 {

   public static void main(String[] args) {

       boolean isIsosceles = true;

       int isoCount = 1;

       int triangleCount=2;

       int polygonCount=3;

       if (isIsosceles){

           isoCount +=1;

           triangleCount +=1;

           polygonCount+=1;

       }

       System.out.println(isoCount);

       System.out.println(triangleCount);

       System.out.println(polygonCount);

           }

}

You might be interested in
What are the different parts of a word processing program?<br><br> I need this ASAP please help!!
uranmaximum [27]

Answer:

The basics of the Word window

Title bar. This displays the document name, followed by a program name.

Menu bar. This contains a list of options to manage and customize documents.

Standard toolbar. ...

Formatting toolbar. ...

Ruler. ...

Insertion point. ...

End-of-document marker. ...

Help.

3 0
3 years ago
Which of the following is a way to add a foreground to a photograph?
kotegsom [21]

Answer:

reeee

Explanation: sry its actually raise you're perspective

3 0
3 years ago
Read 2 more answers
How do you modify WordArt? Give specific details and steps<br><br> NEED THIS ASAP
masha68 [24]

The steps to modify a WordArt text are:

  • Click on the Editing WordArt Text
  • Then Double click or select  the WordArt image.
  • Via the use of the Format command tab, in the Text group, select Edit Text and the Edit WordArt Text dialog box show
  • Through the use of the Text text box, make all changes you want.
  • Select OK.

<h3>What is Word art?</h3>

Word art or text art is known to be a kind of an art that is made up of text, creating words or phrases along with  visual imagery.

Therefore, The steps to modify a WordArt text are:

Click on the Editing WordArt TextThen Double click or select  the WordArt image.Via the use of the Format command tab, in the Text group, select Edit Text and the Edit WordArt Text dialog box showThrough the use of the Text text box, make all changes you want.

Select OK.

Learn more about WordArt from

brainly.com/question/938171

#SPJ1

7 0
2 years ago
Write an algorithm to convert lengh of your house from cm to meter​
sergiy2304 [10]

Answer:

cm = 1000;

 

meter = cm / 100.0;

kilometer = cm / 100000.0;

 

print("Length in meter = " ,

              meter , "m");

print("Length in Kilometer = ",

            kilometer , "km");

Explanation:

This is in Python, hope you enjoy!

8 0
3 years ago
How can I get multiple user inputs in Java ? I want to be able to use it for subtraction, addition,division and multiplication.F
Evgesh-ka [11]
You can do something like this :

Scanner sc = new Scanner(System.in);
int[] nums = new int[4];

for(int i = 0; i < nums.length; i++) {
System.out.println("Enter next number: ");
nums[i] = sc.nextInt();
7 0
2 years ago
Other questions:
  • When programming, the word "execute" means which of these?
    13·1 answer
  • which option of the AutoCorrect tool enables you to add and delete words that do not follow abbreviation rules?
    10·2 answers
  • 5. The hazardous component in most antifreeze is _____, which is extremely toxic to humans and animals. A) Calcium Carbonate B)
    13·2 answers
  • 3. The invention of the transistor was important to the development of computers because it
    5·1 answer
  • Can anyone fill in the space please
    6·1 answer
  • String member function compare compares two strings (or substrings) and returns 0 if:
    5·1 answer
  • So whenever I play among us, I always get killed. Like always. I want to know some Technics to being a crew mate and an impostor
    9·1 answer
  • Which visual aid would be best for showing changes inacts population size over time?
    15·1 answer
  • Jason is using his mother's computer. He plugs in his flash drive, but it does not appear in the explorer window. Suggest what J
    12·1 answer
  • Define computer architecture?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!