Categories
Program Ruby Tutorial

HackerRank – 30 Days of Code – Day 3: Intro to Conditional Statements – Ruby Program

Objective In this challenge, we’re getting started with conditional statements. Check out the Tutorial tab for learning materials and an instructional video! Task Given an integer, n, perform the following conditional actions: If n is odd, print Weird If n is even and in the inclusive range of 2 to 5, print Not Weird If […]

Categories
Ruby

HackerRank – 30 Days of Code – Day 2: Operators – Ruby Program

Objective In this challenge, you’ll work with arithmetic operators. Check out the Tutorial tab for learning materials and an instructional video! Task Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent (the percentage of the meal price being added as […]

Categories
Ruby

HackerRank – 30 Days of Code – Day 1: Data Types – Ruby Program

Objective Today, we’re discussing data types. Check out the Tutorial tab for learning materials and an instructional video! Task Complete the code in the editor below. The variables i, d,s  and are already declared and initialized for you. You must: Declare 3 variables: one of type int, one of type double, and one of type […]

Categories
Ruby

HackerRank – 30 Days of Code – Day 0: Hello, World. – Ruby Program

Objective In this challenge, we review some basic concepts that will get you started with this series. You will need to use the same (or similar) syntax to read input and write output in challenges throughout HackerRank. Check out the Tutorial tab for learning materials and an instructional video! Task To complete this challenge, you […]