Question: C program. Please comment properly on code PLEASE Do not copy and paste wrong code Using initialization lists, create these one-dimensional arrays to: hold the

C program. Please comment properly on code

PLEASE Do not copy and paste wrong code

Using initialization lists, create these one-dimensional arrays to:

hold the names of the countries (see note below)

hold the names of the artists (see note below)

hold the streaming amounts for the 5 artists for the USA

hold the streaming amounts for the 5 artists for Canada

hold the streaming amounts for the 5 artists for the UK

hold the streaming amounts for the 5 artists for Australia

you may create additional one dimensional arrays to hold the country totals, and the artists totals but this is optional for this assignment. If you use these arrays, the totals must be calculated by your code using the arrays identified above

Use the data from the example below.

Your C program should take the data in the arrays described above, calculate the artists totals, calculate the country totals and produce the output below, neatly formatted as shown:

Output: (include all the titles)

Most Streamed Artists of 2021

by Country (millions)

Artist USA Canada UK Australia Totals

Ed Sheeran 871 105 291 97.7 1364.7

Drake 1590 109 140 43.2 1882.2

Eminem 1190 150 229 97.5 1666.5

Taylor Swift 993 102 98 66.5 1259.5

The Weekend 1140 126 157 71.0 1494.0

Totals 5784 592 915 375.9 7666.9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!