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
kherson [118]
4 years ago
7

How do you validate the type of text that a user enters?

Computers and Technology
1 answer:
enot [183]4 years ago
3 0
D, is the correct choice here. 
You might be interested in
How many line ofoutput will be displayed by the following program fragment?
nexus9112 [7]

Answer:

Hi!

Let's make a quick debug of the code:

i    j   Output

0+0 =  0  

0+1 =    1

0+2 =  2

0+3 =  3

1+0 =  1 

1+1 =    2

1+2 =  3

1+3 =  4

2+0 =  2  

2+1 =    3

2+2 =  4

2+3 =  5

3+0 =  3  

3+1 =   4

3+2 =  5

3+3 =  6

4+0 =  4  

4+1 =   5

4+2 =  6

4+3 =  7

The total outputs is 20.

Explanation:

In the first iterations of the loop for the final value of the <em>i</em> is 1 and the final condition to stop of the do while is (<em>i</em> < 5) , so the iteration of for continues many times until  <em>i</em> break the condition.  

(5*4 = 20)

And after that you get 20 outputs.

I hope it's help you.

6 0
3 years ago
A. True <br><br> b. False: most modern computers can understand and execute pseudocode.
Veronika [31]
False






---------------------------------------------
7 0
3 years ago
Draw the flowchart to calculate the area of the rectangle 50m length and width 30m.​
marta [7]

Answer:

---- ----

Explanation:

1) Start

2) Rectangle: Read Length and Width.

3) Calculate

4) Print (Calculate)

8 0
3 years ago
Every windows service has the 3 start types what are those service types?
spayn [35]

Answer:

You can stop, pause, start, delay start, or resume each service as appropriate. You can also modify the start mechanism (Manual or Automatic) or specify an account. Windows Services broadly fall into three categories depending on the actions and applications they control: Local Services, Network Services and System.

5 0
3 years ago
Create the Following Menu in a loop so the menu will continually show until the user chooses to exit.AddMultiplyExitAdd a value
ycow [4]

Answer:

I have added the code again with the mistakes are corrected please see the comments in code. You have mistake in while loop condition.

#include <iostream>

#include <iomanip>

#include <cmath>

using namespace std;

int options ();

int option1 ();

int option2 ();

int option3 ();

double addition (double num1, double num2);

double multiplication (double num1, double num2);

int main()

{  

jump:

int option = 0;  

cout << "1. Add" << endl;

cout << "2. Multiply" << endl;

cout << "3. Exit" << endl;

 cout << "Enter option 1 for addition, option 2 for multiplication, or option 3 to exit" "Enter an option: ";

  cin >> option;

   switch (option)  

{  

case 1:option1;  

int option1 ();

{  

double num1 = 0;  

double num2 = 0;

// void int key = 0;  

cout << " Enter a number: ";  

cin >> num1;  

cout<< " Enter a second number: ";  

cin >> num2;  

double sum = addition(num1, num2);  

cout << " Sum is: " << sum <<endl;

 } break;  

 case 2: option2;  

 int option2 ();

 {  

 double num1 = 0;  

 double num2 = 0;

 cout << " Enter a number:";

 cin >> num1;

 cout << " Enter a second number: ";

 cin >> num2;

 double product = multiplication(num1, num2);

  cout << " Product is: " << product << endl;

  //system("cls");

  }  

  break;

   case 3: option3;  

   int option3();

    {

 return 0;

 }  

 break;  

 default: cout << " Invalid number entered: ";

 }

 //do {main();}

 //while (option < 3); //you have mistake in this loop please have a look

 while (option<3)

 {

  goto jump;

 }

 

 }

 double addition(double num1, double num2)

 {

  return num1 + num2;

  }

 double multiplication(double num1, double num2)

 {

  return num1*num2;

  }

Explanation:

You can also do this by using goto statement in switch case and menu will be repeated until the user not select to exit and now it will work with the loop as well.

I hope it will help you!

4 0
3 years ago
Other questions:
  • Write a multithreaded program that generates the Fibonacci series using Pthreads thread library. This program should work as fol
    10·1 answer
  • Which command would you use to move a file from one location to another?
    6·2 answers
  • Carbon monoxide poisoning can result from breathing
    15·1 answer
  • Program 1: I’m buyin’ a Ferrari! If you’ve ever travelled to another country, you know that working with different currencies ta
    6·1 answer
  • How can I change my username here at brainly?
    13·2 answers
  • Use of the Internet for e-government has increased. Identify the benefits by checking all of the boxes that apply.
    8·1 answer
  • FREEE POINTS
    8·2 answers
  • Jon wants to assign a value to the favorite food variable: favoriteFood! = "Pizza" but gets an error message. What does he need
    9·2 answers
  • Which function works best when you need to remove an element at a specific index in a list?
    5·2 answers
  • Help me
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!