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 are point to consider while running occupation?​
mart [117]

Answer:

if you mean running a business, i think you should have a budget and enough inventory depending on what you're selling.

Explanation:

8 0
3 years ago
Read 2 more answers
Can you answer my question it's a bit confusing to me! I'm adding brainlist too!
Inessa05 [86]

Answer:

Double spaced means more space in between lines and there is an option in Google Docs or Word to make it double spaced. One inch margin means that there is one inch between the edge of the paper and where the words start.

6 0
3 years ago
Which sns gets its names from one of its unique features
Komok [63]

Answer:

no

Explanation:

3 0
3 years ago
Designers and graphic artists can print finished publications on a color printer, take them to a professional printer, or post t
solmaris [256]

DTP is the kind of software where designers and graphic artists can print finished publications on a color printer, take them to a professional printer, or post them on the web.

So, the kind of software is called DTP.

7 0
4 years ago
Some applications required advanced storage solutions are available to provide fault tolerance and high performance.
katen-ka-za [31]
A. True

This is because not all applications can run with low/small storage.
3 0
3 years ago
Other questions:
  • The ________ model allows the owner of a resource to manage who can or cannot access the item. Owners maintain this access throu
    8·1 answer
  • . Write a statement that throws an IllgalArgumentException with the error message Argument cannot be negative.
    11·1 answer
  • Why would a designer choose to use an isometric sketch rather than a perspective sketch to share their idea with a design team m
    14·1 answer
  • Question 2 In this question you are asked to calculate probabilties for the discrete uniform and exponential distribution. Make
    7·1 answer
  • Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in binar
    11·1 answer
  • Ahem, so basically I added a extension on my SCHOOL chromebook, and I want to get rid of it because it keeps opening extra tabs
    5·1 answer
  • What is the worst case time complexity of insertion sort where position of the data to be inserted is calculated using binary se
    13·1 answer
  • What is the fundamental purpose of sentiment analysis on social media?​
    9·1 answer
  • 1. As part of your community, your school, and your neighbourhood, how else does ICT have an impact on social
    11·1 answer
  • What does a black box represent in the system input/output model?.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!