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
kolezko [41]
3 years ago
5

Declare a variable temperature and initialize it to 98.6. Instructor Notes: Note that "initialize" means "declare and assign a v

alue in the same statement." ote that this exercise wants a single statement, not a complete program. What data type is appropriate for a value such as the value listed above?
Computers and Technology
1 answer:
natali 33 [55]3 years ago
6 0

Answer:

float temperature = 98.6; //declaration and initialization of the variable

Explanation:

In the programming language, there are two types of data types for the decimal number that is float and double.

  • Double data type is used when we require to print more than two decimal value and it also contains both integer type and decimal type value.
  • Float data type is used when we required to print one or two decimal value, it only contains and print decimal value.

So, we have to print one decimal value, that's why we use float data type.

You might be interested in
Where is the best place to self learn c++ or c# that is free?
Elina [12.6K]

Answer:

udemy

Explanation:

Hello guys, you might know that C++ is one of the most popular and powerful object-oriented programming languages and if you want to do low-level stuff then it’s the best language to start with.

You will find applications written in C++ on a wide range of fields like embedded programming, server-side application, gaming, and even high-frequency trading applications. Most of the complex software like Operating Systems, Database Management Systems, and Powerful trading systems are written in C++.

While many of us have learned to program by using C and C++, let me honest with you learning C++ is challenging. There are many areas that are tough to grasp like points but you will learn them slowly and that’s where these free C++ courses will help you.

There is no doubt that learning C++ will open several opportunities for you. There is a huge demand for good C++ developers, especially in the area of high-frequency trading where every microsecond matter and power of C++ is absolutely needed.

C++ is the language which provides the best of both world, it allows you to use OOP to manage the complexity of software but at the same time, it also allows you to get close to your machine and access all of your computer’s hardware, which is not easily possible for other object-oriented languages like Java or Python.

That’s the reason C++ is heavily used for writing native device drivers, high-end desktop games and complex artificial intelligence programs where you need high performance.

In this article, I am going to share with you some of the best and free courses to learn C++ online at your own time and place and free of cost. You can use these courses if you are starting with programming or you have some experience in coding but not familiar with C++.

4 0
3 years ago
Read 2 more answers
There are 3 parts to an osha inspection. What are they
vovikov84 [41]

1)<u> </u><u>An opening conference. The opening conference is a brief meeting during which the OSHA inspector will explain the purpose of the inspection.</u>


2) <u>A worksite “walkaround” The walkaround is the actual inspection.</u>


3) <u>A closing conference.</u>

6 0
3 years ago
A newspaper publishes a negative editorial on how local politicians are dragging their feet in building a new bridge. Select the
jeka57 [31]
Your answer would be
A. The editorial is data.
I just took this test :)
6 0
3 years ago
Read 2 more answers
C++ a. Write a program that uses the function isPalindrome given in example 6-6 (Palindrome). Test your program on the followinn
Whitepunk [10]

Answer:

#include <iostream>

#include <array>

using namespace std;

bool isPalindrome(string str)  

{  

int length = str.length();  

for (int i = 0; i < length / 2; i++)  

 if (toupper(str[i]) != toupper(str[length - 1 - i]))

  return false;  

return true;  

}

int main()

{

array<string, 6> tests = { "madam", "abba", "22", "67876", "444244", "trymEuemYRT" };

for (auto test : tests) {

 cout << test << " is " << (isPalindrome(test) ? "" : "NOT ") << "a palindrome.\n";

}

}

Explanation:

The toupper() addition forces characters to uppercase, thereby making the comparison case insensitive.

5 0
3 years ago
Which font style is said to be slightly above the other line of text?
Keith_Richards [23]
I think the answer would be "superscript"
8 0
3 years ago
Read 2 more answers
Other questions:
  • Describe one activity that belongs to the organizing phase software engineering.
    8·2 answers
  • What are words with the root gest?
    15·1 answer
  • Help?!<br> Does anyone know how to use Adobe SoundBooth?
    14·2 answers
  • Match each scenario to the absolute value expression that describes it. 1. the distance moved when going backwards five spaces i
    13·2 answers
  • Compare and contrast the role that business users play when software is developed using Waterfall and Agile software development
    10·1 answer
  • Wrtie a program in which we will pass a value N. N can be positive or negative. If N is positive then output all values from N d
    8·1 answer
  • 3.4 lesson practice quiz edhesive
    11·1 answer
  • Is wireless or wired network faster??
    8·2 answers
  • Information about www
    14·1 answer
  • Create a set of functions that compute the mean, median, and mode of a set of
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!