<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Comic Sans MS">After our Saturday Zoom session
discussion on using AI to write code I went to the OpenAI website
and started ChatGPT 3.5.<br>
<br>
Oh my!<br>
<br>
My first query </font>"write c code to compare files" gave me<br>
<br>
<i><font size="4" face="Arial">"Certainly! Below is a simple example
of C code that compares two files. The program reads the
contents of both files and compares them byte by byte. If any
difference is found, it prints a message indicating the first
differing byte and exits. If the files are identical, it prints
a message saying so."<br>
</font><br>
</i><font face="Comic Sans MS">It then spit out the code</font><font
face="Comic Sans MS"> which I haven't tested, but it</font><i><font
face="Comic Sans MS"> </font></i><font face="Comic Sans MS">was
pretty</font><i>.<br>
<br>
</i>I tried getting it to write code for an Android phone<br>
<i><br>
I asked "</i>write program for android phone to invert audio"<br>
and also asked "create program to encrypt audio on android
phone"<i> <br>
<br>
</i>In a couple of seconds I had code, once again I've not tested
them. For the second one it gave a paragraph of advice and then
step by step instructions<br>
The advice<br>
<br>
<font size="4" face="Arial">"Encrypting audio involves a more
complex process than the basic inversion shown in the previous
example. It typically requires the use of cryptographic algorithms
to ensure the security of the data. Below is a simple example that
demonstrates how to encrypt and decrypt audio using the Advanced
Encryption Standard (AES) algorithm in Android. Keep in mind that
security is a complex topic, and this example is for educational
purposes only. In a real-world scenario, it's recommended to use
well-established encryption libraries and follow best practices.</font><i><font
size="4" face="Arial">"</font><font size="4"><br>
</font><br>
<br>
</i>I finished off my play session by asking ChatGPT<i> to "</i>create
window executable file to create random numbers"<br>
<br>
The machine said <i><font size="4" face="Arial">"Creating a simple
Windows executable file to generate random numbers can be done
using a programming language like C++. Below is an example code
using C++ that generates a specified number of random integers
and prints them to the console. We'll then compile it into a
Windows executable using a tool like MinGW."</font></i><br>
<br>
It wrote the code and then went on to give me the command line to
compile it once I'd installed MinGW.<br>
<br>
<font face="Comic Sans MS">Well folks I was impressed, kind of
scared too. Can that darn thing ask itself questions?</font><br>
<i><br>
<br>
<br>
<br>
</i><br>
</body>
</html>