Prompt Details
Model
Chat - GPT-3.5 (gpt-3.5-turbo)
Token size
182 ($0.00040 / call)
Example input
Level = Intermediate
Language = C
Example output
Problem: Write a C program to find the sum and average of n numbers.
Instructions:
-Ask the user to enter the value of n.
-Ask the user to enter n numbers.
-Calculate the sum and average of the n numbers.
-Print out the sum and average to the console.
Sample Output:
Enter the value of n: 5
Enter 5 numbers:
1
2
3
4
5
The sum of the 5 numbers is: 15
The average of the 5 numbers is: 3.00
After you complete the assignment, please submit your code to me for grading. I will provide feedback and corrections as necessary, along with a score from 0-100. If you have any questions or need any further assistance, please let me know.
Get this prompt + 9 more with Select$14 your first month, then $19/mo$14 first month, then $19/mo
View SelectBy purchasing this prompt, you agree to our terms of service
GPT-3.5-TURBO
Just started coding lessons? or want a refresher on certain languages?
Try our Coding Assignment Creator which can give you problems in Python, C++, C, Java, JavaScript, PHP, Ruby, Swift, Objective-C, C#, Perl, SQL, HTML/CSS, R, MATLAB, TypeScript, Kotlin, Go, Rust, Lua, Scala, Haskell, Assembly, Shell scripting, and many more!
Simply state which language and level of difficulty you want and our prompt will make it for you.
It can also provide suggestions and rate your code from 0-100.
...more
Added over 1 month ago
- Reviews for this prompt (1)

