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
yawa3891 [41]
3 years ago
9

Assume that two int constants,FIRST_YEAR and LAST_YEAR have already been declared and initialized with year values (like 2009, 2

014), along with a double variable oil that has been initialized with the number of barrels of oil consumed in Canada in the year given by FIRST_YEAR.
Computers and Technology
1 answer:
levacccp [35]3 years ago
8 0

Answer:

#include <iostream>

using namespace std;

int main()

{

int count;

double oil=10.88;

int FIRST_YEAR=2009,LAST_YEAR=2014;

count = FIRST_YEAR;

do

{

cout << count << ": " << oil << endl;

oil *= 1.20;

count++;

} while ( count <= LAST_YEAR );

return 0;

}

Explanation:

  • Declare the required variables.
  • Use a do-while loop that runs from first year to last year .
  • Display count of oil .
  • Increment oil by 20%  and count by 1.
You might be interested in
TO Cloud
scoray [572]

The type of situation would it make sense to use edge computing is   where critical decisions must be made on a split-second basis.

<h3>What is edge computing?</h3>

Edge computing is known to be a kind of computing which often occur on site or near a specific data source, it reduces the need for data to be processed in a distance data center.

Note that The type of scenario  that would it make sense to use edge computing is  when critical decisions must be made on a split-second basis as it requires urgency.

Learn more about edge computing from

brainly.com/question/23858023

7 0
2 years ago
How long does it take 2 consultants to create a slide deck of 120 slides, assuming one consultant make 2 slides per hour?
maw [93]

Answer:

30 hours

Explanation:

the equation would be

120/ (2*2)= 120/4=30

4 0
4 years ago
You have just created this algorithm and want to make it less complex without changing its output. What type of function should
Mariulka [41]

Algorithm analysis is an important part of computational complexities. The complexity theory provides the theoretical estimates for the resources needed by an algorithm to solve any computational task. Analysis of the algorithm is the process of analyzing the problem-solving capability of the algorithm in terms of the time and size required

3 0
3 years ago
How can a user access the Mailbox Cleanup tools?
antiseptic1488 [7]

Answer:

Sorry this isn’t an answer but does anyone know of a quizlet for the Microsoft Office course because I can’t find anything anywhere. Help a fellow student out. I need answers.

Explanation:

8 0
3 years ago
Read 2 more answers
What would you call yourself if you were a shinobi
Anestetic [448]

Answer:

someone really deleted my previous answer to this wow...

Explanation:

3 0
3 years ago
Other questions:
  • You are tasked with setting up an employee’s computer.Instead of a new computer,she will be using a computer with an older opera
    11·2 answers
  • Lindsay owns a candy store that typically makes all if its sales to tourists visiting a nearby zoo. Why might she decide to set
    14·2 answers
  • Which tab is used to edit objects on the Slide Master and layouts?
    6·1 answer
  • I accidentally pressed the challenge button while I was scrolling through. I didn't mean to press that challenge, instead of the
    11·2 answers
  • 1.Can ICTs be innovatively used in the absence of minimum literacy levels among the poor?
    5·1 answer
  • Why is it important to carefully order events in a personal narrative?
    12·1 answer
  • Write a method manyStrings that takes an ArrayList of Strings and an integer n as parameters and that replaces every String in t
    6·1 answer
  • The statement which assigns value to variable is called a........................statement in c++
    11·1 answer
  • I have a variable and set it equal to 5. 1 then send it as an argument to a function that adds 5 to the variable passed in. Outs
    9·1 answer
  • Given the IPv4 address in CIDR notation 215.200.110.50/25, identify the subnet ID that this address belongs to.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!