Home Chat Gpt ChatGPT Can Now Do Your Coding Homework (Sure, Critically)

ChatGPT Can Now Do Your Coding Homework (Sure, Critically)

0
ChatGPT Can Now Do Your Coding Homework (Sure, Critically)

[ad_1]

As a scholar, each time I hear “ChatGPT” and “homework” in a sentence, my thoughts subconsciously goes to essays. I’m positive a few of you suppose that manner too. In spite of everything, it’s a text-to-text generative AI.

Effectively, I’m right here to let you know that that’s not the one kind of project ChatGPT can do.

For these learning code on the market who need just a little shortcut, it’s also possible to use ChatGPT to do your assignments for you. On this article, I’ll be discussing every part you want to find out about use GPT on your coding homework and the way dependable it truly is.

How Can ChatGPT Do Your Coding Homework?

There are two methods of utilizing ChatGPT to do your coding homework: one free and the opposite one is paid. I’m going to reveal each of them for you so you’ll be able to select which one matches your wants higher.

Utilizing Plain ChatGPT

The tremendous easy secret trick to getting ChatGPT to do your coding homework? Simply ask. That’s it. To reveal, let me ask it to make me a easy hangman recreation utilizing C++.

The code that got here with it’s too large for a screenshot however right here’s a glimpse of it:

As for the output, right here’s what it seems to be like:

Hmm, that’s odd. It’s not registering the proper letters. This could solely imply that there’s a logic error someplace within the code. If this occurs to you, don’t fear. ChatGPT can repair their errors as properly.

Now, let’s verify if the brand new code is logically sound.

And there we go. Now, for my ultimate modification, I need to see an precise hangman determine after I make an incorrect guess. So, again to ChatGPT we go.

And right here is our ultimate output:

It’s fairly superb, proper? However, right here’s the factor: What should you want a visible element to your output? One thing that may solely be described with figures and illustrations.

For that, we flip to GPT-4.

Utilizing GPT-4V(ision)

One of many coolest issues about GPT-4V is its skill to just accept picture prompts. This may also help you obtain what you want higher by making a tough illustration that GPT can observe. For instance:

As a substitute of a code block, GPT-4V gave me a downloadable HTML file containing the code. Here is what it seems to be like:

Not precisely good in seems to be, however does it work?

Yep! This trick is healthier in case your instructor has particular design directions however, should you’re given one thing that doesn’t require designs or wireframes to observe, you’re going to get by simply superb with plain ChatGPT.

What Else Can ChatGPT Do?

Programming assignments don’t cease at coding. There are different kinds of evaluation made to verify your talent stage. And sure, ChatGPT can do all of them too:

Debugging

Debugging could be a time-consuming course of, however ChatGPT may also help determine widespread errors in your code. Describe the difficulty you are dealing with (or just simply copy and paste the code into the chatbot) and ChatGPT can counsel potential options, serving to you debug your total code.

Code Optimization

Is your code operating slower than anticipated? ChatGPT can counsel methods to optimize your code by enhancing its effectivity with out compromising performance. From the easy act of cleansing up the empty areas in your code to finish useful resource administration, ChatGPT can simply make your code extra sturdy.

Code Translation

Some folks can’t code in Java, some can’t code in Python. It doesn’t imply they’re much less of a programmer — it simply means they want just a little assist. ChatGPT can code in any programming language, making it simple to translate code with only a single immediate.

How Good is ChatGPT at Leetcode?

All people who’s ever studied pc science is aware of and fears Leetcode. It’s principally a platform the place you’ll be able to prepare your self in creating environment friendly algorithms to resolve theoretical issues. Not solely that, however Leetcode can be an effective way to measure how correct ChatGPT really is at creating code.

Leetcode issues have three classes: simple, medium, and onerous. For this check, I took 5 questions per class, pasted the issue into ChatGPT, and copied its reply into Leetcode for checking. The next are the outcomes:

Sure, 100%. That’s scary good, particularly contemplating that even one of the best programmers on the planet fail one or two onerous Leetcode questions.

A Few Parting Phrases

While you’re utilizing ChatGPT to do your coding project, at all times bear in mind who’s actually drawing the quick straw. 

You.

Letting ChatGPT code for you deprives you of the information and expertise that comes with hands-on studying. Positive, in an organization, you’ll have entry to ChatGPT, Google, and different supplies. However you continue to should understand how the person items of code come collectively to create techniques. That’s what programming is.

So, my recommendation is let ChatGPT code for you however strive it your self first. In different phrases, don’t hand over earlier than throwing the primary punch. You too can ask ChatGPT to clarify the code line-by-line so you’ll be able to have a greater understanding of what every code block does.

After you perceive every part, go nuts with ChatGPT. It’s a invaluable coding assistant for any talent stage. However earlier than you attain that stage, strive higher.

[ad_2]