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
arlik [135]
3 years ago
9

Given the following code. float dollars[5] = {1986.10, 240.99, 215.50, 75.00, float euros[5]; Give the C++ code that will fill t

he euros array with the corresponding euro value dollars array. So the first element of euros will be equivalent to the euro vat clement of the dollars array, etc. Use the following formula: 1 dollar = .92 euro
Computers and Technology
1 answer:
Oksana_A [137]3 years ago
5 0

Answer:

#include <iostream>

using namespace std;

int main()

{

  float dollars[5] = {1986.10, 240.99, 215.50, 75.00, 65.97};

  float euros[5];

  for(int i=0;i<5;i++){

      euros[i] = dollars[i]*0.92;

  }

  for(int i=0;i<5;i++){

      cout<<euros[i]<<endl;

  }

  return 0;

}

Explanation:

First include the library iostream for input/output.

then, create the main function and declare the arrays.

after that, take a for loop for traversing through dollars array and convert into euros by multiply each element with 0.92 value and store in the euros array with same index value as dollars array.

finally, take the for loop for print each element of the euros array.    

You might be interested in
Your dive computer indicates you need to make a mandatory decompression stop. You buddy's dive computer does not. You should: A.
Sati [7]

Answer: Option C : Make a decompression stop that splits the difference between what your buddy's computer requires and what yours does.

Explanation:

Dive computers are battery-powered computers within a watertight and pressure resistant case. These computers track the dive profile by measuring time and pressure.

hence, making a decompression stop that splits the difference between what your buddy's computer requires and what yours does is the best option.

7 0
3 years ago
What are the six things you will learn this week on Scratch?
notka56 [123]

Answer:

1 You can learn to draw

2 You can learn to code

3 You can learn to make a thumbnail

4 You can learn how to follow yourself

5 You can learn  to remix your own projects

6 You can learn how to make a featured project you've never shared

Explanation:

8 0
3 years ago
Question of computer sciences​
BARSIC [14]

Answer:

a ans is cyber crime

b ans is hacking

c ans is cracker

d ans is computer ethics

e ans is phishing

4 0
3 years ago
Alice has 1/5 as many miniature cars as Sylvester has slyvester has 35 miniature cats how many miniature cars dose Alice have
garik1379 [7]
Alice has 7 miniature cars
5 0
3 years ago
When typing using the number row, your ___________________ is the proper finger to key the "6" key.
bazaltina [42]

Answer:

your left pointer finger

Explanation:

6 0
2 years ago
Read 2 more answers
Other questions:
  • How many rows and columns does ms-excel 2007 have???
    10·1 answer
  • Who is the primary audience for demonstrations of game prototypes made by the developer?
    8·1 answer
  • Lonnie has several workbooks that contain financial and sales data. He needs to ensure that if the data in a single cell in one
    5·1 answer
  • What is the most basic purpose of the Constitution?
    9·2 answers
  • What is technology? Technology advantages and disadvantages
    11·1 answer
  • Which of the following acts as the central authority in the network?
    10·1 answer
  • 8. A sprite is a simple spider shaped thing with n legs coming out from a center point. The angle
    10·1 answer
  • Select the best ansiver for each question below
    15·1 answer
  • What is intellectual property rights law ?​
    8·1 answer
  • The memory used by the CPU to temporarily hold data while processing is called _______. random access memory central processing
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!