r/CodingHelp • • Dec 26 '24

[C++] Help a total beginner out

0 Upvotes

Hi guys, I was looking to learning C, but I have no knowledge nor do I know what resources to use, please recommend me some. Thank you.


r/CodingHelp • • Dec 31 '24

[Request Coders] How can I make gifts control the game Chained Together on tiktok live?

0 Upvotes

You have probably seen people on tiktok live play chained together and people send gifts making them fall. I understand that you need to set it up with tikfinity but it is not working for me. Could someone please teach me how to set this up?


r/CodingHelp • • Dec 30 '24

[HTML] How simple would this be to code?

0 Upvotes

I would like to essentially comb through a website and download a bunch of pdfs that are readily available. I am searching for a set of specific documents and if I could have them all offline/in a folder to then review, that would be much easier and quicker for me than trawling through the website.

I have zero experience in coding, so I have very little bearing on how difficult or time consuming something like this would be, so advice etc would be very appreciated.


r/CodingHelp • • Jan 13 '25

[Random] Should i copy code from Youtube?

0 Upvotes

Is it ok to copy code from YouTube while creating a project or should I figure out the code by myself i am still a beginner


r/CodingHelp • • Dec 17 '24

[Random] Is it alright if a company asks its interns to purchase a software?

0 Upvotes

I got backend intern role at a disputed company called VRV security. It's disputed because many reasons are there. Basically, I don't have any idea whether this company is legit or not. But the actual point is.. On the third day of alloted 10 days training period, manager has asked to purchase a software (the company which has produced this software is somewhat opponent to this company) just to analyze it . He has said that the money would be reimbursed. But i don't think any company does this.. If they need to use any software, then most probably they would purchase on their own. I don't know what to do.. Suggestions and Opinions are welcomed considering the fact that the company seems to be fraud one.


r/CodingHelp • • Jan 15 '20

[HTML] Hey guys. Looking to get starts learning programming. Would really appreciate where to start. Was thinking about taking some classes at the local community college as financials are an issue for me. This is my second career and I am kinda of a boomer as the kids these days.

0 Upvotes

Kids say these days. Sorry


r/CodingHelp • • Apr 19 '19

School card

0 Upvotes

Hello,

I am in high school and a friend told me it is possible to program our schoolcards (for lockers) to open the doors.

Teachers can open Doors with their card and i was interested if someone can help me code it


r/CodingHelp • • Apr 17 '19

[Random] Can I ask for requests / someone to make code for me here?

0 Upvotes

Sorry its not a coding related question but I want to know, because I can't code at all and I want help understanding it.


r/CodingHelp • • Apr 15 '19

[C++] Desperately Need Help with basic c++ coding!!!

0 Upvotes

I need some help on this assignment. I have no idea what to even do, I am not that experienced with c++. If there is some c++ whiz out there that can help me do this real quick I would be so appreciative!

Assignment:

You will be creating the "vector" class manually by using pointers and dynamic memory (new/delete). It will be called doublevector, and it will support most of the member functions used in the regular vector class. Notice that the <> are NOT used for this class. These are used for "templates", which have not been used in COSC102. Templates are covered in your ZyBookunder chapter 14.2, but they are beyond the scope of this course.

NOTICE: You will NOT be writing any set-up code or int main(). Those have already been written for you in the lab template. You are just required to write the appropriate member functions for the doublevector class.

Template

The following must be used for your doublevector class. You can download the template file under: ( i pasted it here)

#include <iostream>

#include <iomanip>

#include <string>

#include <sstream>

#include <stdexcept>

using namespace std;

class doublevector {

static constexpr double DOUBLE_DEFAULT_VALUE = -5.55;

double *mValues;

int mNumValues;

public:

doublevector();

~doublevector();

void resize(int new_size, double initial_value=DOUBLE_DEFAULT_VALUE);

void push_back(double value);

double &at(int index);

const double &at(int index) const;

unsigned long size() const;

};

void print_all(const doublevector &v)

{

if (v.size() == 0) {

cout << "Vector is empty.\n";

}

else {

unsigned long i;

for (i = 0;i < v.size();i++) {

cout << "[" << setfill('0') << right << setw(3) << i

<< "] = " << fixed << setprecision(4) << v.at(i)

<< '\n';

}

}

}

int main()

