Are you considering becoming a member to access solutions/code listings for our computing challenges? If so, the following FAQ should help you take the right decision.
When accessing a challenge, if a solution is provided, you can see the following message at the bottom of the page. Once logged in, this message will be replaced with the actual solution/code listing for the challenge.
Solution...
The solution for this challenge is available to full members!Find out how to become a member:
➤ Members' Area
For programming challenges, the solution will be provided as a code listing in the language used in the blog post (e.g. Python, HTML/CSS/JavaScript, LMC, SQL, etc.). In most cases, the code will be provided “as is”. The solutions do not include step by step tutorials or detailed explanations. Here is an example of what a solution for a programming challenge looks like:
Solution...
You are viewing this solution as part of your full membership subscription!Python Code
#CMYK to RGB Conversion Algorithm - www.101computing.net/cmyk-to-rgb-conversion-algorithm def menu(): print("################################") print("# #") print("# CMYK/RGB Convertor #") print("# #") print("################################") print("") option="" while option!="3": print("To convert from CYMK to RGB press 1") print("To convert from RGB to CMYK press 2") print("To exit press 3") option = input("Your choice?") if option=="1": CMYK_to_RGB() elif option=="2": RGB_to_CMYK() elif option=="3": print("Good bye!") break else: print("Invalid option, try again!") def CMYK_to_RGB(): print("You selected CMYK to RGB Conversion") #Add code to retrieve user inputs (C,M,Y,K) c = int(input("Cyan:")) m = int(input("Magenta:")) y = int(input("Yellow:")) k = int(input("Black:")) #Apply Conversion formulas r = int(255 * (1-c/100) * (1-k/100)) g = int(255 * (1-m/100) * (1-k/100)) b = int(255 * (1-y/100) * (1-k/100)) #Output R,G,B values print("Red: " + str(r)) print("Green: " + str(g)) print("Blue: " + str(b)) print("-------------------------------") def RGB_to_CMYK(): print("You selected RGB to CMYK Conversion") #Add code to retrieve user inputs (R,G,B) r = int(input("Red: ")) g = int(input("Green: ")) b = int(input("Blue: ")) #Apply Conversion formulas if r>=b and r>=g: k = 1 - r/255 elif g>=r and g>=b: k = 1 - g/255 else: k = 1 - b/255 c = (1 - r/255 - k) / (1 - k) m = (1 - g/255 - k) / (1 - k) y = (1 - b/255 - k) / (1 - k) #Output C,M,Y,K values print("Cyan: " + str(int(c*100)) + "%") print("Magenta: " + str(int(m*100)) + "%") print("Yellow: " + str(int(y*100)) + "%") print("Black: " + str(int(k*100)) + "%") #Main Program Starts here menu()
For other types of challenges (e.g. quizzes, crosswords, Q&A, …), correct answers or model answers will be provided.
- Fill in your details on the registration page.
- Click the “Register / Proceed to payment” button at the bottom of the registration form.
- Pay online using either a Paypal account or your credit card.
Your full year membership will be activated straight away on receipt of your payment.
Already a member? Here is our troubleshooting FAQ
Once logged in, if your payment has been accepted, the solution, when available, will automatically appear at the bottom of the challenge page. You will also have a new navigation bar at the top of the website to access a list of all challenges for which a solution is provided: