Using the knowledge in computational language in C++ it is possible to write a code that asks the user to enter two numbers. the program should use the conditional operator to determine which number is the smaller and which is the larger.
<h3>Writting in C++ code:</h3>
#include <iostream>
using namespace std;
int main(){
float a, b;
cout<<"Enter two numbers:";
cin>>a>>b;
if(a>b) {
cout<<"Larger Number:"<<a<<endl;;
cout<<"Smaller Number:"<<b;
}
else if(b<a){
cout<<"Larger Number:"<<b<<endl;
cout<<"Smaller Number:"<<a;
}else{
cout<<"Number are equal!"<<endl;
}
}
See more about C++ code at brainly.com/question/19705654
#SPJ1
Answer:
Algorithms allow automation of complex task
Explanation:
I just did it
Answer:
<u>Sock puppet</u>
Explanation:
A sock puppet, a reference to a puppet created by placing a sock over one's hand, is a misleading or fake online identity created to promote a particular point of view, often in praise of a firm, organization, product, or individual; to manipulate public opinion or to argue, bully or review products. Regardless of the purpose it was created for, sock puppets are rarely welcome in online communities and forums.
Answer:
<h3>Norman only likes to stuff birds, not other animals.</h3>
Answer:
Following are the code in java language
abstract interface PointingDevice // interface PointingDevice,
{
// abstract method getXCoord()
public abstract int getXCoord();
// abstract method getYCoord()
public abstract int getYCoord();
// abstract method attentionRequired()
public abstract boolean attentionRequired();
// abstract method setResolution( )
public abstract double setResolution(double a);
}
Explanation:
In this code we have declared a abstract interface "PointingDevice" which contains the four abstract method getXCoord of type int , getYCoord() of type int , attentionRequired() of type boolean and setResolution() of type double .
These method have only declaration not definition any interface or class which inherit the inteface PointingDevice must define all these four method otherwise it also be abstract .