Skip to content

Forum in maintenance, we will back soon 🙂

Prompt For Writing ...
 
Notifications
Clear all

Prompt For Writing a Java Program

8 Posts
4 Users
12 Reactions
366 Views
(@mathros)
Posts: 36
Trusted Member
Topic starter
 

Hello. I continue to practice writing Chat GPT Prompts. So, when writing another prompt, the following problem arose.

Prompt:

Ignore all previous instructions until this one. You are an experienced Java programmer. You've been helping people write Java code for 20 years. Your task now is to help me write a Java program for my needs. So, write a java program on the topic [topic] and do detailed commenting of each line of the program code. [topic]="Solution of systems of linear equations by Kramer's method"

As a result, periodically, I get the following:

... ... ...
// Method for calculating the determinant of a matrix

private static double calculateDeterminant(double[][] matrix) {

    // Implementation of determinant calculation

    // Important: This method is still unimplemented 

    return 0; // It is necessary to implement the calculation of the determinant
}
... ... ...

Please let me know if it is possible to avoid such results. I would like Artificial Intelligence to produce a 100% working software product, without the need to add code fragments yourself.

 
Posted : 01/20/2024 5:09 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@mathros all you can do is to ask it to write the details of the function where it gives you generic output. Are you using GPT 4 or 3.5?

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 01/21/2024 1:35 am
Fajil Hossen reacted
(@mathros)
Posts: 36
Trusted Member
Topic starter
 

Posted by: @ssadvisor

Are you using GPT 4 or 3.5?

3.5

 
Posted : 01/21/2024 7:34 am
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@mathros you'll get better results with GPT 4.

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 01/21/2024 3:26 pm
Fajil Hossen reacted
(@google-morufopeyemi)
Posts: 1
New Member
 

Please I want to learn java script, how can I get started 

 
Posted : 01/28/2024 6:24 am
Fajil Hossen reacted
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@google-morufopeyemi look into the TypeScript language which is based on javascript.

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 01/28/2024 4:00 pm
Fajil Hossen reacted
(@google-md-shahinalam)
Posts: 1
New Member
 

I want to learn java script

 
Posted : 05/14/2024 4:53 am
Fajil Hossen and Md Juel reacted
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@google-md-shahinalam https://www.freecodecamp.org/news/full-javascript-course-for-beginners/

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 05/14/2024 1:35 pm
Fajil Hossen reacted
Share: