Skip to content

Programming by Design

If you're not prepared to be wrong, you'll never come up with anything original. – Sir Ken Robinson

  • About
  • Java-PbD
  • C-PbD
  • ASM-PbD
  • Algorithms
  • Other

Author: William Jojo

DND Code

Posted on April 9, 2018January 11, 2021 By William Jojo
Uncategorized

Stats for the average human! DND Character Sheet The code shown below will perform [#]d{#}[+#] rolls. Examples: d20 d10 4d6 6d6+8 4d12 + 10 When you run this code, you will run it as: java RollD ‘4d12 + 10’ or java RollD 6d6+8 public class RollD { public static void usage() { System.out.println(“\n\nRollD {#}d##{+#}\n”); System.exit(1); … Read More “DND Code” »

Facilitating Learning – Final Project Specification – Spring 2018

Posted on March 25, 2018April 25, 2018 By William Jojo
Uncategorized

Overview In this project you will create your own network and connect it to the existing network infrastructure. You will also demonstrate your understanding of the process and develop team-building skills by working together to create a plan for documenting, deploying, testing and confirming your solution is complete. Your team’s network switch is labeled TEAM##, … Read More “Facilitating Learning – Final Project Specification – Spring 2018” »

Facilitating Learning and Emerging Technology – Final Project – Spring 2018

Posted on March 25, 2018March 25, 2018 By William Jojo
Uncategorized

[PROJECT WRITE-UP MINUS THE LEARNING OUTCOMES CHART] Project Design Below is the descriptive design response which is based in design principles using “an iterative dialogic structure that enables students to learn, but also enables teachers and the system to learn as well” (Laurillard, pp. 9-10). The project is designed to tap into student’s current knowledge … Read More “Facilitating Learning and Emerging Technology – Final Project – Spring 2018” »

Java Boilerplate

Posted on December 25, 2017March 25, 2020 By William Jojo
Other

Write enough programs and you’ll soon discover that there seems to be a good deal of repetition in your programming. There seems to always be a main() method somewhere. Swing programs nearly always extend JFrame – or some other JThing. So why do we continue to write the same code over again? Well, use a … Read More “Java Boilerplate” »

What if we didn’t have Character?

Posted on March 13, 2017March 14, 2020 By William Jojo
Code

Consider what things would be like without the wrapper classes. How could we classify chars? For instance, alphabetic, numeric, alphanumeric. Or how could you convert between case? CharEx.java public class CharEx { public static void main(String[] args) { char c; c = ‘a’; System.out.println(c); if ( c >= ‘0’ && c = ‘A’ && c … Read More “What if we didn’t have Character?” »

Network Details for CISS-150

Posted on May 26, 2016September 4, 2025 By William Jojo
Uncategorized

(Updated September 4, 2025) You are in good shape if you are familiar with IP addresses and subnets. If not, you should read Understanding TCP/IP addressing and subnetting basics. For this class, we will use a Class C, non-routable, private IP space when putting VMs on the network. This is identified by the following: IP … Read More “Network Details for CISS-150” »

Useful CISS-110 Stuff

Posted on February 15, 2016March 25, 2020 By William Jojo
Other

public class FunWithArrays { public static double calcAverage (int a, int b, int c, int d, int e, int f, int g, int h, int i, int j ) { return (a + b + c + d + e + f + g + h + i + j) / 10.0; } public static … Read More “Useful CISS-110 Stuff” »

Useful CISS-111 Stuff

Posted on February 4, 2016March 25, 2020 By William Jojo
Other

File Handling import java.util.Scanner; import java.io.FileReader; import java.io.PrintWriter; public class files { public static void main (String[] args) throws FileNotFoundException { String line, parts[]; int x; Scanner infile = new Scanner(new FileReader(“inputfile.txt”)); PrintWriter outfile = new PrintWriter(“outputfile.txt”); while(infile.hasNext()) { line = infile.nextLine(); parts = line.split(“:”); for (x = 0; x < parts.length; x++) outfile.println(parts[x]); } ... Read More “Useful CISS-111 Stuff” »

VMware Network Details for CISS-125

Posted on January 19, 2016January 28, 2019 By William Jojo
Uncategorized

If you are familiar with IP addresses and subnets, then you are in good shape. If not, you should read Understanding TCP/IP addressing and subnetting basics. For this class you will be using a Class C, non-routable, private IP space when putting your VMs on the network. This is identified by the following: IP Scope: … Read More “VMware Network Details for CISS-125” »

CISS-111 Project 1

Posted on December 3, 2015February 3, 2025 By William Jojo
CISS-111-Project

Project 1 Write a Java program to demonstrate using command line arguments to convert numeric quantities with a certain radix (counting base) to base ten numbers. You will employ the use of String methods indexOf() and substring() as well as the overloaded Integer method parseInt(). Take a look at the documentation on how to pass … Read More “CISS-111 Project 1” »

Posts pagination

Previous 1 … 15 16 17 … 19 Next

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Copyright © 2018 – 2025 Programming by Design.