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
castortr0y [4]
4 years ago
10

Write a program to enter a number and test if it is greater than 45.6. If the number entered is greater than 45.6, the program n

eeds to output the phrase
Computers and Technology
1 answer:
WARRIOR [948]4 years ago
5 0

Answer:

#include <iostream>

using namespace std;

int main ()

{

 float number = 0.0;

 float check = 45.6;

 cout << "Enter Numeber";

 cin >> number;

 if (number > check)

   {

     cout << " Greater than 45.6" << endl;

   }

 else

   {

     cout << " Lesser than 45.6" << endl;

   }

 return 0;

}

Explanation:

declare and initialize float type variable number. Float is used to cater for decimal but not using to much space which is used by double data type. Check value is stored in other variable called check.

Take input from user in number and write an if statement to check whether entered number is less than 45.6 or greater.If number is lesser than check display message "Greater than 45.6" other wise display message "Lesser than 45.6"

You might be interested in
What is the general term for programs used to operate a computer
andre [41]

Answer: SOFTWARE

Explanation: Software is a set of instructions, data or programs used to operate computers and execute specific tasks. It is the opposite of hardware, which describes the physical aspects of a computer. Software is a generic term used to refer to applications, scripts and programs that run on a device.

7 0
3 years ago
If an electric circuit has 30ohms and 10amps. How many volts the battery voltmeter should read?
Andreyy89

Given that,

Resistance, R = 30 ohms

Current, I = 10 A

To find,

The voltage of the battery.

Solution,

Let V is the voltage of the battery. We can use Ohm's law to find V.

Since, V = IR

Put all the values in the above formula.

V = 10×30

V = 300 Volt

So, the voltage of the battery in the voltmeter is 300 Volt.

8 0
3 years ago
To what would you compare the transport layer?
Paraphin [41]
The answer is (B) The Post Office.

In layman’s terms, transport layer is similar to the post office functions of delivering parcel and letters and the agreed delivery deadlines. It also notices any dropped info and re-transmits it. Just like the post office, the transport layer directs messages and information between specific end users. If by mistake you write a letter to the wrong person, the letter will be returned and the postal employee will stamp it as address unknown.



7 0
3 years ago
When communicating with sockets, a client process initiates a request for a connection and is assigned a port by the host comput
melamori03 [73]

Answer:

D. 80

Explanation:

By default, the port number for a web server is 80.

3 0
4 years ago
Read 2 more answers
Every brand of computer has its own binary language, called
Kaylis [27]
Machine language.

Hope this helps
6 0
3 years ago
Other questions:
  • Your desktop computer monitor is not displaying a picture. What would you do to troubleshoot the problem?
    9·2 answers
  • Two small engine technicians are disassembling the engine shown in Figure A-9. After observing the engine components, both techn
    8·1 answer
  • ASAP
    12·1 answer
  • Which of the following do you need to remeber about true/false questions?
    12·1 answer
  • HELP!!!!!
    7·1 answer
  • What is office course<br> how to learn office course
    12·1 answer
  • What is the purpose of each component ?
    6·1 answer
  • I am having trouble with this python question. I am in a beginner level class also so any solution that isn't too complex would
    8·1 answer
  • state how to transfee information from website to el processing document in computers and technology.​
    12·1 answer
  • A data mart is the operational database for the company. group of answer choices true false
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!