write a c++pogram to accept two integers and check whether they are equal or not​

Answers

Answer 1

Program to accept two integers and check whether they are equal or not​.

#include<iostream.h>

void main( )

using namespace std;

int main( )

{

int num1, num2;

cout<< " Input the values for number1 and number2: " ;

cin>> num1 >> num2;

if (num1 == num2)

{

cout<< " Both numbers are equal";

}

else

{

cout<< " numbers are not equal" ;

}

}


Related Questions

In your own words, explain the difference between undecidable problems and unreasonable time algorithms.

Answers

Answer:

Kindly check explanation

Explanation:

In relation to algorithm structure of framework, an unreasonable time algorithm means functions whose execution time or number of steps increases as the number inputted increases. The unreasonable time algorithm is usually explained using the exponential function ; 2^n ; here for each increase in the Number of n supplied, number of steps taken multiplies ; where n is the number of imputs.

Undecidedable programs are those which can be referred to as unsolvable problems in which computers fail to arrive at an answer to. Hence, no matter how complex our algorithm is, it will fail to arrive at a correct yes or no answer for such problems, these are what is called undecidable programs.

In everyday life, we use numbers based on a combination of digits between 0 and 9.
This counting system is known as decimal, or ?
•Denary
•Binary
•Hexidecimal
PLEASE ANSWER I WILL GIVE U BRAINLY!!

Answers

Answer:

denary is the answer thank you

1. Create a naive Bayes model for this data set.



2. What prediction will the naive Bayes model return for the query q=(1,0,0)?

Answers

Answer:

import the GaussianNB class from the scikit-learn naive bayes module using the import statement;

from sklearn.naivebayes import GaussianNB

create the classifier,

clf = GaussianNB()

Then train or fit a section of the dataset (the training set) with the classifier, then predict the label of the test section of the dataset with the provided query "q".

trained = clf.fit( train_features, train_label)

predict = clf.predict(q)

Explanation:

The scikit-learn is a machine learning package in python used to create machine models from datasets. It has several classifiers and regressions algorithms.

The naive baye algorithm is a machine learning class in python used in supervised machine learning to create models used to predict a label given a set of features using a classifier.

If the radius is 1/2 of the diameter, what is the circumference of each wheel if "Circumference = 2 x 3.14 x radius"


need the help asap please!

Answers

Answer:

pi times the diameter

Explanation:

d = 2r

circumference is 2πr

The __________ statement allows you to check for
multiple test expressions and execute different codes
for more than two conditions.​

Answers

Answer:

B) nested if...else

Explanation:

In Computer programming, there are four (4) main types of statements used in the decision-making process and these are;

I. If statement.

II. If....else statement.

III. Else.....if statement.

IV. Nested if...else statement.

The nested if...else statement allows you to check for multiple test expressions and execute different codes for more than two conditions. It uses the other three (3) statements in its decision-making process.

However, only the first test expression would be executed when it is true and then the program is terminated. Otherwise, the program would continue to run until it gets to the breaking point (else statement) and then terminates.

Check ALL of the correct answers.
What would the following for loop print?
for i in range(2, 4):
print(i)
2
2
3
4.
1

Help now please

Answers

Answer:

2,3,4

Explanation:

Starts at two, goes to four. Thus it prints 2,3,4

Which language is a Client Side Programming Language?
PHP
HTML
JavaScript
XML

Answers

Answer:

(c): JavaScript.

Answer:

c

Explanation:

area of trapezium is 54cmsq if parallel sides are 10cm and 8cm long find the distance between the parallel sides​

Answers

Explanation:

the distance between the parallel sides is the height(h)

formula to find area of trapezium :

Area = 1/2(a+b) h

54 = 1/2 (8+10) h

54=1/2(18) h

54 =9h

54/9=h

h= 6 (ans)

Non- intentional errors caused by computer users such as erase or overwrite data or through viruses passed from secondary storage devices or the internet

Answers

Answer: I think yes

Explanation: because of national computer errors I do think that secondary storage devices should be needed.

Discuss the use of spreadsheet software compared to database software to store and manipulate student data.

Answers

Explanation:

Because databases store information more efficiently, databases can handle volumes of information that would be unmanageable in a spreadsheet. Spreadsheets have record limitations whereas databases do not. Compared to databases, spreadsheets can require a large amount of hard-drive space for data storage.

1. Write a programme to print the Fees Receipt of English High School Required Inputs Name of the Student Monthly Tuition Fees Monthly Transport Fees No. Of Month Output Name of the Student Monthly Tuition Fees Monthly Transport Fees Total Fees VAT Fees Amount to be paid Thank you message Sample Output is given below

