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
Sergio039 [100]
3 years ago
8

Write a main method that prompts the user for an integer between 1 & 20 (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:
yarga [219]3 years ago
4 0

Answer:

int main() {

   int num;

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

   cin>>num;

   if(num<1 || num>20)

   {

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

       {

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

           cin>>num;

       }

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

   }

return 0;

}

Explanation:

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

You might be interested in
How do you take a picture on an apple computers
Mamont248 [21]

Answer:

You go to the launcher, then find Photo Booth. Photo Booth allows you to take photos. You can only take photos on the side where the screen is, since there isn't a camera on the back. I recommend taking a picture with a phone instead. For a screenshot, press command-shift-3.

Hope this helps!

3 0
3 years ago
What is the basic unit of matter and is considered as the smallest unit of an element? *
nata0808 [166]

Answer:

the basic unit of matter is atom. it is also the smallest unit of element

Explanation:

6 0
3 years ago
Read 2 more answers
One of the biggest changes to affect the internet will be the continuing adoption of a new version of the internet protocol, ver
Rama09 [41]
Version 6 (or IPv6). IPv4, our current standard, is running out of IP addresses for electronic devices as it is using a 32-bit address scheme, allowing for "only" 2^32 addresses, or about 4 billion IP addresses.

IPv6 pretty much solving this by making the IP address a 128-bit hexadecimal, consisting of alphanumerical characters rather than just numbers, allowing for 3.4*10^38, or 340 undecillion IP addresses, which we have pretty much no chance of running out of IP addresses with current technology :p
4 0
3 years ago
In an ethernet network, a(n) _____ data transmission is one that can transmit data in both directions at the same time.
Sladkaya [172]
Full-Duplex is data flow that can travel in two directions at the same time. 
Half-Duplex is data flow that can travel in two directions but not at the same time.
Simplex is data flow that can only travel in one direction.
7 0
4 years ago
An Accenture healthcare client is interested in implementing an Artificial Intelligence (AI) solution to improve patient care, b
Dima020 [189]

The first step that the Accenture team should take to address the client’s concerns is to walk the client through the standards of Responsible AI.

<h3>What is an artificial intelligence solution?</h3>

This refers to the simulation of human intelligence processes by machines most especially the computer systems. The specific applications of the artificial intelligence include expert systems, natural language processing, speech recognition, machine vision etc.

As the Accenture healthcare client is interested in implementing an Artificial Intelligence (AI) solution to improve patient care, the first step that the Accenture team should take to address the client’s concerns is to walk the client through the standards of Responsible AI.

Read more about artificial intelligence

brainly.com/question/25523571

#SPJ1

6 0
2 years ago
Other questions:
  • After sending input in the Chinese language to an AI system, Nina got numerous translations in the English language. Which chall
    9·1 answer
  • Please Help!<br><br>in return brainliest and special thanks
    5·1 answer
  • There are two types of short-term memory: one type is involved in the input and storage of new information, the other type of sh
    9·1 answer
  • Andy uses a dial-up modem to connect to the Internet. He usually browses news sites, but he notices that online video takes a lo
    6·2 answers
  • What are personal skills? A manner of individual style How a person manages and expresses oneself One's ability to excel at spor
    13·2 answers
  • How do you change brightness on acer laptop?
    7·1 answer
  • The _____ is a storage location for text awaiting pasting.
    14·2 answers
  • E-fit and similar software compares what?
    7·1 answer
  • Write an assembly program that will prompt the user for 3 inputs (let’s abstractly call them a, b, and c) without a leading stri
    13·1 answer
  • What is the domain and path in this URL? www.example.com/homepage.html​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!