Skip to content

Instantly share code, notes, and snippets.

View mjcarnaje's full-sized avatar

Michael James Carnaje mjcarnaje

View GitHub Profile

Privacy Policy

Peravima built the Build My Wealth app as a Commercial app. This SERVICE is provided by Peravima and is intended for use as is.

This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.

If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Build My Wealth unless otherwise defined in this Privacy Policy.

[
{
id: 1,
label: "Debt",
description: "Shows the proportion of a person's assets that are financed by debt.",
info: "This ratio divides your total debts with your total assets.",
values: [
{
name: "Total Liabilities",
value: 1.9,
@mjcarnaje
mjcarnaje / II-1.c
Last active November 9, 2021 04:57
#include <stdio.h>
int main()
{
int index = 0;
for (int i = 1; i <= 16; i = i * 2)
{
printf("%2d %2d\n", index, i);
++index;
#include <stdio.h>
void odd_numbers(int first, int second)
{
for (int i = first; i <= second; i++)
{
if (i % 2 != 0)
{
printf("%d ", i);
}
"""
ord - return the Unicode code point for a one-character string.
pow - is a built in function that takes two arguments
the first argument is the number to be raised to the power of the second argument
"""
w = ord('L')
x = ord('y')
def main():
books = [
{
'title': 'The Giver',
'author': 'Lois Lowry',
'isBorrowed': False
},
{
'title': 'The Hunger Games',
'author': 'Suzanne Collins',
@mjcarnaje
mjcarnaje / check_if_a_number_is_odd_or_even.py
Last active August 18, 2022 07:07
Python Simple Programs
# Python program to check if the input number is odd or even.
# A number is even if division by 2 gives a remainder of 0.
# If the remainder is 1, it is an odd number.
num = int(input("Enter a number: "))
if (num % 2) == 0:
print("{0} is Even".format(num))
else:
print("{0} is Odd".format(num))
class Link:
def __init__(self):
self.value = None
self.nextLink = None
def setValue(self, value):
self.value = value
def setNext(self, nextLink):
self.nextLink = nextLink
@mjcarnaje
mjcarnaje / doubly_linked_list.py
Last active January 8, 2023 08:11
CCC121 Doubly Linked List
# CCC121 Laboratory Exercise No. 1
# Due: January 8, 2023 (Sunday) at 11:55PM
# The definition of the class for doubly-linked link objects. This class
# definition should not be modified in any way.
class DLink:
# definition of the instance initializer method
def __init__(self, it, prevval, nextval):
# define the fields by setting their initial values
self.elementField = it
@mjcarnaje
mjcarnaje / output.txt
Created January 8, 2023 08:05
Binary Tree Output
the tree size is: 0
inserting 1...
inserting 5...
inserting 2...
inserting 7...
inserting 4...
inserting 3...
inserting 5...
inserting 8...
inserting 9...