Answers

Answer:

In Python:

sname = input("Name: ")

tuition = float(input("Monthly Tuition: "))

transport = float(input("Monthly Transport: "))

months = int(input("No. of Months: "))

print("Student Name: "+sname)

print("Monthly Tuition: "+str(tuition))

print("Monthly Transport: "+str(transport))

fees = (transport + tuition) * months

print("Total Fees: "+str(fees))

VAT = 0.00

print("VAT: "+str(VAT)+"%")

amount = fees - VAT*fees/100

print("Amount to pay: "+str(amount))

print("Thank you...")

Explanation:

The program was written in Python

This gets the student's name

sname = input("Name: ")

This gets the student's monthly tuition fee

tuition = float(input("Monthly Tuition: "))

This gets the student's monthly transport fee

transport = float(input("Monthly Transport: "))

This gets the number of months

months = int(input("No. of Months: "))

This prints the student's name

print("Student Name: "+sname)

This prints the student's monthly tuition fee

print("Monthly Tuition: "+str(tuition))

This prints the student's monthly transport fee

print("Monthly Transport: "+str(transport))

This calculates the total fee

fees = (transport + tuition) * months

This prints the total fees

print("Total Fees: "+str(fees))

Here, we assume that VAT is 0%

VAT = 0.00

This prints the assumed VAT

print("VAT: "+str(VAT)+"%")

This calculates the total payable fee

amount = fees - VAT*fees/100

This prints the total payable fee

print("Amount to pay: "+str(amount))

This prints a thank you message

print("Thank you...")

DISEÑAR EL SIGUIENTE FORMULARIO: Y CALCULAR EN PHP: ¿cuánto pagaría un cliente, si elige un plan de pagos de acuerdo a los siguientes datos? 12 meses = 12 % de interés anual 24 meses = 17 % de interés anual. Menor de 12 meses = no paga interés. Solo se acepta un máximo plan de 24 meses

Answers

Sorry don’t get your language

what department is cyber security

Answers

Answer:

United States Department of Homeland Security

The National Cyber Security Division (NCSD) is a division of the Office of Cyber Security & Communications, within the United States Department of Homeland Security's Cybersecurity and Infrastructure Security Agency.

Give me brainliest

Answer: Extra info.

It  belongs to an official government organization in the United States

Explanation:

Cyber security is the practice of defending computers, servers, mobile devices, electronic systems, networks, and data from malicious attacks. It's also known as information technology security or electronic information security....

What is one difference between the Simple Gear Train with Same Size Gears and Simple Gear Train with Different Size Gears?

Answers

Answer:

One difference between a Simple Gear train with Same Size Gears and Simple Gear Train with Different Size Gears is the that the number of rotations of both shafts in the Simple Gear Train with Same Size Gears is the same the number of rotations of both shafts in the simple Gear Train with Different Size Gears are different

Explanation:

A simple gear train is one in which each shaft has only one shaft, and the motion of one shaft in transmitted to the other when the gears are in contact

An evaluation of the possible or probable effects of external forces and conditions on the survival and growth of the business.

Answers

Answer:

Environmental analysis.

Explanation:

Environmental analysis can be defined as an evaluation of the possible or probable effects of external forces and conditions on the survival and growth of the business.

Basically, the external environmental analysis provides information about opportunities and threats. Thus, the informations acquired or obtained through environmental analysis is used by the executive management in strategically planning the organisation's future and exploitation of available opportunities for the success of the organization.

Hence, an environmental analysis gives an overview of the opportunities in the market as well as potential threats to an organization.

An evaluation of the possible or probable effects of external forces and conditions on the survival and growth of the business is known as environmental analysis.

Environmental analysis simply means the evaluation of the possible or probable effects of external forces and conditions on the survival and growth of the business.

Environmental analysis is vital as it makes managers aware of the linkage that's between an organization and the environment.

In conclusion, the correct option is environmental analysis.

Read related link on:

https://brainly.com/question/23625215

TLE(ICT)-10

Research on other forms of Operating systems used in smartphones and give a description for each.​

Answers

Answer:

Android

iOS

Explanation:

Operating systems refers to the embedded software program upon which a machine ( computer or smartphone) is programmed to work. Applications or programs which machines would run must be compatible with that which is designed for the operating system. Operating systems handles and controls process and file management, input and output among others.

The Android and iOS operating system are the two most popular operating systems used on smartphones. In terms of ownership, iOS is developed by Apple and it is not open source (closed source). It has a simple and very less customizable interface. Smart products such as iPhones, iPads run on iOS operating system.

Android on the other hand is runned by googl and is more open source, with a much more customizable interface, android garners more

