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
Citrus2011 [14]
3 years ago
9

Please write a code for below:

Computers and Technology
1 answer:
Zanzabum3 years ago
8 0

Answer:

int main()  

{  

   int x,y;  

   bool b1, b2;  

   cout<<"enter values of x : ";

   cin>>x;

   cout<<"enter values of y : ";

   cin>>y;

   b1 = y > x; // false  

     

   b2 = x > y; // true  

     

   cout << "b1 is = " << b1 << "\n";  

   cout << "b2 is = " << b2 << "\n";  

     

   if (b2)  

       cout<<endl << "Larger Number" << "\n";  

   else

       cout << "Smaller Number" << "\n";  

         

     

return 0;  

}

You might be interested in
Write a python program to read four numbers (representing the four octets of an IP) and print the next five IP addresses. Be sur
sdas [7]

Answer:

first_octet = int(input("Enter the first octet: "))

second_octet = int(input("Enter the second octet: "))

third_octet = int(input("Enter the third octet: "))

forth_octet = int(input("Enter the forth octet: "))

octet_start = forth_octet + 1

octet_end = forth_octet + 6

if (1 <= first_octet <= 255) and (0 <= second_octet <= 255) and (0 <= third_octet <= 255) and (0 <= forth_octet <= 255):

   for ip in range(octet_start, octet_end):

       forth_octet = forth_octet + 1

       if forth_octet > 255:

           forth_octet = (forth_octet % 255) - 1

           third_octet = third_octet + 1

           if third_octet > 255:

               third_octet = (third_octet % 255) - 1

               second_octet = second_octet + 1

               if second_octet > 255:

                   second_octet = (second_octet % 255) - 1

                   first_octet = first_octet + 1

                   if first_octet > 255:

                       print("No more available IP!")

                       break

       print(str(first_octet) + "." + str(second_octet) + "." + str(third_octet) + "." + str(forth_octet))

else:

   print("Invalid input!")

Explanation:

- Ask the user for the octets

- Initialize the start and end points of the loop, since we will be printing next 5 IP range is set accordingly

- Check if the octets meet the restrictions

- Inside the loop, increase the forth octet by 1 on each iteration

- Check if octets reach the limit - 255, if they are greater than 255, calculate the mod and subtract 1. Then increase the previous octet by 1.

For example, if the input is: 1. 1. 20. 255, next ones will be:

1. 1. 21. 0

1. 1. 21. 1

1. 1. 21. 2

1. 1. 21. 3

1. 1. 21. 4

There is an exception for the first octet, if it reaches 255 and others also reach 255, this means there are no IP available.

- Print the result

8 0
3 years ago
5 steps in cleaning and sanitizing smokehouse​
topjm [15]

Answer:

  1. Scrape or remove food bits from the surface.
  2. Wash the surface.
  3. Rinse the surface.
  4. Sanitize the surface.
  5. Allow the surface to air-dry.

Explanation: These are steps for cleaning and sanitizing.

4 0
3 years ago
You have just purchased a new USB drive that you want to use to troubleshoot the computers in your company as well as other netw
Masteriza [31]

Answer:

FAT32   is the correct answer to the given question        

Explanation:

FAT32 is a storage structure that is used for the purpose of the storage media. The main objective of the file system to manage the files on the hard drives, SSD, etc.

  • FAT32 is utilizing the 32-bit pieces of data for grouping of information in the hard disk.
  • The main advantage of the FAT32 file system it can format a USB drive that is recognized by all computer systems.
  • FAT32 is required less memory space on massive partitions of the hard disk.
8 0
3 years ago
Which is an advantage of using a flat file instead of a relational database?
ioda

Answer:

The answer to this question is given below is the explanation section.

Explanation:

"A flat file is easier to set up" This option is correct

The advantages we will examine is a flat file is easier to setup.A flat file system can be viewed from any number of application making is very accessible. user will also have very little difficult with understanding the data because each record contains all available about a given flight.simple queries and storing should be no problems for most flat file based systems.

5 0
3 years ago
Amelia wants to create a website using the Python computer language to code her site. She will also use CodeSkulptor3 to help he
pishuonlain [190]

Amelia wants to create a website using the Python computer language to code her site. She will also use CodeSkulptor3 is an example of browser-based code editor. The correct option is A.

<h3>What is python?</h3>

Python is a programming language generally used to make websites and software.  Automated tasks and data analysis are also carried out using python.

CodeSkulptor3 is also a browser-based Python interpreter.  It has implemented a subset of Python 3.

Thus, CodeSkulptor3 is an example of browser-based code editor. The correct option is A.

Learn more about python.

brainly.com/question/19045688

#SPJ1

3 0
2 years ago
Other questions:
  • What is a 'balanced' dfd?
    5·1 answer
  • A(n) ______ network is a system that attempts to imitate the behavior of the human brain. Group of answer choices advanced neura
    14·1 answer
  • Please help!
    10·2 answers
  • Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two
    12·1 answer
  • 2 ways to make your computer work faster ( please help asap )
    6·1 answer
  • How does the technology work
    10·2 answers
  • 1. Software that is designed to intentionally cause harm to a device, server, or network is A. outware B.loggerware C.
    12·1 answer
  • What are the possible consequences of plagiarism?
    15·1 answer
  • Explain the basic operations of a computer system​
    6·1 answer
  • On a leading-trailing system technician A says that both shoes do equal work when stopping while going in reverse. Technician B
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!