*calculated using the average life expectancy for males in The Netherlands
It appears I'm a little late to the party, but have a very happy birthday PT_!
I haven't prepared anything, so here is a page of random code from my java class.
Code:
Don't try to figure out a hidden message or anything, cause there isn't, it's really just an assignment I had to do.
I haven't prepared anything, so here is a page of random code from my java class.
Code:
package project6;
import java.io.*;
import javax.swing.JOptionPane;
class distance {
private double speed;
private double time;
public distance(double a, double b) {
speed = a;
time = b;
}
public double getSpeed() {
return speed;
}
public void setSpeed(double a) {
speed = a;
}
public double getTime() {
return time;
}
public void setTime(double b) {
time = b;
}
public double getDistance() {
return speed * time;
}
}
/**
* happy birthday?
*/
public class Project6 {
public static void main(String[] args) throws IOException {
double speed;
double time;
do {
String speedw = JOptionPane.showInputDialog("Please enter a speed");
String timew = JOptionPane.showInputDialog("Please enter a time");
speed = Double.parseDouble(speedw);
time = Double.parseDouble(timew);
} while (speed < 0 || time < 1);
distance distance1 = new distance(speed, time);
PrintWriter pw = new PrintWriter("myFile.txt");
pw.println("Hours Distance");
for (int i = 1; i <= time; i++) {
distance1.setTime(i);
pw.println(distance1.getTime() + " " + distance1.getDistance());
}
pw.close();
}
}
Don't try to figure out a hidden message or anything, cause there isn't, it's really just an assignment I had to do.
Thanks everyone! It was quite a fun day, though busy. Got my first driving lesson, but I survived, so no worries
Also:
*Someone* needs to time a very little bit better
Also:
*Someone* needs to time a very little bit better
Ha! You thought I forgot didn't you! Well thanks to the magic of time zones, I still have 5 hours left before I'm officially late!
I decided you give you a special picture in my HD picture program!
I decided you give you a special picture in my HD picture program!
Happy Birthday PT_ !
Message to population : beware when you walk, PT_ take car driving lessons !!!
Try to learn also the mechanical point of view of a car, it help a lot when there is a car problem specially during a travel.
Message to population : beware when you walk, PT_ take car driving lessons !!!
Try to learn also the mechanical point of view of a car, it help a lot when there is a car problem specially during a travel.
Happy birthday PT_!
Negativity: the best way to deal with my square imaginary friends. - LogicalJoe [2018]
Co-founder of TI-Toolkit.
-
iPhoenix
- friendly neighborhood site admin (Posts: 1918)
- 30 Oct 2019 08:45:32 am
- Last edited by iPhoenix on 30 Oct 2019 08:44:16 pm; edited 3 times in total
LogicalJoe wrote:
Happy birthday PT_!
Happy birthday!
Code:
(d=document).body.appendChild(p=d.createElement("pre")),i=0,(a=x=>{for(p[q="innerText"]="",j=20;--j;)p[q]+=(j-i?j>i|j+8<i?"":" "+")("[(i+j)%2]:' .-"-. \n| |\n -.,.- ')+"\n";++i<20?setTimeout(a,99):p[q]+="happy birthday, PT_!"})();
JS,
I don't feel bad about this, it's my code anyways :V
Code:
q=0,setInterval(l=>{q++,document.body.innerHTML=atob("SGFwcHkgQmlydGhkYXkgUFRfIQ==").split("").map((l,o)=>'<f style="color:hsl('+360*(o+q)/50+',100%,50%)">'+l+"</f>").join("")},20);
Womp's thing, JS, 183 bytes
Unsure how to begin programming calculators? Check out awesome-ti-docs, a guided selection of resources from across the community.
Code:
s=[atob("SGFwcHkgQmlydGhkYXkgUFRfIQ==")];q=0,a=x=>{q++;document.body.innerHTML=s.map((x,j)=>x.split('').map((x,i,a)=>'<f style="color:hsl('+(360*(i+q+j))/50+',100'+'%,50%)">'+x+'</f>').join(''))}
setInterval(a,20);
Thanks to _iPhoenix_ for basically writing this.
Don't try this on a physical calc, kids
Code:
Code:
[i]BDAY
Begin()
SetTextFGColor(255
SetTextBGColor(0
Call A
End //gfx
Lbl A
SetTextFGColor(randInt(1,255
PrintStringXY("Happy B-Day!!",0,0
ZeroScreen()
Pause 1000
Return
Code:
// Program Name: Birthday
// Author(s): epsilon5
// Description: says happy birthday
/* Keep these headers */
#define FORCE_INTERRUPTS
#include <tice.h>
/* Standard headers - it's recommended to leave them included */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
/* Other available headers */
// including stdarg.h, setjmp.h, assert.h, ctype.h, float.h, iso646.h, limits.h, errno.h
/* Available libraries */
// including lib/ce/graphc.h, lib/ce/fileioc.h, and lib/ce/keypadc.h
// Sample: #include <lib/ce/graphc.h>
#include <graphx.h>
#include <fileioc.h>
#include <keypadc.h>
#include <intce.h>
#include <tice.h>
#include <math.h>
void main(void) {
gfx_Begin();
gfx_SetDraw(1);
gfx_SetTextScale(2, 2);
while (!(kb_Data[6] & kb_Enter)) {
kb_Scan();
gfx_FillScreen(randInt(0, 255));
gfx_SetTextFGColor(randInt(0, 255));
gfx_PrintStringXY("Happy birthday PT_!", 5, 5);
gfx_SwapDraw();
}
gfx_End();
}
Past projects: HailStorm CE | Contagion CE | HUE CE | VYSION CE || Current projects: VYSION 2 CE | Crossroads CE
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
» Go to Registration page
» Goto page Previous 1, 2, 3, 4 Next
» View previous topic :: View next topic
» View previous topic :: View next topic
Page 2 of 4
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Advertisement