Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Orteez's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    1
    My Mood
    Relaxed

    N[Help]simple project for average/expert coders

    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.

  2. #2
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    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

  3. #3
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    I skimmed over this and its really basic stuff, you should pay more attention in class. |:

  4. #4
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Lol What??
    Whats The Prize If This Is A Compitition???

    Dont Feel Like Wasting 2 Minutes Of My Life Without A Prize

  5. #5
    Orteez's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    1
    My Mood
    Relaxed
    I was absent for yesterdays lecture and she hasn't posted the notes on her website yet.

  6. #6
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by Orteez View Post
    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

  7. #7
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love
    names = strings
    numbers = unsigned longs

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




  8. #8
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Quote Originally Posted by whit View Post
    Lol What??
    Whats The Prize If This Is A Compitition???

    Dont Feel Like Wasting 2 Minutes Of My Life Without A Prize
    The joy of helping others? /

    "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

  9. #9
    [HE]Περσεύς[RO]'s Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Hacking and Exploitation Section
    Posts
    51
    Reputation
    10
    Thanks
    6
    My Mood
    Inspired
    Stop fucking trolling. Don't like it, don't comment.

  10. #10
    Orteez's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    1
    My Mood
    Relaxed
    She said she'll give me a 2 day extension which I wasn't expecting. Thanks for the help anyway though.

  11. #11
    doofbla's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Biel*****/Germany
    Posts
    369
    Reputation
    10
    Thanks
    179
    My Mood
    Psychedelic
    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 --->

  12. #12
    Orteez's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    1
    My Mood
    Relaxed
    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

  13. #13
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    lol, if you know about them then they are probably shut down by now, the cyber popos are out there

  14. #14
    Orteez's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    1
    My Mood
    Relaxed
    dude the owners of these websites live in like fucking africa or south america lol

  15. #15
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by Orteez View Post
    dude the owners of these websites live in like fucking africa or south america lol
    If they are as good as you say, you shouldn't know where they live.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help Request] Hamachi help anyone? Cookies for helper.
    By iTzS4m in forum Minecraft Help
    Replies: 1
    Last Post: 05-17-2011, 10:41 AM
  2. [Project]Browser Project for every1 who wanna help
    By Shadeyz346 in forum Visual Basic Programming
    Replies: 4
    Last Post: 07-31-2010, 07:31 AM
  3. [HELP]trying to do simple trainer for counter-strikesource
    By cheech123 in forum Visual Basic Programming
    Replies: 4
    Last Post: 02-17-2010, 09:29 PM
  4. Looking for help with project
    By straylight51 in forum Combat Arms Hacks & Cheats
    Replies: 3
    Last Post: 04-19-2009, 12:48 PM
  5. Help! i banned for nothing
    By eyalzamir2 in forum Suggestions, Requests & General Help
    Replies: 30
    Last Post: 05-06-2007, 08:36 AM