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
Grace [21]
3 years ago
9

The last time period the federal government of these United States ran a budget surplus was ________.

Computers and Technology
1 answer:
lina2011 [118]3 years ago
3 0
Your answer is a 1998-2001
You might be interested in
Write a program whose input is two integers and whose output is the two integers swapped.
Tpy6a [65]

Answer:

The program to this question can be given as:

Program:

#include <iostream>  //header file

using namespace std;   //using namespace.

void SwapValues(int* userVal1, int* userVal2); //function declaration.

void SwapValues(int* userVal1, int* userVal2) //function definition.

{ //function body.

//perform swapping

   int t = *userVal1;  

   *userVal1 = *userVal2;

   *userVal2 = t;

}

int main() //main method  

{

int n1, n2; //define variable

cout<<"Enter first number :"; //message

cin>>n1; //input by user.

cout<<"Enter second number :"; //message  

cin>>n2; //input by user.

SwapValues(&n1,&n2); //calling function.

cout<<"Swapped values"<<endl;

cout<<"first number is :"<<n1<<endl; //print value

cout<<"second number is:"<<n2<<endl; //print value

return 0;

}

Output:

Enter first number :3

Enter second number :8

Swapped values

first number is :8

second number is :3

Explanation:

The description of the above C++ language program can be given as:

  • In the program, firstly we include the header file. Then we declare and define a function that is "SwapValues()" function in the function we pass two integer variable that is "userVal1 and userVal2" inside a function, we define an integer variable that is "t" and perform swapping.  
  • Then we define the main function in the main function we define two variables that is "n1 and n2" this variable is used to take value-form user. then we pass this value to function and print the function values.

5 0
3 years ago
Comment suprimer son compte brainly
Andru [333]
L'option de suppression de votre compte se trouve dans les Paramètres de votre Profil, sous la rubrique Privé. De là, vous devrez cliquer sur la case intitulée Je veux supprimer mon compte, et la demande de suppression sera envoyée
5 0
3 years ago
Is the IPv6 address 10:10::10:10 a valid address? Why or why not
docker41 [41]

Answer:

yes it is

Explanation:

im not entirly sure but i just know it is

6 0
3 years ago
How do I report a user? (https://brainly.com/profile/TheBrainHelper-20043487)
Veseljchak [2.6K]

Answer:

I don't think you can report someone but you always can report the question

7 0
3 years ago
Read 2 more answers
You need to write a menu driven program. The program allows a user to enter five numbers and then asks the user to select a choi
Jobisdone [24]

Answer:

In Python:

nums = []

for i in range(5):

   num = int(input("Num: "))

   nums.append(num)

print("1 - Smallest")

print("2 - Largest")

print("3 - Sum")

print("4 - Average")

menu = int(input("Select menu: "))

if menu == 1:

   print("Smallest: ",min(nums))

elif menu == 2:

   print("Largest: ",max(nums))

elif menu == 3:

   isum = 0

   for i in range(5):

       isum+=nums[i]

   print("Sum: ",isum)

elif menu == 4:

   isum = 0

   for i in range(5):

       isum+=nums[i]

   print("Average: ",isum/5)

else:

   print("Invalid Menu Selected")

Explanation:

This program uses a list to get inputs for the 5 numbers

Here, the list is initialized

nums = []

This iterates from 1 to 5

for i in range(5):

This gets input for the 5 numbers

   num = int(input("Num: "))

This appends each number to the list

   nums.append(num)

The next 4 lines represents the menu

<em>print("1 - Smallest")</em>

<em>print("2 - Largest")</em>

<em>print("3 - Sum")</em>

<em>print("4 - Average")</em>

This prompts the user for menu

menu = int(input("Select menu: "))

If menu is 1, print the smallest

<em>if menu == 1:</em>

<em>    print("Smallest: ",min(nums))</em>

If menu is 2, print the largest

<em>elif menu == 2:</em>

<em>    print("Largest: ",max(nums))</em>

If menu is 3, calculate and print the sum of all inputs

<em>elif menu == 3:</em>

<em>    isum = 0</em>

<em>    for i in range(5):</em>

<em>        isum+=nums[i]</em>

<em>    print("Sum: ",isum)</em>

If menu is 4, calculate and print the average of all inputs

<em>elif menu == 4:</em>

<em>    isum = 0</em>

<em>    for i in range(5):</em>

<em>        isum+=nums[i]</em>

<em>    print("Average: ",isum/5)</em>

If menu is not 1 to 4, then print invalid menu

<em>else:</em>

<em>    print("Invalid Menu Selected")</em>

3 0
3 years ago
Other questions:
  • What is true about music from the Romantic period?
    14·2 answers
  • Microsoft access does not create n:m relationships because microsoft access creates databases based on
    7·1 answer
  • Using ______, a smartphone can connect to an automobile audio/control system
    6·1 answer
  • A company is in the middle of an operating system update to Windows 10 from Windows XP, Windows 7, and Windows 8.x. The diverse
    5·1 answer
  • Shelly tells a friend that her computer needs to be fixed because it has been producing a lot of heat and is smoking. Where is t
    10·1 answer
  • ¿Qué significa PPO a nivel de programación?
    15·1 answer
  • What is one difference between IDLE and Eclipse?
    7·2 answers
  • Help me, I'll mark brainiest
    12·1 answer
  • Function of Ribbon in Access 2010​
    7·1 answer
  • onsider a file system on a disk that has both logical and physical block sizes of 512 bytes. assume that the information about e
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!