Skip to content

Instantly share code, notes, and snippets.

View arielmagbanua's full-sized avatar
🏠
Working from home

Ariel Magbanua arielmagbanua

🏠
Working from home
View GitHub Profile
@arielmagbanua
arielmagbanua / concat.py
Created September 30, 2021 15:13
Concatenate Tuple
# concatenate tuple
data = (1, 2, 3)
result = ''.join([str(item) for item in data])
print(result)
@arielmagbanua
arielmagbanua / riceBags.md
Last active September 30, 2021 08:08
Rice Bags

Rice Bags

Provided that you have a given number big rice bags (5 kilos each), and then display the number of bags to be used for a certain kilos of rice as an input.

Starter Code

public class App {
 public static void main(String[] args) throws Exception {
@arielmagbanua
arielmagbanua / draw-box.md
Created September 17, 2021 07:31
Draw a Box

Draw a Box

Write a Java program that can draw a box with the given height, width, and character.

Starter Code

public class App {
    public static void main(String[] args) throws Exception {
 // scanner
@arielmagbanua
arielmagbanua / character-counter.md
Created September 17, 2021 07:21
Character Counter

Character Counter

Write a Java program that counts a character from the input string.

Starter Code

public class App {
    public static void main(String[] args) throws Exception {
 // scanner
@arielmagbanua
arielmagbanua / vowels-consonants.md
Created September 17, 2021 07:02
Vowels / Consonants

Vowels / Consonants

Write a Java program that counts the vowels and consonants of a input string.

Starter Code

public class App {
    public static void main(String[] args) throws Exception {
 // scanner
@arielmagbanua
arielmagbanua / reverseWords.md
Created September 16, 2021 08:47
Reversed Sentence

Reverse Words

Write a Java program to reverse the words in a sentence.

Starter Code

public class App {
    public static void main(String[] args) throws Exception {
 // scanner
@arielmagbanua
arielmagbanua / factorsn.md
Created September 16, 2021 08:33
Factors of a Number

Factors of a Number

Write a Java program to accepts an integer and count the factors of the number.

Starter Code

public class App {
    public static void main(String[] args) throws Exception {
 // scanner

Rectangle

Write a Java program to print the area and perimeter of a rectangle.

Starter Code

public class App {
    public static void main(String[] args) throws Exception {
 // scanner
@arielmagbanua
arielmagbanua / circleprod.md
Last active September 16, 2021 08:22
Circle

Circle

Write a Java program to print the area and perimeter of a circle.

Starter Code

public class App {
    public static void main(String[] args) throws Exception {
 // scanner
@arielmagbanua
arielmagbanua / eopn.md
Created September 16, 2021 07:52
Even / Odd / Positive / Negative

Even / Odd / Positive / Negative

Create a program that can identify of a integer is even or odd and if it is positive or negative.

Starter Code

public class App {
    public static void main(String[] args) throws Exception {
        // scanner
 Scanner scanner = new Scanner(System.in);