Skip to content Skip to footer

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

As a pupil, at any time when I hear “ChatGPT” and “homework” in a sentence, my thoughts subconsciously goes to essays. I’m certain a few of you suppose that method too. In any case, it’s a text-to-text generative AI.

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

For these finding out code on the market who need a bit shortcut, you can even use ChatGPT to do your assignments for you. On this article, I’ll be discussing every thing you should find out about the right way to use GPT in 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 show 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 show, let me ask it to make me a easy hangman sport utilizing C++.

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

As for the output, right here’s what it appears like:

Hmm, that’s odd. It’s not registering the right letters. This will 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 examine if the brand new code is logically sound.

And there we go. Now, for my ultimate modification, I wish 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 in case 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 capacity to simply accept picture prompts. This can assist you obtain what you want higher by making a tough illustration that GPT can observe. For instance:

As an alternative of a code block, GPT-4V gave me a downloadable HTML file containing the code. This is what it appears like:

Not precisely good in appears, however does it work?

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

What Else Can ChatGPT Do?

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

Debugging

Debugging is usually a time-consuming course of, however ChatGPT can assist establish frequent errors in your code. Describe the problem you are dealing with (or just simply copy and paste the code into the chatbot) and ChatGPT can recommend potential options, serving to you debug your complete code.

Code Optimization

Is your code operating slower than anticipated? ChatGPT can recommend methods to optimize your code by bettering 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 a bit assist. ChatGPT can code in any programming language, making it straightforward to translate code with only a single immediate.

How Good is ChatGPT at Leetcode?

All people who’s ever studied laptop science is aware of and fears Leetcode. It’s mainly 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 a good way to measure how correct ChatGPT truly is at creating code.

Leetcode issues have three classes: straightforward, medium, and arduous. 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 the most effective programmers on the planet fail one or two arduous Leetcode questions.

A Few Parting Phrases

Whenever you’re utilizing ChatGPT to do your coding task, at all times keep 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. Certain, in an organization, you’ll have entry to ChatGPT, Google, and different supplies. However you continue to need to understand how the person items of code come collectively to create methods. That’s what programming is.

So, my recommendation is let ChatGPT code for you however attempt it your self first. In different phrases, don’t hand over earlier than throwing the primary punch. You can too 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 thing, go nuts with ChatGPT. It’s a useful coding assistant for any ability stage. However earlier than you attain that stage, attempt higher.

Leave a comment

0.0/5