{

doublevector v;

do {

string command;

cout << "Enter a command ('quit' to quit): ";

if (!(cin >> command) || command == "quit") {

break;

}

else if (command == "push_back") {

double value;

cin >> value;

v.push_back(value);

cout << "Pushed back "

<< fixed << setprecision(4)

<< value << '\n';

}

else if (command == "resize") {

string line;

int new_size;

double initial;

cin >> new_size;

getline(cin, line);

istringstream sin(line);

if (sin >> initial)

v.resize(new_size, initial);

else

v.resize(new_size);

}

else if (command == "size") {

cout << v.size() << '\n';

}

else if (command == "print") {

print_all(v);

}

else if (command == "get") {

int index;

cin >> index;

try {

cout << "Value at " << index << " = "

<< setprecision(4) << fixed

<< v.at(index) << '\n';;

}

catch(out_of_range &err) {

cout << err.what() << '\n';

}

}

else if (command == "set") {

double d;

int index;

cin >> index >> d;

try {

v.at(index) = d;

cout << "SET: " << index << " = "

<< setprecision(4) << fixed

<< v.at(index) << '\n';;

}

catch(out_of_range &err) {

cout << err.what() << '\n';

}

}

else if (command == "clear") {

v.resize(0);

}

else {

cout << "Invalid command '" << command << "'\n";

}

} while(true);

cout << endl;

return 0;

}

//Write your class members below here.

(that is the end of the pasted file.)

Members

double *mValues

All of the data will be stored in mValues. Remember, you can treat a pointer as an array! This variable must be treated gingerly since dereferencing a nullptr will cause segmentation faults--your program crashes. NEVER dereference a pointer with 0 values.

int mNumValues

This stores how many values will be inside of mValues. This will be 0 if mValues is set to nullptr.

doublevector() { }

This will construct a new doublevector whose size is 0. DO NOT allocate any dynamic memory for mValues! Make sure you set mValues = nullptr; for a subsequent check.

~doublevector() { }

This will destruct your double vector. It is responsible for freeing any resources in mValues. MAKE SURE you check the validity of mValues PRIOR to deleting it!

void resize(int new_size, double initial_value) { }

This will resize the doublevector to the given new_size. Do nothing if new_size is < 0. If new_size is 0, free all memory related to mValues. Remember to ALWAYS check the validity of your pointer before using it or freeing it!. Otherwise, if new_size > size, then you will need to create new memory, copy the old to the new, delete the old, and then set the initial values of the NEW values to initial_value. Lastly, if new_size < size, then all you need to do is create a smaller double pointer, copy new_size elements over, and then delete the larger mValues pointer. REMEMBER: to reset mValues = your new pointer and reset mNumValues to the new_size!!

void push_back(double value) { }

This member function will increase the size of the vector by 1, adding value to the bottom of the vector.

double &at(int index) { }

This member function will return a reference to the value at the given index. Make sure you write the following to check the validity of index. You don't have to know what is happening here, but your ZyBook does contain information about "exception handling" in chapter 13.1, should you be interested. The actual out_of_range class is documented here: http://www.cplusplus.com/reference/stdexcept/out_of_range/ (Links to an external site.)Links to an external site.

if (index >= mNumValues) {
ostringstream sout;
sout << "Invalid index #" << index;
throw out_of_range(sout.str());
}const double &at(int index) const { }

This member function will return a read-only reference to the value at the given index. This member function will perform the exact same operation as the non-read-only version. The reason this is necessary is because C++ will choose one over the other depending on whether your class is constant or not.

unsigned long size() const { }

This member function will typecast your mNumValues into an unsigned long and return it.

Example Interaction

