Showing posts with label Grocery Product Display Using One-Dimensional Array in Ruby. Show all posts
Showing posts with label Grocery Product Display Using One-Dimensional Array in Ruby. Show all posts

Sunday, June 30, 2019

Grocery Product Display Using One-Dimensional Array in Ruby

A simple program that I wrote using a one-dimensional array in Ruby to display the product number and product name.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com


Program Listing

# sample1.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : June 30, 2019  Sunday  2:24 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Website  : http://www.jakerpomperada.com
# Emails   : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
puts "\n\n"
print "\tGrocery Product Display Using One-Dimensional Array";
puts "\n\n"
item_no = [1,2,3,4,5]
products = ['Coke','Lucky Me','Milo','Argentina','Nido']

print("\t");
print item_no[0] 
print("\t")
print products[0]
puts("\n");
print("\t")
print item_no[1] 
print("\t")
print products[1]
puts("\n");
print("\t")
print item_no[2] 
print("\t")
print products[2]
puts("\n");
print("\t")
print item_no[3] 
print("\t")
print products[3]
puts("\n");
print("\t")
print item_no[4] 
print("\t")
print products[4]
print "\n\n";
print "\tEND OF PROGRAM";