• Breaking News

    Wednesday, January 1, 2020

    5 programming problems within a High School Assignment Ask Programming

    5 programming problems within a High School Assignment Ask Programming


    5 programming problems within a High School Assignment

    Posted: 01 Jan 2020 11:29 AM PST

    Hi everyone,

    I am 14 years old kid in High School. So last summer, I just started in High School in Denmark where we have a subject called Computer Science and IT. We program in Java and C++. I am only capable of solving problems in C++ and have stuck to it since we started in summer. Right before Christmas, our teacher gave us 5 problems within an assignment for to the end of January. I have tried my best to solve all of the problems, but I just couldn't besides the first one. I have asked our teacher, and he says that I just have to try to figure it out on my own and he won't help me. Most of my class mates aren't capable of solving the problems either. Only a couple of students have solved more than one. They don't want to help the rest of us, so I can't move forward with the assignment. There are 5 problems within the assignment in total and I have translated them to English, if anyone would like to read them. It would be nice of you, if anyone who reads this could help me. And one last question, am I using the wrong programming language? Should I use Java instead?
    You can see the assignment here: https://www.scribd.com/document/441425764/High-School-Assigments-5
    Thanks in advance :)

    submitted by /u/CuriosMinds
    [link] [comments]

    How to create continuous deployment pipeline for quasar app in under 5 minutes using aws-amplify

    Posted: 01 Jan 2020 09:17 PM PST

    Hello Friends, here another video from our weekly web series on how to create a deployment pipeline using aws amplify console with Quasar application. Please do not forget to provide your feedback

    https://www.youtube.com/watch?v=eBKCyxOipGI&list=PLAl8os33KyOVpzfYznpguV_5euzKJ626V&index=5

    submitted by /u/jagadish_av
    [link] [comments]

    Determining the error (if any) in a coding example. C++ (Not important, just curious)

    Posted: 01 Jan 2020 07:29 PM PST

    While poking around in A Tour of C++ (Second Ed, Bjarne Stroustup) I came across this snippet of code (using the std namespace):

    string cat(string\_view sv1, string\_view sv2) { string res(sv1.length()+sv2.length()); char\* p = &res\[0\]; for (char c : sv1) // one way to copy *p++ = c; copy(sv2.begin(),sv2.end(),p); // another way return res; } 

    It's a just a simple string concatenation function to demonstrate the use of string views, but I decided to play around with it. Unfortunately, it doesn't seem to work as written. Compiling (c++17) gives a error for no matching function call for

    string res(sv1.length()+sv2.length()); 

    It looks like it's a constructor intended to set the size of the string, but doesn't match any of the string constructors I can find. Additionally, using the default string constructor allows compilation but leads to a core dump. I *was* able to get it working by changing the constructor used like so:

    char f = ' '; string res(sv1.length()+sv2.length(), f); 

    but I doubt that was the intended approach.

    So, how should this have been written? Or what am I doing wrong? Obviously there are easier ways to concatenate strings, but for some reason I really want to understand what's intended here.

    submitted by /u/sioraien
    [link] [comments]

    Attempting to fix a 14yr old video game

    Posted: 01 Jan 2020 04:17 PM PST

    Hello! I've recently been trying to solve a problem with an old video game no ones heard of called "Overball." Basically, it randomly crashes when moving to another level or when continuing from losing your three lives. I have not even the slightest idea how to approach fixing this, I've heard about debuggers, de-compilers, and the like, but I don't know where to start.. I also tried getting the source code for this game, but they wouldn't let me have it. I have minimal programming knowledge, but I'm completely willing to learn. Could anyone lead me in the right direction here?

    submitted by /u/G-man513
    [link] [comments]

    Resources for Background Information on Self-Taught Languages (Might be more appropriate to ask here)

    Posted: 01 Jan 2020 09:50 AM PST

    Panels in Python

    Posted: 01 Jan 2020 09:16 AM PST

    Can anyone please tell me how to create "Panels" in Python. I read somewhere that pandas has deprecated Panels. I just wanted to know if there is any alternative to this ?

    submitted by /u/savageshivam
    [link] [comments]

    16 y/o thinking about going into coding post HS, I have some questions ( Living in Vancouver Canada )

    Posted: 01 Jan 2020 04:41 AM PST

    Hi, I am a 16-year-old living near Vancouver, BC in Canada. If I do get into coding the job will 99.9% be in Vancouver.

    Here are my questions about coding :

    - How long do you have to be at University?

    - How much can I earn where I live?

    -Is coding depressing? Like can I just have a fun time while doing it? ( can I also listen to music while doing it )

    -Is it easy to get a raise?

    -Any signing bonuses or stocks or anything like that?

    -Average tenure length?

    -Is it hard to learn, or just very time consuming, or both?

    -Is it easy to land a good-paying job straight out of University?

    -Where do you live, How much do you earn coding, How long did you study for/ how many hours a day did you spend learning to code, and lastly what company to you work for?

    Thank you :D

    submitted by /u/TheeFrieza
    [link] [comments]

    No comments:

    Post a Comment