Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

I am struggling to figure out this project it is all c code

I am struggling to figure out this project it is all c code.

Image 122.png
[ code*
If This code will compute the values of the sales ticket sales For concerts
and sort the Entries by those Values
If Developer : Faculty CHIELOZ
$!’ Date : Jan 31 , *^
# include < studio . “
# DEFINE MAKIN LOO !" " max characters in a group /’ concert name*
# DEFINE MAKE
50 I’M’ max concerts /’ groups
# DEFINE MAKE
If max categories
Char
TIQUE
[ MAKE ] [ MAXNT $
int
Fans
MAKE ] [ MAXCI !
Float PRICES
[MAXCY :
Float SALES
[ MAKEI {
int
count
= D :`
void printarray ! ! !
printE ( ‘ 715.575.575 5:5 5:1 05^ ^ ")
" Concert " *\
" 3 1 " *\
" 5 2 " ! "’ 53 " , "
` " sales " ) ;
For lint*
" I = O ; i < count ; 1+ + ! I
print= 1 ‘ 315: " , group lilli
For lint j = D; ] < MAXC; ]+ + ! !)
printE ( ‘ 650" , Fans lil lill :*
$ $ $ end for each category*
printE ( ‘ Z10 . 2 {‘n" , sales lilli
I’d end for each group*
If end function printArray*
void computeSales ! !`
Far lint i = O ; i
{ count ; it + ! !)
sales Lil = D :`
Far lint ]
j = D; ] < MAXC ; ] + + ! !`
sales [i] + = prices ]
If end For Each category*
* Fans Lilli] *
I’ and for each group*
1 / } and Function computesales
void switchRows lint m , int as I
char to`
int tif
Float Vi
" I’ printE ( " Switching Ed with Edin" , m , Jiji
Far lint i = O; 1 { MAKIN; 1+ + \\
to = group I’m] lil :`
group I’m] lil = group lalli] :`
group [allil = tci\
I’d end for each character in a group name
Far lint i = O ; 1 { MAXC ; 1+ + !`
Hi = Fans I’m] lili
Fans [ m] [i] = Fans In] [i] .
Fans [allil*
= tii
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"