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
Which of these components is a part of the central processing unit (CPU) of a computer? A. memory B. storage C. control unit D.
erma4kov [3.2K]
The answer is C. control unit
8 0
3 years ago
Read 2 more answers
Compare and contrast how the roles of women and men in society are changing​
Tems11 [23]

Answer:

Society is run with the everyday changing and evolving roles of men and women. Taking instances from the past, it can be very well said that the society has seen an evolution in the changing roles of men and women.

In ancient times, men were dominant. Men were only meant to earn and provide for their family and women were only meant to cook, clean their house and raise the kids and looking after their domestic animals. But with the advancement of time, women began to grow in the industry and business field. Slowly and gradually taking baby steps, women have managed to climb a mountain facing each and every hurdle of stereotypes and rituals to prove their worth. Now it can be very well said that women are no less than men and have proper significance in growth of society ethically and economically as well.

4 0
3 years ago
Write the algorithm for finding the perimeter of a rectangle using English like form step by step
olya-2409 [2.1K]
L+L+W+W= Permiter
Or Lenght+Lenght+Width+Width= Perimeter
That’s all just add all the 4 sides
8 0
3 years ago
What is a device that makes it possible for multiple customers to share one address is called a/n
chubhunter [2.5K]
I'm totally not sure but I think sec midterm flashcards
4 0
4 years ago
Write a function named wordLineCount with the following input and output: Input: a string parameter, inFile, that is the name of
Galina-37 [17]

Answer:

def wordLineCount(file):

   dic = {}

   with open(file,'r') as file:

       

       text = file.read()

       text = text.strip().split()

       for word in text:

           if word in dic:

               dic[word] += 1

           else:

               dic[word] = 1

   return dic

print(wordLineCount('ben.txt'))

Explanation:

The programming language used is python.

The program starts by defining the function, an empty dictionary is created to hold the words and the number of times that they occur. the with key word is used to open the file, this allows the file to close automatically as soon as the operation on it is finished.

The data in the file is read to a variable text, it is striped from all punctuation and converted to a list of words.

A FOR loop and an if statement is used to iterate through every word in the list and checking if they are already in the dictionary. if the word is already contained in the dictionary, the number of occurrences increases by one. otherwise, it is added to the dictionary.

check the attachment to see code in action.

6 0
4 years ago
Other questions:
  • How to write equal to or greater than in word?
    9·1 answer
  • An independent frame that holds a program, document, or folder contents in windows 7 is called a ____.
    11·1 answer
  • Write an UPDATE statement that modifies the InvoiceCopy table. Change the PaymentDate to today’s date and the PaymentTotal to th
    7·1 answer
  • Jenny needs to record the names of 30 students, write down the subjects they studied, and note grades in each subject after the
    13·2 answers
  • Rachelle is an office manager for an active real estate agency. She’s overseeing a transition to a more complete reliance on ele
    9·1 answer
  • If wire rope guard rails are used what must also be done?
    10·1 answer
  • TRUE OR FALSE: If I ask you to span multiple rows in your table, that means that two columns will merge together
    5·1 answer
  • The loop body instructions in the _____ statement always are processed at least once.
    6·1 answer
  • when using presentation software, which menu can you use to duplicate a slide to use as a template for a new slide?
    14·1 answer
  • Which type of relationship is responsible for teaching you values and how to communicate?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!