dude, this is simple, i am not going to answer this for you because it's obviously school work, i will suggest though that you use,
switch statement, or if statement. Switch would be better though, good luck
I think she wants us to use strings or something like that and variables also apply. Think she also started to mention stuff about Width and Precision which are commands that could help during this. Project description is below.
Rapper’s Delight
After the publicity generated from the “Even though nobody cares, I’m going to sell more records than Kanye” challenge made by 50 Cent, the rest of the hip-hop community decided to hop on the band wagon (or is it rap wagon?). Artists are claiming that they will outsell whoever else releases an album on the same day at such an alarming rate that the record industry has asked you to write a program to help them determine the winner.
During any given week, three artists release a new album. You are to prompt the user for the artist’s name, followed by the total number of albums sold for the week. There are two types of votes required per artist: “East Coast” and “Dirty South”. You are to repeat this process for all three artists.
Once you have obtained the artist information you are to display all of the information in a neatly formatted table. This table will show the artist’s name, the total number of albums sold for the artist and the overall percentage of records they sold.
Here is your sample output (all underlined values represent input and are subject to change)
Enter the name of artist # 1: Kanye West
Enter the number of albums Kanye West sold in the East: 2555111
Enter the number of albums Kanye West sold in the South: 145688
Enter the name of artist # 2: 50 Cent
Enter the number of albums 50 Cent sold in the East: 69881
Enter the number of albums 50 Cent sold in the South: 2
Enter the name of artist # 3: Paul McCartney
Enter the number of albums Paul McCartney sold in the East: 1588931
Enter the number of albums Paul McCartney sold in the South: 31558
*********************************Results *********************************
Artist Kanye West 50 Cent Paul McCartney
Records Sold 2700799 69883 1620489
Percentage 61.50 1.59 36.90
************************************************** ************************
Note that you will have to use proper alignment techniques and format all percentages to two decimal places.
All rules of style apply.
If you finish early, write additional code to display the name of who sold the most records (see chapter 4 for hints/tips).
Last edited by Orteez; 09-22-2010 at 06:54 PM.
dude, this is simple, i am not going to answer this for you because it's obviously school work, i will suggest though that you use,
switch statement, or if statement. Switch would be better though, good luck
I skimmed over this and its really basic stuff, you should pay more attention in class. |:
Lol What??
Whats The Prize If This Is A Compitition???
Dont Feel Like Wasting 2 Minutes Of My Life Without A Prize
I was absent for yesterdays lecture and she hasn't posted the notes on her website yet.
Here's a good lecture to help you with your homework.
Control Structures
names = strings
numbers = unsigned longs
未来が見えなくて怖いから
未来が見えてしまって悲しいから
目を閉じて優しい思い出に浸ってしまう
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
Stop fucking trolling. Don't like it, don't comment.
She said she'll give me a 2 day extension which I wasn't expecting. Thanks for the help anyway though.
for 10€ i'll make you such a program tomorow
_____________________________________________
READING TUTORIAL:
1. READ MY POST
2. THINK ABOUT MY POST
3. PRESS THANKS
4. MAYBE CORRECT MY POSTS :P
Dijkstra:
"Computer Science is no more about computers than astronomy is about
telescopes."
THANKS BUTTON RIGHT DOWN --->
10 euros will get me exclusive help access to one of those websites that actual hackers run... you know, the ones that rob bank accounts everyday
lol, if you know about them then they are probably shut down by now, the cyber popos are out there
dude the owners of these websites live in like fucking africa or south america lol