STUDYSHIELDS ASSIGNMENT HELP

  • Home
  • Blog
  • Courses
    • Child Category 1
    • Child Category 2
    • Child Category 3
    • Child Category 4
  • Services
  • Country
    • Childcare
    • Doctors
  • Home
  • Blog
  • Sample Works
  • Order Now

Friday, February 5, 2016

You enjoy collecting marbles and keep them all in a jar

 February 05, 2016     No comments   

 You enjoy collecting marbles and keep them all in a jar. In this jar you have a variety of colors and for each color present in your jar you have the same amount of marbles. For example, if you have 40 marbles in the jar and four different colors (blue, red, green, white), then you will have 10 of each. Given that you'd rather not count ALL of the marbles in your jar you remove at least one of each color and ALL of the marbles of at least one color and from this you will calculate the total number of marbles in the jar. Example Execution #1: Enter data #1 or -1 to exit: 1 Enter data #2 or -1 to exit: 2 Enter data #3 or -1 to exit: 3 Enter data #4 or -1 to exit: 4 Enter data #5 or -1 to exit: 1 Enter data #6 or -1 to exit: 2 Enter data #7 or -1 to exit: 3 Enter data #8 or -1 to exit: 4 Enter data #9 or -1 to exit: 3 Enter data #10 or -1 to exit: 3 Enter data #11 or -1 to exit: 3 Enter data #12 or -1 to exit: 2 Enter data #13 or -1 to exit: 3 Enter data #14 or -1 to exit: 1 Enter data #15 or -1 to exit: 2 Enter data #16 or -1 to exit: -1 Total number of coins: 24 • Explanation – there are four unique colors (1, 2, 3, and 4) and all of the marbles of the third color (3) have been removed from the jar. The total of marbles is 24. Example Execution #2: Enter data #1 or -1 to exit: 3 Enter data #2 or -1 to exit: 3 Enter data #3 or -1 to exit: 3 Enter data #4 or -1 to exit: 5 Enter data #5 or -1 to exit: 5 Enter data #6 or -1 to exit: 5 Enter data #7 or -1 to exit: 8 Enter data #8 or -1 to exit: 2 Enter data #9 or -1 to exit: 8 Enter data #10 or -1 to exit: 2 Enter data #11 or -1 to exit: 2 Enter data #12 or -1 to exit: 8 Enter data #13 or -1 to exit: -1 Total number of coins: 12 • Explanation – there are four unique colors and three of each. All marbles have been removed from the jar. Additional Requirements: 1. Accept input and produce output exactly as seen in the example executions. ?
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Click Here to Place order

Popular Posts

  • A “criminal minds” Aileen Wournos individual will be your “patient”
     A “criminal minds” Aileen Wournos individual will be your “patient”  A brief history of the patient including diagnoses (documented or your...
  • CEO Jane Lionel has some hard decisions to make with regard to some of the company’
     CEO Jane Lionel has some hard decisions to make with regard to some of the company’solder hands, and even on the eve of that decision, I be...
  • Problem in Supply Chain
    Problem in Supply Chain Problem 2. (Chapter 11: The Storage and Handling System) Compare the constrast private ownership of storage space to...

Recent Posts

Unordered List

Pages

  • Home

Text Widget

Blog Archive

  • November 2022 (20)
  • October 2022 (50)
  • September 2022 (119)
  • August 2022 (107)
  • February 2022 (501)
  • January 2022 (443)
  • December 2021 (488)
  • November 2021 (1574)
  • October 2021 (28)
  • September 2021 (11)
  • July 2021 (8)
  • June 2021 (15)
  • May 2021 (39)
  • April 2021 (15)
  • March 2021 (303)
  • February 2021 (712)
  • January 2021 (903)
  • December 2020 (2)
  • September 2020 (33)
  • April 2016 (5183)
  • March 2016 (3763)
  • February 2016 (4356)
  • January 2016 (1749)
  • December 2015 (22)
  • November 2015 (147)
  • October 2015 (23)

Sample Text

Copyright © STUDYSHIELDS ASSIGNMENT HELP | Powered by Blogger
Design by Hardeep Asrani | Blogger Theme by NewBloggerThemes.com | Distributed By Gooyaabi Templates