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
What computer would I need to set up my oculus quest 2 aka make my oculus quest 2 link to a computer?
Neko [114]

Answer:

Any computer would do as long as it isn't slow and has a good fps to render the games you plan to connect with. Make sure you have the correct cable though.

5 0
3 years ago
Read 2 more answers
______ view is generally used for creating, formatting and designing slide​
Sauron [17]
Normal view is generally used for formatting and designing slide
5 0
3 years ago
A cell's address, its position in the workbook, is referred to as a ________________ when it is used in a formula.
Inga [223]

Answer:

A cell's address, its position in the workbook, is referred to as a <u>cell reference</u>  when it is used in a formula.

5 0
3 years ago
Emily has to create an audio-visual presentation on animated movies. Which input device will she be LEAST likely to use while cr
Slav-nsk [51]
A joystick is less likely to be used while creating this presentation. Obviously, If your intention is to create an audio-visual presentation on animated movies, a computer should be used. With a computer, comes a keyboard, a mouse and a microphone as well.

A Joystick is used to control video games and play simulator games. Therefore, I do not see the need of using a joystick in this situation.

6 0
3 years ago
Templates contain common layout and formatting that can save you time by not having to recreate documents from scratch. True or
Anarel [89]
True because i had heard my friend doing her homework and i was helping her study
4 0
3 years ago
Other questions:
  • The ____ problem-solving cycle involves inputting code to an assembler, translating it to machine language, loading it into a Vo
    10·1 answer
  • What dod regulation governs the use of commercial wireless devices within the global information grid?
    13·1 answer
  • Sarah's employer purchased a health insurance plan that costs $750 per month. Sarah pays $75 toward the plan each month. What is
    5·2 answers
  • How do I only give 5 points and not 10?
    7·1 answer
  • What is a regular expression that would match any digit 1-999?
    12·1 answer
  • Write a C class, Flower, that has three member variables of type string, int, and float, which respectively represent the name o
    12·1 answer
  • Accessing disk is much slower than accessing memory. As a result, many file systems have been designed with various optimization
    7·1 answer
  • assume there are K sorted lists, each of n/k elements. We want to merge them into a single sorted list of n elements. Give an op
    7·1 answer
  • Question 1 of 10
    8·1 answer
  • Which of the following was the first computer-animated film to win animated film to win an academy award?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!