Skip to content

Instantly share code, notes, and snippets.

View RaynZayd's full-sized avatar

Rayn Zayd RaynZayd

View GitHub Profile
@RaynZayd
RaynZayd / TestCondition.java
Created July 26, 2017 11:19
/*This program tests if the condition is true and does something , otherwise do something else. It demonstrates the use of the short-hand ternary for conditions "?:" By Rayn Zayd */
/*This program tests if the condition is true and does something , otherwise do something else. It demonstrates the use of the short-hand ternary for conditions "?:"
By Rayn Zayd
*/
public class TestCondition{
public static void main(String[] args){
int value1 = 5;
int value2 = 10;
int result;
boolean thisCondition = false;//compiles when set to true and prints 5
@RaynZayd
RaynZayd / CompareTest.java
Created July 26, 2017 11:20
/**This program demonstrates the use of Equality, Relational and Operators. It check if two integer value are equal, not equal, greater than, less than, great or equal to and less that or equal to then prints to the screen if true or false. By Rayn Zayd **/
public class CompareTest{
public static void main(String[] args){
int x = 10;
int y = 5;
System.out.println(x == y);
System.out.println(x != y);
System.out.println(x > y);
System.out.println(x < y);
System.out.println(x >= y);
@RaynZayd
RaynZayd / ArithTest.java
Created July 26, 2017 21:34
/*This program demonstrates the use of arithmetic operators. It carries out basic mathematical calculations. By Rayn Zayd */
/*This program demonstrates the use of arithmetic operators. It carries out basic mathematical calculations.
By Rayn Zayd
*/
public class ArithTest{
public static void main(String[] args){
int x = 10;
int y = 5;
int z = y;
@RaynZayd
RaynZayd / MarshyellowAbout.html
Created August 8, 2017 10:44
A fun html, css and w3.css success and prosperity website project that I created years ago.
<!DOCTYPE html>
<html>
<head>
<title>About</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
</head>
<body>
@RaynZayd
RaynZayd / CurrencyConverterGUI.java
Created November 13, 2017 11:33
Converts British Pounds Into US Dollars
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package learn;
import java.util.Scanner;
/**
*
@RaynZayd
RaynZayd / CurrencyConverter.java
Created November 13, 2017 11:34
Converts British Pounds Into US Dollars
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package currencyconverter;
/**
*
* @author Stato
@RaynZayd
RaynZayd / HelloWorld.java
Created May 29, 2019 09:30
Prints "Hello World" to the screen.
/*
* The print Hello World app
*/
/**
*
* @author raynz_000
*/
public class HelloWorld extends javax.swing.JFrame {
@RaynZayd
RaynZayd / Bicycle World Bash Project.sh
Last active October 22, 2020 09:26
BWelcome to Bicycle World Bash Project, the premier text-based bicycle shop! This shop is only accessible to programmers like you, who are familiar with the command line. In this project, I used the commands I learned to navigate and edit a filesystem. The filesystem is shown below. Main directory is bicycle-world-ii.
Bicycle World
Welcome to Bicycle World, the premier text-based bicycle shop! This shop is only accessible to programmers like you, who are familiar with the command line.
In this project, I used the commands I learned to navigate and edit the filesystem.
The filesystem is shown below. Main directory is bicycle-world-ii.
bicycle-world-ii
|—— brands.txt
|—— freight/
@RaynZayd
RaynZayd / Daily Buzz Bash Directory.sh
Last active October 22, 2020 09:25
Daily Buzz In this project, I used the commands I learned to navigate through files and directories of Daily Buzz, a national newspaper.
SETDEV ENVIRONMENT
Daily Buzz
In this project, I used the commands I learned to navigate through files and directories of Daily Buzz, a national newspaper.
Tasks completed:
1.Printed the working directory.
2.Listed all files and directories in the current working directory
3.With one command, I changed directories to the national/politics/ directory.
4.Listed all files and directories in the working politics/ directory.
@RaynZayd
RaynZayd / Kelvin Weather JavaScript Project.js
Last active October 22, 2020 09:24
Kelvin Weather Project Deep in a mountain-side meteorology lab, a mad scientist Kelvin mastered weather prediction. Recently, Kelvin began publishing his weather forecasts on his website. However there’s a problem: All of his forecasts describe the temperature in Kelvin. With the knowledge of JavaScript, I'll convert Kelvin to Celsius, then to F…
/*JAVASCRIPT SYNTAX
Kelvin Weather Project
Deep in a mountain-side meteorology lab, a mad scientist Kelvin mastered weather prediction.
Recently, Kelvin began publishing his weather forecasts on his website. However there’s a problem: All of his forecasts describe the temperature in Kelvin.
With the knowledge of JavaScript, I'll convert Kelvin to Celsius, then to Fahrenheit.
Accomplishments:
1.Used console.log and string interpolation to log the temperature in fahrenheit to the console.