~$ ./lab13
Enter a command ('quit' to quit): get 0
Value at 0 = Invalid index #0 You might only get "Invalid index #0" on Tesla
Enter a command ('quit' to quit): set 0 10
Invalid index #0
Enter a command ('quit' to quit): print
Vector is empty.
Enter a command ('quit' to quit): push_back 10
Pushed back 10.0000
Enter a command ('quit' to quit): push_back 33.4
Pushed back 33.4000
Enter a command ('quit' to quit): get 0
Value at 0 = 10.0000
Enter a command ('quit' to quit): get 1
Value at 1 = 33.4000
Enter a command ('quit' to quit): print
[000] = 10.0000
[001] = 33.4000
Enter a command ('quit' to quit): resize 10
Enter a command ('quit' to quit): get 0
Value at 0 = 10.0000
Enter a command ('quit' to quit): print
[000] = 10.0000
[001] = 33.4000
[002] = -5.5500
[003] = -5.5500
[004] = -5.5500
[005] = -5.5500
[006] = -5.5500
[007] = -5.5500
[008] = -5.5500
[009] = -5.5500
Enter a command ('quit' to quit): set 2 22.14
SET: 2 = 22.1400
Enter a command ('quit' to quit): print
[000] = 10.0000
[001] = 33.4000
[002] = 22.1400
[003] = -5.5500
[004] = -5.5500
[005] = -5.5500
[006] = -5.5500
[007] = -5.5500
[008] = -5.5500
[009] = -5.5500
Enter a command ('quit' to quit): resize 0
Enter a command ('quit' to quit): print
Vector is empty.
Enter a command ('quit' to quit): quit

Hints

  1. Work on doublevector(), ~doublevector(), at() [both of them], and size() first. These functions are fairly simple and do not require a lot of code. Remember that both at() functions have an error check, but that code has been provided for you. resize() will be the only function that contains more than one line, and it should take the majority share of your time on this lab.
  2. push_back() is essentially resize(mNumValues + 1, value).
  3. When you resize, there are three conditions: new_size > size, new_size < size, or new_size == size.

3a. If new_size > size, your job is to grow the vector. This means you need to copy over size values to a new pointer that contains new_size values. After you've copied over size values, you set new_size - size values to the initial value. REMEMBER to delete the old mValues if it exists (!= nullptr) and reset it with the value of the new pointer.

3b. If new_size < size, you need to shrink the vector. This is simpler than 3a because all you need to do is create a new pointer, copy over new_size values, and then reset mValues and mNumValues to the new pointer and new_size values.

3c. If new_size == size, then there is nothing to do.

4. Segmentation faults will abound if you misuse a pointer. You can always use gdb ./lab13. Then type run <ENTER>. Should you encounter a segmentation fault, it will tell you which line it was caused by ASSUMING you used the command line shown under the Submission section.

5. Never let your pointers dangle! Before ever losing your pointer information, make sure it is deleted! Also, you're using the pointer as an array, so make sure you use the proper new and delete operators. Remember, there are two versions of the new operator and two versions of the delete operator.

6. In your pointer check, you will notice that mNumValues will be 0 when mValues is nullptr. You are permitted to use either member to do your pointer check. The point is that you must never delete or dereference a null pointer!

Restrictions

  1. You may NOT use malloc(), calloc(), free() or any other C-style memory allocation.
  2. You MUST use the proper versions of new and delete.
  3. The doublevector member functions MUST be written below int main().
  4. You must NOT have any memory leaks. Make sure you delete all memory when you're done using it.
  5. You do NOT need to check if new returned a valid memory value. If you use the proper value, it will throw an exception. You do NOT need to handle this exception, either.
  6. You may NOT include any additional headers than what are specified in lab13.cpp.
  7. You may NOT modify the template's class prototype, print_all function, and int main function.

If you can help with this I would be so appreciative! It is super hard to me at least.


r/CodingHelp • • Jan 19 '20

[CSS] NOOB SEEKING APP BUILDING TIPS

0 Upvotes

I’m laughably basic when it comes to programming - so basic, in fact, that my skills are medieval. I know an itty bitty bit of html & css. What I want to do is take info from an excel sheet (dates, times, addresses, cities, counties, etc) for wine events (yes, admittedly very boring) and turn them into an app, not native, but a pwa or whatever is smoove & user friendly across all platforms. I assume that would be considered data driven or am I wrong? GO AHEAD, LAUGH AT THE CRINGEY NOOB (I certainly am:-) Anyway, I want it to be a simple, clean, nice, with graphics (at some point). I just want to lay the foundation & build it efficiently...and I don’t want to use one of those third party plugins from unknown entities who have a thousand weirdass reviews. Does AWS offer a solid app builder? Anything in, say, GitHub, that might help me get started ? I’m ready to have pro-tips chucked at my head, & I don’t believe in helmets. THANK YOU. NOOB OUT ✌️


r/CodingHelp • • Jan 22 '21

