new semester, new repo structure

This commit is contained in:
2023-01-10 11:59:05 -06:00
parent 0a76658f85
commit ba6de6e18e
725 changed files with 1199 additions and 103 deletions

View File

@@ -0,0 +1 @@
,caleb,caleb-gaming-laptop-archlinux,24.08.2022 09:17,file:///home/caleb/.config/libreoffice/4;

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,70 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Lab3.java</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
pre {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
table {color: #888888; background-color: #313335; font-family: monospace}
.ST1 {color: #808080; font-family: monospace; font-weight: bold}
.comment {color: #808080}
.whitespace {color: #505050}
.ST2 {color: #ffc66d; font-family: monospace; font-style: italic}
.ST3 {color: #9876aa; font-family: monospace; font-style: italic}
.string {color: #6a8759}
.number {color: #6897bb}
.ST0 {color: #287bde}
.literal {color: #cc7832}
-->
</style>
</head>
<body>
<table width="100%"><tr><td align="center">/home/caleb/NetBeansProjects/ADSV Java/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/Lab3.java</td></tr></table>
<pre>
<span class="comment">/*</span>
<span class="comment"> * Click </span><span class="ST0">nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt</span><span class="comment"> to change this license</span>
<span class="comment"> * Click </span><span class="ST0">nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java</span><span class="comment"> to edit this template</span>
<span class="comment"> */</span>
<span class="literal">package</span> com.calebfontenot.lab3_1_calebfontenot;
<span class="literal">import</span> java.util.Scanner;
<span class="comment">/**</span>
<span class="comment"> *</span>
<span class="comment"> * </span><span class="ST1">@author</span> <span class="comment">caleb</span>
<span class="comment">*/</span>
<span class="literal">public</span> <span class="literal">class</span> Lab3 {
<span class="literal">public</span> <span class="literal">static</span> <span class="literal">void</span> <span class="ST2">main</span>(String[] args)
{
<span class="comment">// Create a scanner object</span>
Scanner input = <span class="literal">new</span> Scanner(System.<span class="ST3">in</span>);
<span class="comment">// Prompt for hight in feet</span>
System.<span class="ST3">out</span>.print(<span class="string">&quot;</span><span class="string">Enter the height (feet): </span><span class="string">&quot;</span>);
<span class="literal">double</span> height;
height = input.nextDouble();
<span class="comment">// Prompt for width in feet</span>
System.<span class="ST3">out</span>.print(<span class="string">&quot;</span><span class="string">Enter the width (feet):</span><span class="string">&quot;</span>);
<span class="literal">double</span> width;
width = input.nextDouble();
<span class="comment">// Calculate the area</span>
<span class="literal">double</span> area;
area = height * width;
<span class="comment">// Print area calculated</span>
System.<span class="ST3">out</span>.println(<span class="string">&quot;</span><span class="string">Calculated area is </span><span class="string">&quot;</span>+area);
<span class="comment">//create constants</span>
<span class="literal">final</span> <span class="literal">double</span> GALLONS_PER_SQUARE_FEET = <span class="number">150.0</span>;
<span class="comment">// calculate the gallons</span>
<span class="literal">double</span> gallons;
gallons = area/GALLONS_PER_SQUARE_FEET;
<span class="comment">//calculate the number of gallons needed to paint the wall </span>
System.<span class="ST3">out</span>.println(<span class="string">&quot;</span><span class="string">The amount of paint is </span><span class="string">&quot;</span> + gallons +<span class="string">&quot;</span><span class="string"> gallons.</span><span class="string">&quot;</span>);
}
}
</pre></body>
</html>

Binary file not shown.

View File

@@ -0,0 +1,57 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>MilesToKilometers.java</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
pre {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
table {color: #888888; background-color: #313335; font-family: monospace}
.ST1 {color: #808080; font-family: monospace; font-weight: bold}
.comment {color: #808080}
.whitespace {color: #505050}
.ST2 {color: #ffc66d; font-family: monospace; font-style: italic}
.ST3 {color: #9876aa; font-family: monospace; font-style: italic}
.string {color: #6a8759}
.number {color: #6897bb}
.ST0 {color: #287bde}
.literal {color: #cc7832}
-->
</style>
</head>
<body>
<table width="100%"><tr><td align="center">/home/caleb/NetBeansProjects/ADSV Java/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.java</td></tr></table>
<pre>
<span class="comment">/*</span>
<span class="comment"> * Click </span><span class="ST0">nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt</span><span class="comment"> to change this license</span>
<span class="comment"> * Click </span><span class="ST0">nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java</span><span class="comment"> to edit this template</span>
<span class="comment"> */</span>
<span class="literal">package</span> com.calebfontenot.lab3_1_calebfontenot;
<span class="literal">import</span> java.util.Scanner;
<span class="comment">/**</span>
<span class="comment"> *</span>
<span class="comment"> * </span><span class="ST1">@author</span> <span class="comment">caleb</span>
<span class="comment">*/</span>
<span class="literal">public</span> <span class="literal">class</span> MilesToKilometers {
<span class="literal">public</span> <span class="literal">static</span> <span class="literal">void</span> <span class="ST2">main</span>(String[] args)
{
<span class="literal">double</span> miles;
<span class="literal">double</span> km;
Scanner scanner = <span class="literal">new</span> Scanner(System.<span class="ST3">in</span>);
<span class="comment">//&gt; 1. Prompt the user to enter the number of miles</span>
System.<span class="ST3">out</span>.println(<span class="string">&quot;</span><span class="string">Please enter miles to convert into kilometers</span><span class="string">&quot;</span>);
<span class="comment">//&gt; 2. Read the miles and store it into a variable</span>
miles = scanner.nextDouble();
<span class="comment">//&gt; 3. Calculate the KM from the entered miles</span>
km = miles * <span class="number">1.67</span>;
<span class="comment">//&gt; 4. Display the result</span>
System.<span class="ST3">out</span>.println(<span class="string">&quot;</span><span class="string">You entered </span><span class="string">&quot;</span>+miles+<span class="string">&quot;</span><span class="string"> miles which is </span><span class="string">&quot;</span>+km+<span class="string">&quot;</span><span class="string"> kilometers</span><span class="string">&quot;</span>);
}
}
</pre></body>
</html>

Binary file not shown.

View File

@@ -0,0 +1,67 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>RunwayLength.java</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
pre {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
table {color: #888888; background-color: #313335; font-family: monospace}
.ST1 {color: #808080; font-family: monospace; font-weight: bold}
.whitespace {color: #505050}
.comment {color: #808080}
.ST2 {color: #ffc66d; font-family: monospace; font-style: italic}
.ST3 {color: #9876aa; font-family: monospace; font-style: italic}
.string {color: #6a8759}
.number {color: #6897bb}
.ST0 {color: #287bde}
.ST4 {font-family: monospace; font-style: italic}
.literal {color: #cc7832}
-->
</style>
</head>
<body>
<table width="100%"><tr><td align="center">/home/caleb/NetBeansProjects/ADSV Java/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/RunwayLength.java</td></tr></table>
<pre>
<span class="literal">package</span> com.calebfontenot.lab3_1_calebfontenot;
<span class="literal">import</span> java.util.Scanner;
<span class="comment">/*</span>
<span class="comment"> * Click </span><span class="ST0">nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt</span><span class="comment"> to change this license</span>
<span class="comment"> * Click </span><span class="ST0">nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java</span><span class="comment"> to edit this template</span>
<span class="comment"> */</span>
<span class="comment">/**</span>
<span class="comment"> *</span>
<span class="comment"> * </span><span class="ST1">@author</span> <span class="comment">caleb</span>
<span class="comment">*/</span>
<span class="literal">public</span> <span class="literal">class</span> RunwayLength {
<span class="literal">public</span> <span class="literal">static</span> <span class="literal">void</span> <span class="ST2">main</span>(String[] args)
{
<span class="comment">//Define data objects</span>
<span class="literal">double</span> length;
<span class="literal">double</span> acceleration;
<span class="literal">double</span> velocity;
<span class="comment">//Create scanner</span>
Scanner input = <span class="literal">new</span> Scanner(System.<span class="ST3">in</span>);
<span class="comment">//Prompt for input</span>
System.<span class="ST3">out</span>.print(<span class="string">&quot;</span><span class="string">Enter velocity: </span><span class="string">&quot;</span>);
velocity = input.nextDouble();
System.<span class="ST3">out</span>.print(<span class="string">&quot;</span><span class="string">Enter acceleration: </span><span class="string">&quot;</span>);
acceleration = input.nextDouble();
<span class="comment">//Calculate</span>
length = Math.<span class="ST4">pow</span>(velocity, <span class="number">2</span>) / (<span class="number">2</span> * acceleration);
<span class="comment">//Print calculation</span>
System.<span class="ST3">out</span>.println(<span class="string">&quot;</span><span class="string">The minimum runway length for this airplane is </span><span class="string">&quot;</span>+length);
}
}
</pre></body>
</html>

Binary file not shown.