popularity in the smartphone ecosystem. Most major smartphone devices run on Android such as Samsung, Sony and so on.

Other operating systems may include windows which are very less popular.

The other forms of operating systems include Android and iOS.

It should be noted that operating systems simply mean the embedded software program through which a computer or smartphone is programmed to work.

Operating systems are important as they handle and controls processes and file management. The Android and iOS operating systems are used on smartphones. iOS is owned by Apple.

Learn more about operating systems on:

https://brainly.com/question/1326000

Discuss how the use of digital formats for audio-visual recording and editing has
transformed the film world.

Answers

Answer:

Digital formats allow for lossless data storage, fast editing (without the loss of original source material, ie having to manually clip pieces of film), and made collaboration easier.

Choose the best answer from the drop-down menu. _______ describes any networking technology with a higher bandwidth than older technologies. When a local wireless router sends the signal, it is using _______. ________ uses cables between devices to make a connection.

Answers

Answer:

The answer is "broadband, antenna, and wired network".

Explanation:

The Broadband defines a certain bandwidth with higher networking technology than older technologies.

Whenever a local wireless router has sent the signal, it sends a signal to both the Internet using antenna as well as a wire to transfer it.

The interconnection of the wired network uses cables among both devices.

Answer:

✔ Broadband

describes any networking technology with a higher bandwidth than older technologies.

When a local wireless router sends the signal it is using

✔ Wi-Fi

✔ A wired network

uses cables between devices to make a connection.

Explanation:

Process of sending signals, interpreting received signals, and adjusting through signals is called

Answers

Answer:

TCP The Transmission Control Protocol

Explanation:

Write a c++ program which has array in fifteen element sort the array by selection the search for in element using binary search

Answers

Answer:

Explanation:

The following code is written in C++ and automatically implements the 15 element array. Then sorts it using selection sort. And finally implements a function that takes an element as a parameter and searches/returns that element using binary search.

#include<iostream>

using namespace std;

       int binarySearch(int arr[], int p, int r, int num) {

       if (p <= r) {

       int mid = (p + r)/2;

       if (arr[mid] == num)

       return mid ;

       if (arr[mid] > num)

       return binarySearch(arr, p, mid-1, num);

       if (arr[mid] > num)

       return binarySearch(arr, mid+1, r, num);

       }

       return -1;

       }

       int main() {

           int array[15] = {10, 20, 30, 31, 35, 15, 5, 9, 17, 22, 51, 55, 96, 42, 63};

           int size = 15;

           int i, j, imin;

           for(i = 0; i<size-1; i++) {

               imin = i;

           for(j = i+1; j<size; j++)

               if(array[j] < array[imin])

               imin = j;

               swap(array[i], array[imin]);

           }

           

       int chosenNumber = 31; //Any number that you want to search for

       int numberIndex = binarySearch (array, 0, n-1, num);

       }

8.2 code practice edhesive?

Answers

Answer:

temperatures = []

i = 0

while i < 5:

   try:

       t = int(input('Enter a temperature: '))

       temperatures.append(t)

       i += 1

   except ValueError:

       print('Enter a number')

print(temperatures)

Explanation:

Hope this helps!

7.

"You win!" never displays. What line is responsible for this error?

1

var score

0

2

onEvent

"button2"

"click"

function

3

var score

score + 1

if

score

5

setText ("display", "You win!");

A. 1

B. 3

ОООО

C. 4

D. 5

Answers

Answer:

The answer is "4".

Explanation:

In this code, on line number 4, it will give the error message, and its correct solution can be defined as follows:

In this code, a variable "score" is declared, that holds a value that is 0, and in the next step, a method "onEvent" is declared that uses a method, and in the if block, it checks the "score" value that is less than 5 and it will print the message.

Asking for certain data twice is

Answers

Answer:

repetitive..

what are the options

Explanation:

What are two design elements that help MRAP trucks resist mines?

Answers

Answer:

The two design elements that help MRAP Trucks resist mines are:

A) Its hard armored body

B) Its hull is V-shaped. A design that enables it to deflect Improvised Explosive Devices (IED) blasts away from the vehicle

Explanation:

Mine-Resistant Ambush Protected. This is the full meaning of MRAP. This terminology is used to describe trucks used mainly by the United States Military in terrains that have been weaponized with explosives.

These heavy-duty vehicles are also designed to decimate or clear explosives and mines. They offer more protection than tanks and humvees and can be retrofitted with offensive gear.

Interestingly, they are very street legal and can be purchased by non-military personnel or civilians.

Cheers

You are writing a Java program that deals with doing operations combining characters. Why must you use the string data type and not the char data type to achieve this operation?