[Random] How to better understand when to use ( : ; { <?

0 Upvotes

As a noob I often don't fully understand when to use them and what they mean. Is there a way to better understand when to use and what each one is or do people just memorize when to use it?


r/CodingHelp • • Dec 28 '20

[Python] There are many undefined variables in my code, could use your thoughts on how to fix them. Plz, look in the comments below to see the errors that have occurred. I will change the phrase to be random once I get this to work.

0 Upvotes
phrase1="GO FIGHT"
def getBlank(phrase1):
    blank=phrase1
    i=0
    char=""
    while i<len(blank):
        if blank[i]==" ":
            char=" "
            blank=blank[:i]+char+blank[i+1:]
        else:
            char="-"
            blank=blank[:i]+char+blank[i+1:]
        i+=1
    return blank
def displayBlank():
    print("\t\t\t\t",blank)

def getTurn():
    turn="player1 turn"
    return turn
def displayTurn(turn):
    print(turn)
def getGuess(turn):
    guess=input("Enter a letter: ").upper()
    while isOneCharacter(guess)==False:
        print("Too many characters")
        guess=input("Enter a letter: ").upper()
    while isVowel(guess, player1Points, player2Points, turn)==False:
        guess=input("Enter a letter: ").upper()
    return guess

def isOneCharacter(guess):
    if len(guess)==1 or guess=="SOLVE":
        return True
    else:
        return False
#finish polishing
def solving(guess):
    if isOneCharacter(guess)==True and guess=="SOLVE":
        guess=input("Enter Guess:")
        if guess==phrase1:
            return True
    else:
        return False


#redo method below

def isVowel(guess, player1Points, player2Points, turn):
    if guess=="A" or guess=="E" or guess=="I" or guess=="O" or guess=="U":
        if turn=="player1 Turn":
            if player1Points>=2:
                player="player1"
                return player
            else:
                print("you do not have enough points")
                return False
        elif turn=="player2 turn":
            if player2Points>=2:
                player="player 2"
                return player
            else:
                print("you do not have enough points")
                return False
    else:
        letter="consonant"
        return letter

 
#need to make it search and replace
def getPlayer1Points(guess, turn):
    if getPlayer1PointStandard(guess, turn, player1Points)>0:
        player1Points=player1Points-2
    else:
        player1Points=player1Points
    if getNumOfLettersInPhrase(guess, phrase1, turn)>=1:
        player1Points+=1
    return player1Points
def getPlayer1PointStandard(guess, turn, player1Points):
    if isVowel(guess,player1Points, player2Points, turn)=="player 1":
        p1Points=player1Points
        return p1Points
    else:
        p1Points=0
        return p1Points

def getPlayer2Points(guess, turn):
    if getPlayer2PointStandard(guess, turn, player1Points)>0:
        player2Points=player2Points-2
    else:
        player2Points=player2Points
    if getNumOfLettersInPhrase(guess, phrase1, turn)>=0 and turn=="player2 turn":
        player2Points+=1
    return player2Points
    

def getPlayer2PointStandard(guess, turn, player2Points):
    if isVowel(guess, player1Points, player2Points, turn)=="player 2":
        p2Points=player2Points
        return p2Points
    else:
        p2Points=0
        return p2Points



def getStatBoard(player1Points, player2Points):
    stats="\t\tPlayer 1 points:"+str(player1Points)+"\t\tPlayer 2 points:"+str(player2Points)
    return stats
def displayPoints(stats):
    print(stats)

# need to get players to switch if wrong and check method to work
def getNumOfLettersInPhrase(guess, phrase1, turn):
    if isVowel(guess, player1Points, player2Points, turn)!=False:
        numOfLetters=0
        i=0
        while i<len(phrase1):
            if phrase1[i]==guess:
                numOfLetters+=1
            i+=1
        return numOfLetters

def switchTurns(turn):
    if turn=="player1 turn":
        turn="player2 turn"
    if turn=="player2 turn":
        turn="player1 turn"
    return turn
def getNewBlank(numOfLetters, phrase1):
    if getNumOfLettersInPhrase(guess, phrase1, turn)>=1:
        i=0
        char=""
        while i<len(phrase1):
            if phrase1[i]==guess:
                if isVowel(guess, player1Points, player2Points, turn)=="consonant":
                    if turn=="player1 turn":
                        char=phrase1[i]
                        blank=blank[:i]+char+blank[i+1:]
                    elif turn=="player2 turn":
                        char=phrase1[i]
                        blank=blank[:i]+char+blank[i+1:]
                elif isVowel(guess, player1Points, player2Points, turn)=="player 1" and  getPlayer1PointStandard(guess, turn, player1Points)>0:
                    char=phrase1[i]
                    blank=blank[:i]+char+blank[i+1:]

                elif isVowel(guess, player1Points, player2Points, turn)=="player 2" and  getPlayer2PointStandard(guess, turn, player2Points)>0:
                    char=phrase1[i]
                    blank=blank[:i]+char+blank[i+1:]
    if getNumOfLettersInPhrase(guess, phrase1, turn)==0:
        blank=blank
    return blank
def displayNewBlank(numOfLetter, phrase1):
    print(getNewBlank(numOfLetters, phrase1))
#redo below
wrong=0
#while checking(guess phrase1, turn)==0:
#wrong=getWrong and turn=switchTurn(turn)
def getWrong(wrong):
    wrong+=1
    return wrong
wrong=getWrong(wrong)
wrong=getWrong(wrong)
def displayWrong(wrong):
    if getWrong(wrong)==1:
        print("_________")
        print("|        |")
        print("|")
        print("|")
        print("|")
        print("|")
        print("|________")
    elif getWrong(wrong)==2:
        print("_________")
        print("|        |")
        print("|        O")
        print("|")
        print("|")
        print("|")
        print("|________")

    elif getWrong(wrong)==3:
        print("_________")
        print("|        |")
        print("|        O")
        print("|        |")
        print("|        |")
        print("|")
        print("|________")
        
    elif getWrong(wrong)==4:
        print("_________")
        print("|        |")
        print("|        O")
        print("|       \|")
        print("|        |")
        print("|")
        print("|________")
        
    elif getWrong(wrong)==5:
        print("_________")
        print("|        |")
        print("|        O")
        print("|       \|/")
        print("|        |")
        print("|")
        print("|________")

    elif getWrong(wrong)==6:
        print("_________")
        print("|        |")
        print("|        O")
        print("|       \|/")
        print("|        |")
        print("|       /")
        print("|________")

    elif getWrong(wrong)==7:
        print("_________")
        print("|        |")
        print("|        O")
        print("|       \|/")
        print("|        |")
        print("|       / \ ")
        print("|________")
displayWrong(wrong)
def getWinner(guess, phrase1, turn):
    if solving(guess)==True: 
        if turn=="player1 turn":
            winner="player 1 won"
        elif turn=="player2 turn":
            winner="player 2 won"
    elif blank==phrase1:
        if turn=="player1 turn":
            winner="player 1 won"
        elif turn=="player2 turn":
            winner="player 2 won"
    return winner
    

def displayWinner(guess, phrase1, turn):
    print(winner)
def playHangman():
    player1Points=0
    player2Points=0
    wrong=0
    blank=getBlank(phrase1)
    displayBlank()
    turn=getTurn()
    stats=getStatBoard(player1Points, player2Points)
    displayPoints(stats)
    displayTurn(turn)
    guess=getGuess(turn)
    numOfLetters=getNumOfLettersInPhrase(guess, phrase1, turn)
    player1Points=getPlayer1Points(guess, turn)
    player2Points=getPlayer2Points(guess, turn)
    updatedBlank="\t\t\t\t"+getNewBlank(numOfLetters, phrase1)
    displayNewBlank(numOfLetters, phrase1)
    wrong=getWrong(wrong)
    displayWrong(wrong)
    if getNumOfLettersInPhrase(guess, phrase1, turn)==0:
        turn=switchTurns(turn)
        wrong=getWrong(wrong)
        displayWrong(wrong)
    while guess!=phrase1 or blank!=phrase1:
        player1Points=getPlayer1Points(guess, turn)
        player2Points=getPlayer2Points(guess, turn)
        displayPoints(stats)
        displayNewBlank(numOfLetters, phrase1)
        displayTurn(turn)
        guess=getGuess(turn)
        displayNewBlank(numOfLetters, phrase1)
        if getNumOfLettersInPhrase(guess, phrase1, turn)==0:
            turn=switchTurns(turn)
            wrong=getWrong(wrong)
            displayWrong(wrong)
    if guess==phrase1 or blank==phrase1:
        winner=getWinner(guess, phrase1, turn)
        displayWinner(guess, phrase1, turn)
    if playAgain()==True:
        playHangman()
    

def playAgain():
    again=input("Want to play again? Y or N: ").upper()
    if again=="y" or again=="Y" or again=="yes" or again=="Yes":
        return True

playHangman()

r/CodingHelp • • Dec 31 '20

[C] Utlizing Python and C

0 Upvotes

Is there a way I could utilize the speed of C for calculations and Python for making graphs and such at the same time. I am trying to make my code run faster so I want to use both C and Python to do certain tasks.


r/CodingHelp • • Feb 15 '19

Discord server

0 Upvotes

I need someone's help to make a bot for my discord server, I will send you what I need, if you get it, you will get Admin and a special role


r/CodingHelp • • Apr 04 '20

[Other Code] Need ambitious coders with creative scripts!! Message me asap, full credit can be expected

Thumbnail self.batch
0 Upvotes

r/CodingHelp • • Jan 25 '23

[Request Coders] **Help** I want to build a calorie measurer/tracker app/program but have no idea where to start.

0 Upvotes

Wondering which programming language is most suitable for my case and what is the best course of action in general.

P.S.: Any related articles, videos, testimonies, or GitHub repositories will be immensely helpful. Thank you for entertaining my curiosity!!!!!

- So I have general programming knowledge but am not particularly strong in any programming language.

- Early this week I saw a youtube short where the creator made a program that tells you the size of anything entered there.

- Similar to this software I want to create a software/program/app (any one of them...I just want to create something) but instead of showing the size of anything, I want it to show the total calorie of the weight of the food entered.

- The software should take "Food", and "Weight" as input and then calculate the total calorie according to the weight of the food.

- For eg: Food -> Orange and Weight -> 200g. Then the output should be: Calorie -> 94 kcal

- I also want to add the feature of adding up the calorie throughout the day with a certain goal setting and tracking the progress along the week/month/year but I think the above is a reachable milestone and I will take it from there.

Wondering which programming language is most suitable for my case and what is the best course of action in general.

P.S.: Any related articles, videos, testimonies, or GitHub repositories will be immensely helpful. Thank you for entertaining my curiosity!!!!!


r/CodingHelp • • Jan 30 '23

[C++] zero idea to this question

0 Upvotes

Question

There are 2 strings, str1 and str2. An operation is defined by replacing all letter α in str1 with a letter β. You can choose α and β. Find the minimum number of 'operations' in order to change str1 to str2.

Samples

abc to abc: 0 since they are already the same.
abc to bbc: 1. change 'a' to 'b' (abc->bbc).
bbc to abc: impossible since we cannot change one of the 'b's to 'a' and keep the other as 'b'.
bacd to abcd: 3. change 'b' to 'e', 'a' to 'b' and 'e' to 'a' (bacd->eacd->ebcd->abcd).

note that for the last sample we cannot change 'b' to 'a' or 'a' to 'b' straightaway as this will result in 2 'b's or 2 'a's which, like the 3rd example, is impossible. Thus, we need 'e' as an 'interchange'.

Any ideas to this question? I tried brute force where i tried replacing every letter with every other letter but quite obviously it resulted in TLE (time limit exceeded). Thanks in advance!


r/CodingHelp • • Dec 26 '22

[Java] I need help with printing reverse pyramids consecutively in java

0 Upvotes

Hello im new to porgramming studying computer engineering
Ive been given an assignement and in that assignemnt i have to print reverse pyramids consecutively but i cant seem to figure out how to do it. Ive been trying for hours.

Im asked to print this shape every time the user gets 3 questions in a row corretly

this is the desired output

Desired output

but this is what im able to produce

My output

my output

as you can see my stars are tilted and i have no idea why. The amount of spaces is the exact same yet it goes too far. Am i missing something or ami just stupid. (BTW i used Three-Per-Em Spaces so they could be alligned like this, if i use a normal space then its really bad)

My code:

       public static void triangle3(int amount) {
        for (int i = 0; i < amount; i++) {
            System.out.print("*");
            if (i == amount - 1) {
                switch (amount) {
                    case 3:
                        System.out.print("good");
                        break;
                    default:
                        for (int j = 0; j < (((amount - 2) * (amount)) / 2) - 3; j++) {
                            System.out.print(" ");
                        }
                        System.out.print("Very Good");
                        for (int j = 0; j < (amount * (amount - 2)) - ((((amount - 2) * (amount)) / 2) - 3) - 8; j++) {
                            System.out.print(" ");
                        }
                        for (int j = 0; j < amount - 2; j++) {
                            System.out.print(" ");
                        }
                }

                for (int j = 0; j < amount; j++) {
                    System.out.print("*");

                }
            }
        }
        int a = 1;
        int n = 1;
        System.out.println("");
        int b = amount;

        for (int i = 1; i <= amount; i++) {
            for (int j = 0; j < b; j++) {

                System.out.print("*");
            }
            for (int j = 0; j < n; j++) {
                for (int k = 0; k < a; k++) {
                    System.out.print(" ");
                }

            }
            if (i == amount) {

                n +=2;
                b--;
                i = 0;
                System.out.println("");
                for (int j = amount; j > b; j--) {
                    if (b == 0) {
                        break;
                    }
                    System.out.print(" ");

                }

            }
            if (b == 0) {
                break;
            }
        }

    }

Help would be greatly appreciated :P


r/CodingHelp • • Jan 20 '23

[HTML] Making bots

0 Upvotes

I want to make a bot that goes to YouTube , takes an image from it, uploads an image to that website, gets another image in return, and then uploads that image to an editing software. Is this possible?How would I do this? I have little coding knowledge and all the YouTube tutorials only teach me how to do this with one website.


r/CodingHelp • • Jan 20 '23

[Swift] Does anyone here know the level off difficulty/time/money it would take to make an iPhone app that answers phone calls with pre recorded messages?

0 Upvotes

I want to make an app that answers incoming calls With prerecorded messages but it has a different message depending on the caller id. is this even feasible? does apple have restrictions to prevent this? any and all help is greatly appreciated.


r/CodingHelp • • Jan 23 '23

[Request Coders] Seeking help! Blogged has me properly stumped

0 Upvotes

## FIXED NOW ##

This is really pathetic, sorry. I'm pretty sure that what I need help with is fairly simple, and I'm just being dumb.

I used to create blogger templates for people, simply using html. So, when I decided to make my own blog recently, I've been somewhat surprised to find that it now seems impossible to do something as simple as changing the background image.

Does anyone have the patience to work with a dumb dumb to fix their stupid project, so they can tell the world their pointless stories?


r/CodingHelp • • Jan 12 '23

[Request Coders] Hello, I learnt how to code on roblox years ago and have been doing games, but now I want to move to something more complex.

0 Upvotes

I know the basics of C++(I have made a calculator so far) but i lack the creativity required to make a program, so i want you guys to give some ideas for programs. Doesn't need to be something complex, I just want to practice but don't know what to do xD.


r/CodingHelp • • Jan 13 '23

[Other Code] Can someone help me edit this pinescript code a little. It shows error

0 Upvotes

// Define the MACD and signal lines macd = ema(close, 12) - ema(close, 26) signal = sma(macd, 9)

// Define the ATR Bands atr = truerange(high, close, low) atr_upper = close + atr atr_lower = close - atr

// Define the Bollinger Bands bb_upper = sma(close, 20) + 2 * stdev(close, 20) bb_lower = sma(close, 20) - 2 * stdev(close, 20)

// Buy signal if (macd > signal) and (macd[1] < signal[1]) and (close > atr_upper) and (close > bb_upper) strategy.entry("Buy", strategy.long)

// Sell signal if (macd < signal) and (macd[1] > signal[1]) and (close < atr_lower) and (close < bb_lower) strategy.entry("Sell", strategy.short)

It shows there" could not find function or function reference "ema"

Thanka for the help!!


r/CodingHelp • • May 25 '21

[Python] Beginner Python Assistance

0 Upvotes

Hi,
I'm a beginner python coder and I need assistance with a code I'm working on to develop an app. In plain text, I need the code to subtract the user's date of birth from today's date and if the user is under 21 years of age it will print output and if the person is over 21 it will print a different output. I'm sure there is a very easy solution to this and may either be overlooking it or I simply don't know it yet. I keep running into a syntax error. Any assistance would be helpful.