All,
I use chatGPT+. I asked it to write a multivalue basic program to calculate a loan payment. This is the result.
0001: PROGRAM LoanPayment
0002: PRINT "Enter the loan amount: ";
0003: INPUT LoanAmount
0004: PRINT "Enter the annual interest rate (as a percentage): ";
0005: INPUT AnnualInterestRate
0006: PRINT "Enter the loan term in years: ";
0007: INPUT LoanTerm
0008:
0009: MonthlyInterestRate = (AnnualInterestRate / 100) / 12
0010: NumberOfPayments = LoanTerm * 12
0011:
0012: IF MonthlyInterestRate = 0 THEN
0013: MonthlyPayment = LoanAmount / NumberOfPayments
0014: ELSE
0015: MonthlyPayment = LoanAmount * MonthlyInterestRate * (1 + MonthlyInterestRate) ^ NumberOfPayments / ((1 + MonthlyInterestRate) ^ NumberOfPayments - 1)
0016: END
0017:
0018: PRINT "Monthly payment: ", MonthlyPayment 'R2'
0019: END
It took a bit of cajoling but within three corrections this was the end result.
Does anyone have a BNF or ANTLR definition of the BASIC language? I'd like to feed it into chatGPT and see how it improves the coding capability.
------------------------------
Jon Kristofferson
Pick Programmer
Snap-on Credit LLC
Libertyville IL US
------------------------------
Are you trying to put us out of a job? :-)
------------------------------
Samuel A Powell
President/Developer
Advanced Transportation Systems Inc
Colorado Springs CO US
------------------------------
Are you trying to put us out of a job? :-)
------------------------------
Samuel A Powell
President/Developer
Advanced Transportation Systems Inc
Colorado Springs CO US
------------------------------
Samuel,
Sadly no... Someone still needs to ask the questions and validate the results. No free time. I did see the TED talk with Greg Brockman the President and COB of OpenAI. Very interesting. He mentioned that you can ask ChatGPT to self check itself.
https://www.ted.com/talks/greg_brockman_the_inside_story_of_chatgpt_s_astonishing_potential?utm_source=tedcomshare&utm_medium=email&utm_campaign=tedspread
It is an amazing technology that could be used to bring life back to older applications. The trick is the application knowledge, not so much the coding prowess.
Jon
------------------------------
Jon Kristofferson
Pick Programmer
Snap-on Credit LLC
Libertyville IL US
------------------------------
Samuel,
Sadly no... Someone still needs to ask the questions and validate the results. No free time. I did see the TED talk with Greg Brockman the President and COB of OpenAI. Very interesting. He mentioned that you can ask ChatGPT to self check itself.
https://www.ted.com/talks/greg_brockman_the_inside_story_of_chatgpt_s_astonishing_potential?utm_source=tedcomshare&utm_medium=email&utm_campaign=tedspread
It is an amazing technology that could be used to bring life back to older applications. The trick is the application knowledge, not so much the coding prowess.
Jon
------------------------------
Jon Kristofferson
Pick Programmer
Snap-on Credit LLC
Libertyville IL US
------------------------------
Did you see this:
https://www.reuters.com/technology/google-one-ais-biggest-backers-warns-own-staff-about-chatbots-2023-06-15/
------------------------------
Tyrel Marak
Technical Support Manager
Aptron Corporation
Florham Park NJ US
------------------------------
Samuel,
Sadly no... Someone still needs to ask the questions and validate the results. No free time. I did see the TED talk with Greg Brockman the President and COB of OpenAI. Very interesting. He mentioned that you can ask ChatGPT to self check itself.
https://www.ted.com/talks/greg_brockman_the_inside_story_of_chatgpt_s_astonishing_potential?utm_source=tedcomshare&utm_medium=email&utm_campaign=tedspread
It is an amazing technology that could be used to bring life back to older applications. The trick is the application knowledge, not so much the coding prowess.
Jon
------------------------------
Jon Kristofferson
Pick Programmer
Snap-on Credit LLC
Libertyville IL US
------------------------------
Hi Jon:
I agree! - I was only joking. AI is great technology. However, it has a very long way to go before it can fully replace human intelligence.
Regards, Sam
------------------------------
Samuel A Powell
President/Developer
Advanced Transportation Systems Inc
Colorado Springs CO US
------------------------------
Did you see this:
https://www.reuters.com/technology/google-one-ais-biggest-backers-warns-own-staff-about-chatbots-2023-06-15/
------------------------------
Tyrel Marak
Technical Support Manager
Aptron Corporation
Florham Park NJ US
------------------------------
Tyrel,
I did not see that article in particular, however just logging in to ChatGPT+ you get several warnings.
I'm old enough to remember my younger sister showing me Google. I thought that was a leap of technology. ChatGPT has hit me the same way. It is a technology paradigm. I have used it not so much for writing code, although that was pretty cool, but for helping me develop algorithms to solve problems.
With each new advance in technology a certain amount of skepticism is required. But using the new technology also has its positive side.
------------------------------
Jon Kristofferson
Pick Programmer
Snap-on Credit LLC
Libertyville IL US
------------------------------
All,
I use chatGPT+. I asked it to write a multivalue basic program to calculate a loan payment. This is the result.
0001: PROGRAM LoanPayment
0002: PRINT "Enter the loan amount: ";
0003: INPUT LoanAmount
0004: PRINT "Enter the annual interest rate (as a percentage): ";
0005: INPUT AnnualInterestRate
0006: PRINT "Enter the loan term in years: ";
0007: INPUT LoanTerm
0008:
0009: MonthlyInterestRate = (AnnualInterestRate / 100) / 12
0010: NumberOfPayments = LoanTerm * 12
0011:
0012: IF MonthlyInterestRate = 0 THEN
0013: MonthlyPayment = LoanAmount / NumberOfPayments
0014: ELSE
0015: MonthlyPayment = LoanAmount * MonthlyInterestRate * (1 + MonthlyInterestRate) ^ NumberOfPayments / ((1 + MonthlyInterestRate) ^ NumberOfPayments - 1)
0016: END
0017:
0018: PRINT "Monthly payment: ", MonthlyPayment 'R2'
0019: END
It took a bit of cajoling but within three corrections this was the end result.
Does anyone have a BNF or ANTLR definition of the BASIC language? I'd like to feed it into chatGPT and see how it improves the coding capability.
------------------------------
Jon Kristofferson
Pick Programmer
Snap-on Credit LLC
Libertyville IL US
------------------------------
Hi, Jon!
We were recently thinking along similar lines with respect to ANTLR. It would be very interesting to include some of the special cases such as iconv or MV processing.
It looks like ChatGPT created everything from a standard BASIC vocabulary. Too bad it didn't think to include even simple error checking.
Rather than putting PICK experts out of a job, enabling Python and Java programmers to do some of the simple stuff might push the consideration of PICK top-of-mind. Maybe ChatGPT will start getting questions like "How can I get better response time for my 500-user telemarketing system?"
Maybe a simpler question is: Has anyone implemented ANTLR for syntax checking/validation?
It's on our back burner but we're willing to help!
Thanks!
Lamont
------------------------------
Lamont Lockwood
Partner Manager
Rocket Forum Shared Account
------------------------------