You need to sign in to do that
Don't have an account?
chaitanyakuamar Teru
apex developer code
# create a map
chirutha - ramcharan
magadheer - ramcharan
orange - ramcharan
billa - prabhas
bhahuballi - prabhas
mirchi - prabhas
Data having be like
moviename - rating - collection
chirutha - 3 - 12cr
magadheer - 4 - 75cr
orange - 2 - 12cr
billa - 3 - 30cr
bhahuballi - 4 - 1000cr
mirchi - 4 - 50cr
# output will be like
Ramcharan acted in '3' movies .2 movies (chirutha , magadheera) hit with a collection of (12+75)=(87cr). 1 movie(orange) will be flop with the collection of (12cr).
# similar to the second one (prabahas)
hint : here movie rating between 1-2 declare as (flop), 3 will be declare as (average), 4& above will be declare as (hit)
chirutha - ramcharan
magadheer - ramcharan
orange - ramcharan
billa - prabhas
bhahuballi - prabhas
mirchi - prabhas
Data having be like
moviename - rating - collection
chirutha - 3 - 12cr
magadheer - 4 - 75cr
orange - 2 - 12cr
billa - 3 - 30cr
bhahuballi - 4 - 1000cr
mirchi - 4 - 50cr
# output will be like
Ramcharan acted in '3' movies .2 movies (chirutha , magadheera) hit with a collection of (12+75)=(87cr). 1 movie(orange) will be flop with the collection of (12cr).
# similar to the second one (prabahas)
hint : here movie rating between 1-2 declare as (flop), 3 will be declare as (average), 4& above will be declare as (hit)
I understand the maps you provide,But your input and output is not clear to me, for now, I think this is your input # create a map
chirutha - ramcharan
magadheer - ramcharan
orange - ramcharan
billa - prabhas
bhahuballi - prabhas
mirchi - prabhas
Data having be like
moviename - rating - collection
chirutha - 3 - 12cr
magadheer - 4 - 75cr
orange - 2 - 12cr
billa - 3 - 30cr
bhahuballi - 4 - 1000cr
mirchi - 4 - 50cr
what is the output ? You want to calculate hit movies collection accordint to the actor name? or something else?
actor name + total movies + hit movie names & collection + avg movie name & collections + flop movie name & collections .
# output will be like in bellow format
ex : ram charan +total movies (3) + (chirutha,magadheera) hit movie collection (87cr) + no avg movie fr ramcharan + (orange) flop movie collection (12cr).