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
qaws [65]
3 years ago
7

write a C++ program that requires the user to enter two-digit positive and negative integers . The program counts the number of

occurrences of each integer . When the user enters a number greater than 100 or less than -100, the program should exit and print out the statistics of how many times each integer between [-9 and +9] occurred as well as how many numbers outside the range of [-9 to +9] occurred. A sample output of the program is given at the end.
Computers and Technology
1 answer:
ValentinkaMS [17]3 years ago
4 0

Answer:

Use GitHub it helps a lot

Explanation:

You might be interested in
10011÷11 binary division​
Nostrana [21]

Answer:

110.01001

Explanation:

it's a repeating decimal

6 0
3 years ago
Write code which takes inputs and creates two Rectangle objects (using the edhesive.shapes.Rectangle class) and compares them us
iogann1982 [59]

Answer:

System.out.println("Enter length:");

Scanner scan = new Scanner(System.in);

Double x = scan.nextDouble();

System.out.println("Enter 2 lengths:");

Double a = scan.nextDouble();

Double b = scan.nextDouble();

Rectangle rect = new Rectangle(x);

Rectangle rect2 = new Rectangle (a,b);

if (rect2.equals(rect)){

 System.out.print("Congruent Rectangles");

}

else {

 System.out.print("Different Rectangles");

}

 }

}

Explanation:

6 0
3 years ago
Assume the following JavaScript program was interpreted using staticscoping rules. What value of x is displayed in function sub1
Annette [7]

Answer:

Static scoping: x is 5

Dynamic scoping : x is 10.

Explanation:

Static scoping :

In static scoping the variable of a function take the value within the function.

If there is no values exist within the function then take the global value of the variable.

var x // No value is assigned to x so it check global value of x

function sub1() {

   document.write(“x = “ + x + “”); // So it print x = 5

}

function sub2() {

   var x;

   x = 10;

   sub1();

}

x = 5; // It is the global value of x

sub2();

Static scoping: x is 5

Dynamic scoping :

In Dynamic scoping the variable of a function take the value all the calling function ends.

If the global value is the last assigned value of a variable then it take that value.

If there exist some other function after global variable value if that function contain the variable with some assigned value variable take that value.

var x

function sub1() {

   document.write(“x = “ + x + “”);

}

x = 5; // At this point x value is 5 and check there exist a function

sub2(); // So now call this function

function sub2() {

   var x;

   x = 10; // The value of x = 5 is replaced with x = 10

   sub1();

}

Dynamic scoping : x is 10.

7 0
3 years ago
Write a function solution that returns an arbitrary integer which is greater than n.
Aleksandr-060686 [28]

Answer:

   public static int greaterThanInt(int n){

       return n+10;

   }

Explanation:

This is a very simple method in Java. it will accept an argument which is an integer n and return n+10 since the question requires that an arbitrary integer greater than n be returned adding any int value to n will make it greater than n.

A complete java program calling the method is given below:

<em>import java.util.Scanner;</em>

<em>public class ANot {</em>

<em>    public static void main(String[] args) {</em>

<em>        Scanner in = new Scanner(System.in);</em>

<em>        System.out.println("Please enter an integer");</em>

<em>        int n = in.nextInt();</em>

<em>        int greaterInt = greaterThanInt(n);</em>

<em>        System.out.println("You entered "+n+", "+greaterInt+" is larger than it");</em>

<em>    }</em>

<em>    public static int greaterThanInt(int n){</em>

<em>        return n+10;</em>

<em>    }</em>

<em>}</em>

4 0
4 years ago
ANSWER QUICKLY!!!
meriva

The thing that Katsumi should do in this situation is to option A in the image attached.

<h3>Why choose option A?</h3>

Note that Design documentation is said to be a composition of documents and resources that is said to cover all areas of one's product design.

Option A is correct because  in the above scenario, it is usually mostly inconclusive and as such, Katsumi  should do nothing.

Learn more about design document from

brainly.com/question/27250066

#SPJ1

5 0
3 years ago
Other questions:
  • When do on loop conditions happen? (1 point)
    5·1 answer
  • Which group on the Home Ribbon contains the line spacing attribute?
    9·2 answers
  • Cloud computing service providers manage different computing resources based on the services they offer. Which resources do IaaS
    10·1 answer
  • PLEASE HELP ON TECHNOLOGY
    8·1 answer
  • Now let's create a memo. The memo should include all parts of a memo, and these parts should appear in the correct order. In you
    9·1 answer
  • Which of the following is a career that's indirectly linked to careers in web technologies?
    10·1 answer
  • 1 : What format would you apply to give an entry the appearance of 12-Mar-2014
    8·1 answer
  • 8. Cloud Storage is
    5·2 answers
  • What are the advantages of Database management system (DBMS)??<br>At least mention six of them​
    10·1 answer
  • This isn't academic, but what do I do if HI-REZ won't let me sign into an existing account. “Something went wrong” keeps popping
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!