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
Java - Using a method, how do I "write a program whose input is a character and a string, and whose output indicates the number
Ksju [112]

Answer:Java - Using a method, how do I "write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string. Y"

Explanation:

6 0
3 years ago
Key differences between software and books include all of the following except
nadya68 [22]

Answer:

D. software products are more easily compared to each other than books

Explanation: Softwares are programs installed in a Computer that enables and enhances the functions of the computer system. Software can be classified as either SYSTEM SOFTWARE OR APPLICATION SOFTWARES.

SYSTEM SOFTWARE is a program that comes with the computer system and enhances the working of the applicant software.

APPLICATION SOFTWARE is a program that is usually installed by the user to enhance the its use or for some specific works which the user intends to do.

SINCE SOFTWARES ARE INTANGIBLE ASSETS IF A COMPUTER THEY ARE NOT EASILY COMPARED TO EACH OTHER.

5 0
3 years ago
Read 2 more answers
The algorithm ____ is used to find the elements in one range of elements that do not appear in another range of elements.
Musya8 [376]

Answer:

A. set_union

Explanation:

The algorithm set_union is used to find the elements in one range of elements that do not appear in another range of elements.

4 0
3 years ago
Computer viruses often spread by means of what?
lozanna [386]
Email attachments hope this helps
8 0
3 years ago
Read 2 more answers
According to the word entry, how many definitions are there for the word syllable
Anarel [89]
: a unit of spoken language that is next bigger than a speech sound and consists of one or more vowel sounds alone or of a syllabic consonant alone or of either with one or more consonant sounds preceding or following

2: one or more letters (such as syl, la, and ble) in a word (such as syl*la*ble) usually set off from the rest of the word by a centered dot or a hyphen and roughly corresponding to the syllables of spoken language and treated as helps to pronunciation or as guides to placing hyphens at the end of a line

3: the smallest conceivable expression or unit of something : JOT

4: SOL-FA SYLLABLES

3 0
3 years ago
Other questions:
  • Which signal types are represented by a continuous waveform?
    10·1 answer
  • Samantha was calculating a mathematical formula on an electronic spreadsheet. She used multiple values to recalculate the formul
    7·2 answers
  • For this lab, youhave to write a programnamedseriesFunction.cthat prompts user to enter two values, x and n. Then it would use a
    11·1 answer
  • When completing an application what color ink do you use
    8·2 answers
  • Is ubisoft still making assassins creeds on xbox 360
    8·2 answers
  • When doing black and white photography, which file format should you use if possible? JPEG TIFF PNG RAW
    11·2 answers
  • Irene is creating a wireframe of a website she is working on to show her client. In which phase of the development process is sh
    13·1 answer
  • What are the two types of commennts of java​
    12·1 answer
  • Explain the importance of the educational apps.give an example to support your answer ​
    6·1 answer
  • HELP ME PLEASE 41 PTS
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!