A. Combining character data uses less overall memory.

B. Combining character data limits the use of strings.

C. Combining character data produces string data.

D. Combining character data creates more characters.

Answers

Answer:

C

Explanation:

Anything over one char is no longer a char, but a String object.

Need help ASAPP PLEASE
thanks and BRAINLIST only for correct answers :)
Thank you!!

Answers

Answer:

1. Some websites I would be interested in building:

Pop culture updates.Historical eventsAnthropological website - Exploring different cultures around the world.

2. Reasons people might visit my website based on the above.

To see what is new in the world in terms of pop culture. To find out more about different cultures in the world.

3. Formatting.

There are some very aesthetically pleasing websites that can have you staying on the website for longer periods simply to appreciate the view. I would like to learn how to format websites in such a way that they appear very eye catching and impressive.

Renee works for a television series. Her responsibility is to transfer data from the camera to a hard drive. What is her job designation?

Answers

Answer:

Data wrangler

Explanation:

Her responsibility is to transfer data from the camera to a hard drive. What is her job designation? Data Wrangler.

mark as brainliests

Which THREE of the following are examples of formatting data?

changing the color of a cell
changing the color of text in a cell
entering a formula to find the total of the numbers in a column
making the spreadsheet software interpret a number as a dollar amount
increasing the height of a row

Answers

Answer:

changing the color of a cell

changing the color of text in a cell

increasing the height of a row

Answer:

The answers are:

Changing the color of a cell

Changing the color of text in a cell

Making the spreadsheet software interpret a number as a dollar amount

Explanation:

I got it right on the Edmentum test.

combining and splitting multiple channels across a fiber optic connection is called ?

Answers

frequency-division multiplexing I believe

A group of 8 BITS is called a?
•Hex
•Nibble
•Byte
PLEASE ANSWER I WILL GIVE U BRAINLY!!

Answers

It’s a byte hope this helps

Answer:

byte is the answer thank you

Other Questions
Help&explain Dont use for points or will be reported and Ill take the points back helllpppp me pleasssssseeee25points easy Can someone plzzzzz help me with this one problem plzzzzz!!!! Whatare the observable effects of earthquake to the surface of theEarth?advance thanks I WILL MARK YOU BRAINELEST 1. What do you see in this picture?2. What do you think is going on? PLEASE HELP! WILL MARK BRAINLIEST IF YOU'RE CORRECT! IF NOT, NO BRAINLIEST. During the Events leading up to the American Revolution, what did the peoplelisted above have in common?Samuel AdamsPaul RevereThomas Paine 5. What states might support the New Jersey Plan? A 22-foot ladder is placed against a vertical wall of a building, with the bottom of the ladder standing on level ground 9 feet from the base of the building. How high up the wall does the ladder reach? Need help!!! Wil mary brainlyest! A market stall holder bought a variety of coloured 'hoodies' to sell. Each hoodie costs the stall holder $20 and she intends to sell them to the public at a mark up of 65% 1) What profit does the stall holder make on the sale of each hoodie? GMI = $4,666.67 Total Monthly Deductions $1,131.00 What is the Net Monthly Income (GMI - Total Monthly Deductions) = OLIVIER Mon ami Marc et moi, nous (2)(retrouver) un professeur de franais et nous(aimer) les langues?(3)(tudier) ensemble. Et toi, tu (4)ARTHUR Non, j' (5)|(aimer) l'art. Je (6)(adorer) l'art moderne. Marc et toi, vous (8)(dessiner) bien et(habiter) Paris?J'(7) Find the zeros of each function by factoring.g(x) = x^2+ x-20 Use the following equation: 2 CO (g) + O2 (g) = 2 CO2 (g)How many moles of CO and O2 are required to produce 10 moles of CO2? A) 10 moles of CO and 5 moles O2B) 5 moles of CO and 10 moles of O2C) 2 moles of CO and 1 mole O2D) 2 moles of CO and 2 moles CO2 1. They-----yesterday. Brainiest answer to whoever is correct 7-2 Practice QuestionsDue 02/20/211X 72PS-11Question HelpTamara finds the sum of two number cubes rolled at the same time. The chart below shows allpossible sums from the 36 possible combinations when rolling two number cubes. How many timesshould Tamara expect the sum of the two cubes be equal to 9 if she rolls the two number cubes216 times?Click the icon to view the possible sums.The sum should be equal to 9 abouttime(s).Enter your answer in the answer box and then click Check AnswerA parts showingClear AlCASReview progressQuestionBackNext O Calculate the area of this triangle.17 cm8 cm15 cm-Area - TrianglesOverview Hercules had amazing