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
Zinaida [17]
2 years ago
9

Create an array of 7 words,named "temperatures"containing daily temperatures for a week. Temperatures can be positive or negativ

e values. Write a program to count number of days of extreme temperature, that is, less than -10or greater than +25. You may allow the user to input the 7 temperatures, or hardcode it. But make sure that there are extreme temperatures. Display the number of days of extreme temperature
Computers and Technology
1 answer:
zepelin [54]2 years ago
3 0

Answer:

// program in C++.

// headres

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

   // array

   int temperatures[7];

   // count variable

   int count=0;

   cout<<"Enter the temperature of all days:";

   for(int a=0;a<7;a++)

   {

       // read temperature of 7 days

       cin>>temperatures[a];

       // find temperature is extreme or not

       if(temperatures[a]<-10||temperatures[a]>25)

       // count

       count++;

   }

   // print count of extreme temperature

   cout<<"number of days of extreme temperature:"<<count<<endl;

return 0;

}

Explanation:

Create an array of size 7 to store the temperature of all days of week.Read the temperature of each day.If the temperature is less than -10 or greater than 25 then increment the count.This will count the number of days of extreme temperature.Print  the count.

Output:

Enter the temperature of all days:-20 12 18 30 32 -15 15                                                                  

number of days of extreme temperature:4

You might be interested in
What is a license that is paid for by number of machines or number of people using the software?.
Kamila [148]

A license that is paid for based on the number of machines or number of people using the software application (program) is called: purchased license.

<h3>What is a software license?</h3>

A software license can be defined as a formal agreement between an end user (customer) and the owner of a software program or software developer, that allows him or her to perform certain tasks with the software application (program).

<h3>The types of software.</h3>

In Computer technology, there are three (3) main types of software programs based on usage rights and these include the following:

  • Shareware
  • Freeware
  • Purchased license

In conclusion, a purchased license is a type of license that is typically being paid for based on the number of machines or number of people that are using the software application (program).

Read more on software here: brainly.com/question/25703767

5 0
2 years ago
Select the correct answer.
Pachacha [2.7K]
B) Spreading the news about the incident response plan is not a good idea. If an incident was intentionally caused by a malicious person or group, knowing your response plan gives them information about how to make things worse.
3 0
3 years ago
What operating system do you use on your personal computer or mobile device
soldier1979 [14.2K]

The most popular Operating Systems are:

Android

IOS

Windows

5 0
3 years ago
How has technology change in film?
Murljashka [212]
With digital technology, the storage method has changed and today it is much easier to handle and transport movies to theatres than in the past. Servers, hard disks and video tapes are being used to store movies and digital projectors are being used to screen them.
6 0
3 years ago
Read 2 more answers
Before you create a pivot table, it is important to __.
Reptile [31]

Before you create a pivot table, it is important to <em><u>Create a database</u></em>.

Option: A

<u>Procedure to create Pivot Table: </u>

1. Select the cells and table in the sheet containing the data you want to use.

2. Go to the Insert tab and click the PivotTable command.

3. In the dialog box ‘Create PivotTable’ will appear. Choose your settings, then click OK. In our example, we will use Sheet1 as our source data and insert the PivotTable on a new worksheet.

4. The Field List and blank PivotTable will appear on a new worksheet.

5. Once you create a PivotTable, you have to decide which fields to add. Each field has a simple column header from the source data. In the PivotTable Field List, check the box for each field you want to add.  

6. The selected fields will be added to one of the four areas below the Field List. In our example, the Salesman field has been added to the Rows area, while the Order Amount has been added to the Values area. Alternatively, you can click, hold, and drag a field to the desired area.

7. The PivotTable values will calculate and summarize the selected fields. In our example, the PivotTable shows the amount sold by each salesman.

8 0
2 years ago
Read 2 more answers
Other questions:
  • Database management systems _____. a. include transaction-processing reports for database analysis b. are used to create, organi
    6·1 answer
  • The flagging of an uncommon last name as a spelling error can be stopped by opening the shortcut menu on the first occurrence of
    7·1 answer
  • What is the command to disable any Processes in linix??
    6·1 answer
  • Which systems provide a single, cohesive platform
    11·1 answer
  • A compression scheme for long strings of bits called run-length encoding is described as follows: Rather than record each 0 and
    8·1 answer
  • The Internet began when a large company wanted to sell products online.
    11·2 answers
  • Write a program that prompts the user for a word or phrase, and determines if the entry is a palindrome. A palindrome is a word
    9·1 answer
  • Adassadad saflalfaklfajfklajfalkfjalkfjalkfalkf
    6·2 answers
  • How can touch typing increase productivity of a business?
    15·2 answers
  • Hi can someone please help me with this homework please?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!