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
AlekseyPX
3 years ago
10

Write a main method that prompts the user for an integer between 1 & 10 (inclusive). If the user enters an invalid number, p

rompt for another one. When a valid number is entered, call activity with that number as a parameter.
Computers and Technology
1 answer:
stepan [7]3 years ago
5 0

Answer:

int main() {

   int n;

   cout<<"Enter the integer n"<<endl;

   cin>>n;

   if(n<1 || n>10)

   {

       while(n>10 || n<1)//taking input if the number is not within range..

       {

           cout<<"Enter the number again"<<endl;

           cin>>n;

       }

       activity(n);//calling activity with the n..

   }

return 0;

}

Explanation:

Above written is the main function in which a prompting an integer between 1 and 10 if it is not within range then again taking input.Then after that calling activity with n as argument.

You might be interested in
Tablets, smartphones, and video game consoles usually have which of the following types of operating systems? distributed multiu
vovikov84 [41]
Embedded.
<span>
Real-time is for thing like your thermostat (Nest) etc.
Distributed is for huge number crunching supercomputers.
Multi-user would mean more than one person was using the device at the same time with a different device.</span>
6 0
3 years ago
Read 2 more answers
Discus four importance of applications software​
AlladinOne [14]

Answer:

l hope this helps Good luck.

6 0
3 years ago
A port in what state below implies that an application or service assigned to that port is listening for any instructions?
astraxan [27]

Answer:

a. open port

Explanation:

Based on the information provided within the question it can be said that the port state that represents this is an open port. Like mentioned in the question below, this state refers to a TCP or UDP port that has been configured to receive packets, or in other words listen to oncoming instructions that are being sent from other computers or servers.

6 0
3 years ago
Ryan is working on the layout of her web page. She needs to figure out where her header, navigation bar, text, and images should
julsineya [31]

This answer really depends on your source as it is different for everybody and there really is not one correct answer. Trust me as a web developer I don't always use the same strategy for every site I tackle. Here are some thoughts. See if any sound familiar to you.

Wire framing

Photoshop or graphic mock-up

Sketching

low -fidelity mock-up

Hope that helps.

6 0
3 years ago
What is a slide show
STALIN [3.7K]
A slide show is a presentation supplemented by or based on a series of projected images or photographic slides.
7 0
3 years ago
Read 2 more answers
Other questions:
  • When you make taffy (a pliable candy), you must heat the candy mixture to 270 degrees Fahrenheit. Write a program that will help
    6·1 answer
  • ________ are viruses that masquerade as useful programs or files. hydras spyware programs worms adware programs trojan horses
    6·1 answer
  • To create a new folder, press ____.
    12·1 answer
  • If you attempt an edgeunity quiz is your latest attempt the one counted?
    10·1 answer
  • Identify the operation which is NOT one of the parts of the fivebasic set operations in relational algebra?
    14·1 answer
  • What are the features of a computer speaker​
    10·1 answer
  • Pls help help me is good help me helping is very good
    10·1 answer
  • The first person to say something in here will get brainliested.
    7·2 answers
  • A(n) ____________________ key is a key that is not reused, but rather is only used once, thus improving security by reducing the
    5·1 answer
  • Many large companies use the word(s), _____, to refer to the huge network of computers that meets their diverse computing needs.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!