• Breaking News

    Sunday, January 31, 2021

    People who work or have worked for Microsoft, do you have to use BING and Edge, or are you allowed to use chrome or firefox? Ask Programming

    People who work or have worked for Microsoft, do you have to use BING and Edge, or are you allowed to use chrome or firefox? Ask Programming


    People who work or have worked for Microsoft, do you have to use BING and Edge, or are you allowed to use chrome or firefox?

    Posted: 31 Jan 2021 08:23 AM PST

    Leaving files open on Visual Studio Code corrupts them?

    Posted: 31 Jan 2021 09:30 PM PST

    I have a USB drive which is constantly attached to my computer which has multiple project folders stored on them. It's happened a couple times already that if I leave a file open on Visual Studio Code for an extended period of time it gets corrupted. I have backups of all the files so I'm able to restore them just fine, but I don't think that this should happen.

    Just now an entire directory corrupted, but running chkdsk with the /F parameter restored every file except for the one that was open in the editor.

    Is this happening to anyone else? Is there something wrong with my USB or VSCode installation?

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

    What do Veterans of the industry think of people coming out of college in the last few years compared to people coming out of college 10 - 20 years ago?

    Posted: 31 Jan 2021 07:48 AM PST

    Better, worse, different?

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

    Java is running slow on ubuntu

    Posted: 31 Jan 2021 11:59 AM PST

    So I have this Java app written in awt and swing. The thing is that when i run the app on windows the performance is alright I get 60fps but when i run it on ubuntu linux on the same machine (dual-boot system) It runs sluggish. I hard get about 10fps. Is this something common in Java from os to os?

    Edit: both OS are running the same version of openjdk.

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

    Why do they say Electron's so bloated, and that desktop apps using it are so slow/resource-hungry?

    Posted: 31 Jan 2021 04:54 PM PST

    Is it really such a bloated framework, and why's it so bloated in the first place?

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

    Programming for young kids (7+)

    Posted: 30 Jan 2021 11:33 PM PST

    My son wants to create his own games, so I was looking a bit at some visual programming languages that will work on an iPad.

    The ones I am primarily looking at right now is Hopscotch and ScratchJr. Wondering if anyone else has any experience with these languages and development environments and can give their thoughts on which one is the superior choice.

    It needs to be something that is very fast and easy to get started with because my son won't have the patience to do something where the feedback loop is too long.

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

    Would it be better for an idiot to learn how to code by using teaching books/apps/ methods for elementary and middle school kids?

    Posted: 31 Jan 2021 07:27 AM PST

    I have a learning disability. I take a very long and challenging route to learn something. I pick up other knowledge along with more frustrations along the way, but eventually get there. I'm a slow learner. I'm not an idiot but I'm damn close.

    I'm in my late 30s and trying to find a job that I can work remotely for. I've had an interest in coding for some time as computers tend to hold my focus a bit more.

    So for an idiot like me, at my age, and slow learning ability, would it be better to start at a child's level type of curriculum, or is there something better fitted for adult ADD and dyslexic slow learners like me?

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

    Delphi vs Visual Basic For Hobbyist

    Posted: 31 Jan 2021 02:13 PM PST

    In the late 70s and 80s I was a programmer by profession and as a hobbyist. My hobby programming consisted primarily of Turbo Pascal (TP) and Visual Basic (VB) and none of it was OO which seems standard today. I've not coded in 30 years but want to get back into it as a hobby. My first project will be a home inventory program with a Microsoft Access database and I'm trying to decide whether to write the application in Delphi or VB. I understand neither of these languages are popular today but this is as much about nostalgia as it is the applications themselves.

    I'd like your thoughts on which of these languages you'd recommend and why? Of course other feedback and suggestions are welcome. My criteria are:

    • Training material is readily available
    • Cost of entry is reasonable (e.g., ≤ $200)
    • Learning curve is low to medium

    What're your thoughts and thanks in advance

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

    Decompressing XML file with unknown compression method

    Posted: 31 Jan 2021 02:00 PM PST

    Would there be anyway at all to determine the compression method used for an XML file given only the compressed XML?

    I'm a server owner for a server on Stormworks. Recently they made an update to compress XML vehicle data for reduced storage usage and faster XML transfer times between the server and clients as all vehicle XML files have to be transferred to each client. Before this, the XML data was readable and formatted normally.

    I am attempting to decompress the files as you can view the types and number of blocks used as well as scripts in that vehicle.

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

    Want to change career into programming - Do I self-teach or do a conversion masters for beginners?

    Posted: 31 Jan 2021 01:17 PM PST

    I think this question has probably been asked before but I've joined Reddit to learn more about programming and the field etc. I have already completed an English literature degree and have just started learning an introduction to programming on udacity! My plan is to learn one language - python - and then go from there but I'm really enjoying it so far and want to go further into this! I've spoken to two programmers I know - one DevOps and another systems architect and one said to self teach - he regrets his CS degree and the other said uni is a good idea! I know there's great developers from both paths! But in my case - I have a normal 9-5 job as well! Shall I keep self teaching and later learn more languages and go into developing? Or do a comp sci conversion masters course ( as seen in unis like Birmingham, UCL etc.)?

    Any advice would be greatly appreciated xx

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

    CS50 Credit Problem Help

    Posted: 31 Jan 2021 01:14 PM PST

    Hello! I am new to programming and obviously also very bad because of it. I was hoping somebody could help me with this issue, this program I have written detects if a Credit Card number is valid through a few filters, it is problem set 1 for the CS50 course. It compiles and in my mind should work but no matter what input you use it sends back INVALID. (this program currently only detects master card and American express.

    #include<stdio.h> #include<cs50.h> #include<math.h> //cc = credit card int main(void){ //get the cc number from the user long long number = get_long("what is your credit card number?: "); //set the number of digits in the cc to 0, so we can count the digits int count = 0; //using digits as a placeholder for number so we can change the value but keep the original long long digits = number; //a loop that counts how many digits are in the cc number while (digits > 0) { digits = digits/10; count++; } //seeing if the cc number is valid by counting the total digits if ((count != 13) && (count != 15) && (count != 16) && (count != 51) && (count != 52) && (count != 53) && (count != 54) && (count != 55)) { printf("INVALID\n"); } //if the number of digits is 15, the functions runs as an american express card if(count == 15){ //get every second digit from the line and multiply it by 2 int axdigit1 = (((number % 100) / 10) * 2); int axdigit2 = (((number % 10000) / 1000) * 2); int axdigit3 = (((number % 1000000) / 100000) * 2); int axdigit4 = (((number % 100000000) / 10000000) * 2); int axdigit5 = (((number % 10000000000) / 1000000000) * 2); int axdigit6 = (((number % 1000000000000) / 100000000000) * 2); int axdigit7 = (((number % 100000000000000) / 10000000000000) * 2); int axdigit11 = 0; int axdigit22 = 0; int axdigit33 = 0; int axdigit44 = 0; int axdigit55 = 0; int axdigit66 = 0; int axdigit77 = 0; if(axdigit1 > 9){ axdigit11 = (axdigit1 / 10); axdigit1 = (axdigit1 % 10); } if(axdigit2 > 9){ axdigit22 = (axdigit2 / 10); axdigit2 = (axdigit2 % 10); } if(axdigit3 > 9){ axdigit33 = (axdigit3 / 10); axdigit3 = (axdigit3 % 10); } if(axdigit4 > 9){ axdigit44 = (axdigit4 / 10); axdigit4 = (axdigit4 % 10); } if(axdigit5 > 9){ axdigit55 = (axdigit5 / 10); axdigit5 = (axdigit5 % 10); } if(axdigit6 > 9){ axdigit66 = (axdigit6 / 10); axdigit6 = (axdigit6 % 10); } if(axdigit7 > 9){ axdigit77 = (axdigit7 / 10); axdigit7 = (axdigit7 % 10); } //add those numbers together long axdigitsAdded = axdigit1 + axdigit11 + axdigit2 + axdigit22 + axdigit3 + axdigit33 + axdigit4 + axdigit44 + axdigit5 + axdigit55 + axdigit6 + axdigit66 + axdigit7 + axdigit77; //get the original second numbers from the line int axorg1 = (((number % 100) / 10)); int axorg2 = (((number % 10000) / 1000)); int axorg3 = (((number % 1000000) / 100000)); int axorg4 = (((number % 100000000) / 10000000)); int axorg5 = (((number % 10000000000) / 1000000000)); int axorg6 = (((number % 1000000000000) / 100000000000)); int axorg7 = (((number % 100000000000000) / 10000000000000)); int axorg11 = 0; int axorg22 = 0; int axorg33 = 0; int axorg44 = 0; int axorg55 = 0; int axorg66 = 0; int axorg77 = 0; if(axorg1 > 9){ axorg11 = (axorg1 / 10); axorg1 = (axorg1 % 10); } if(axorg2 > 9){ axorg22 = (axorg2 / 10); axorg2 = (axorg2 % 10); } if(axorg3 > 9){ axorg33 = (axorg3 / 10); axorg3 = (axorg3 % 10); } if(axdigit4 > 9){ axorg44 = (axorg4 / 10); axorg4 = (axorg4 % 10); } if(axorg5 > 9){ axorg55 = (axorg5 / 10); axorg5 = (axorg5 % 10); } if(axorg6 > 9){ axorg66 = (axorg6 / 10); axorg6 = (axorg6 % 10); } if(axorg7 > 9){ axorg77 = (axorg7 / 10); axorg7 = (axorg7 % 10); } //add them together long axorgAdded = axorg1 + axorg11 + axorg2 + axorg22 + axorg3 + axorg33 + axorg4 + axorg44 + axorg5 + axorg55 + axorg6 + axorg66 + axorg7 + axorg77; //add the original and multiplied number groups together long axallAdded = axdigitsAdded + axorgAdded; //if the last digit of the number is 0 then the number is valid. if(axallAdded % 10 == 0){ printf("%lli (AMERICAN EXPRESS) is valid\n", number); } if(axallAdded % 10 != 0){ printf("%lli (AMERICAN EXPRESS) is INVALID\n", number); } } //if the number of digits is 16, the functions runs as a master card if(count == 16){ //get every second digit from the line and multiply it by 2 int mcdigit1 = (((number % 100) / 10) * 2); int mcdigit2 = (((number % 10000) / 1000) * 2); int mcdigit3 = (((number % 1000000) / 100000) * 2); int mcdigit4 = (((number % 100000000) / 10000000) * 2); int mcdigit5 = (((number % 10000000000) / 1000000000) * 2); int mcdigit6 = (((number % 1000000000000) / 100000000000) * 2); int mcdigit7 = (((number % 100000000000000) / 10000000000000) * 2); int mcdigit8 = (((number % 10000000000000000) / 1000000000000000) * 2); int mcdigit11 = 0; int mcdigit22 = 0; int mcdigit33 = 0; int mcdigit44 = 0; int mcdigit55 = 0; int mcdigit66 = 0; int mcdigit77 = 0; int mcdigit88 = 0; if(mcdigit1 > 9){ mcdigit11 = (mcdigit1 / 10); mcdigit1 = (mcdigit1 % 10); } if(mcdigit2 > 9){ mcdigit22 = (mcdigit2 / 10); mcdigit2 = (mcdigit2 % 10); } if(mcdigit3 > 9){ mcdigit33 = (mcdigit3 / 10); mcdigit3 = (mcdigit3 % 10); } if(mcdigit4 > 9){ mcdigit44 = (mcdigit4 / 10); mcdigit4 = (mcdigit4 % 10); } if(mcdigit5 > 9){ mcdigit55 = (mcdigit5 / 10); mcdigit5 = (mcdigit5 % 10); } if(mcdigit6 > 9){ mcdigit66 = (mcdigit6 / 10); mcdigit6 = (mcdigit6 % 10); } if(mcdigit7 > 9){ mcdigit77 = (mcdigit7 / 10); mcdigit7 = (mcdigit7 % 10); } if(mcdigit8 > 9){ mcdigit88 = (mcdigit7 / 10); mcdigit8 = (mcdigit7 % 10); } //add those numbers together long mcdigitsAdded = mcdigit1 + mcdigit11 + mcdigit2 + mcdigit22 + mcdigit3 + mcdigit33 + mcdigit4 + mcdigit44 + mcdigit5 + mcdigit55 + mcdigit6 + mcdigit66 + mcdigit7 + mcdigit77 + mcdigit88; //get the original second numbers from the line int mcorg1 = (((number % 100) / 10)); int mcorg2 = (((number % 10000) / 1000)); int mcorg3 = (((number % 1000000) / 100000)); int mcorg4 = (((number % 100000000) / 10000000)); int mcorg5 = (((number % 10000000000) / 1000000000)); int mcorg6 = (((number % 1000000000000) / 100000000000)); int mcorg7 = (((number % 100000000000000) / 10000000000000)); int mcorg8 = (((number % 10000000000000000) / 1000000000000000)); int mcorg11 = 0; int mcorg22 = 0; int mcorg33 = 0; int mcorg44 = 0; int mcorg55 = 0; int mcorg66 = 0; int mcorg77 = 0; int mcorg88 = 0; if(mcorg1 > 9){ mcorg11 = (mcorg1 / 10); mcorg1 = (mcorg1 % 10); } if(mcorg2 > 9){ mcorg22 = (mcorg2 / 10); mcorg2 = (mcorg2 % 10); } if(mcorg3 > 9){ mcorg33 = (mcorg3 / 10); mcorg3 = (mcorg3 % 10); } if(mcorg4 > 9){ mcorg44 = (mcorg4 / 10); mcorg4 = (mcorg4 % 10); } if(mcorg5 > 9){ mcorg55 = (mcorg5 / 10); mcorg5 = (mcorg5 % 10); } if(mcorg6 > 9){ mcorg66 = (mcorg6 / 10); mcorg6 = (mcorg6 % 10); } if(mcorg7 > 9){ mcorg77 = (mcorg7 / 10); mcorg7 = (mcorg7 % 10); } if(mcorg8 > 9){ mcorg88 = (mcorg8 / 10); mcorg8 = (mcorg8 % 10); } //add them together long mcorgAdded = mcorg1 + mcorg11 + mcorg2 + mcorg22 + mcorg3 + mcorg33 + mcorg4 + mcorg44 + mcorg5 + mcorg55 + mcorg6 + mcorg66 + mcorg7 + mcorg77 + mcorg8 +mcorg88; //add the original and multiplied number groups together long mcallAdded = mcdigitsAdded + mcorgAdded; //if the last digit of the number is 0 then the number is valid. if(mcallAdded % 10 == 0){ printf("%lli (MASTER CARD) is valid\n", number); } if(mcallAdded % 10 != 0){ printf("%lli (MASTER CARD) is INVALID\n", number); } } } 
    submitted by /u/ChildishPrograms
    [link] [comments]

    Which programming language/frameworks for cross-platform app should I use?

    Posted: 31 Jan 2021 05:03 AM PST

    Hi all,

    I will have some time off and I would like to create some simple app (communication with API and DB, add/edit/show records type of app) to learn current tools and languages. I would like to do Windows and Android endpoint apps, I did a quick research and my current candidates are:

    Flutter - good documentation, Google = Android full support, but I am not sure if Windows app is doable - only that support is still in Alpha phase

    Xamarin - I know C#/.NET, so it should be fast to get a grip of, but is it still viable choice today?

    React - I know some basics, but just how to create a web app, I didn't find good sources if React Native is different, or how "hard" it is to work with compared to other frameworks above.

    If there is any other framework, that is worth learning today, I am open to ideas.

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

    Streamlined C with faster to write syntax and sugar ?

    Posted: 31 Jan 2021 07:25 AM PST

    Hello there. I searched a long time for a language, and didn't find any that would suit my need. I ended up using C. However i don't feel that this language is good, i like the philosophy of it, and how it is close to how things are really done system side and how easy it is to remember the full syntax. It's good for writing shared library.

    I like python, but the slowness of it is really inconvenient. I tend to write code much faster un python than in C though, to the point that when i can, i first prototype in python, before translating it to C. I believe i need a language that have C level of transparency, and fully support the C programming style, while being easier and faster to write. I would like this language to actually translate to C when finally targeting the shared library generation. I'm dreaming of course of building this language myself, although i believe it would take me a long while before i get where i want to get (probably will be too old to use it for my pet projects by then). So i though maybe i would ask you guys, if you already know languages/blogs/project that aimed at this particular goal.

    .

    Desired Features :

    Language meant to write shared library with a C generation step (header + source).

    Language that is easy to write and test (Python like).

    Language that doesn't hide anything (from what the C will look like), but might provide sugar code for improving usual pattern writting.

    submitted by /u/daurin-hacks
    [link] [comments]

    Advice about programming course

    Posted: 31 Jan 2021 05:04 AM PST

    Hi guys, at the moment I can do a free e-course and I've always wanted to learn a little programming. I did a little html programming that was very basic in college. Which of these courses would you recommend as the most useful in your opinion?

    -Introduction to programming using Javascript -introduction to programming using Python -Java foundations certified junior associate -introduction to programming using html and css

    I am a primary school teacher who would be interested in teaching coding to 10-12 year olds in my school and I'm not sure which one of these courses would be most beneficial. Thanks for your help

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

    C programming help (loop)

    Posted: 31 Jan 2021 07:10 AM PST

    i need help with this program that i made. In the main function i asked the user for an input (for what he/she will buy) if user selects 8 it should go back to the main menu and restart the program. But the thing is when i press 8 it shows the main menu and then it just continues where it left from the code. ( shows the main menu then asks for the quantity).

    #include <stdio.h> // This is the main menu function. its task is printing the main menu and asking an input from the user. void mainMenu(int *nMenu){ printf("Hi! Welcome to the Cash Register!\n\n"); printf("Select an option below:\n\n"); printf("[1]New Transaction\n"); printf("[2]Generate Report\n"); printf("[3]Exit the program\n"); scanf("%d",*&nMenu); if(*nMenu == 1){ *nMenu =1; }else if(*nMenu == 2){ *nMenu =2; }else if(*nMenu == 3){ *nMenu =3; } } // This function containts the formula of the total of the cart,receipt and daily report. float Total(int nPotato,int nApple,int nOrange,int nBanana,int nPopcorn,int nWater,int nCola){ return (nPotato*50.00)+(nApple*35.00)+(nOrange * 40.00)+(nBanana * 25.00)+(nPopcorn * 120.00)+(nWater*20.00)+(nCola * 45.00); } // This function is for showing the ones bought by the user, only non-zero numbers will be printed. void checkOut(int nPotato,int nApple,int nOrange ,int nBanana,int nPopcorn,int nWater,int nCola){ if(nPotato !=0){ printf("Potato\t\t\t50.00 x %d = %.2f\n",nPotato,50.00*nPotato); }if (nApple !=0){ printf("Apple\t\t\t35.00 x %d = %.2f\n",nApple,35.00*nApple); } if (nOrange !=0){ printf("Orange\t\t\t40.00 x %d = %.2f\n",nOrange,40.00*nOrange); } if (nBanana !=0){ printf("Banana\t\t\t25.00 x %d = %.2f\n",nBanana,25.00*nBanana); } if (nPopcorn !=0){ printf("Popcorn\t\t\t120.00 x %d = %.2f\n",nPopcorn,120.00*nPopcorn); } if (nWater !=0){ printf("Bottled Water\t\t20.00 x %d = %.2f\n",nWater,20.00*nWater); } if (nCola !=0){ printf("Cola\t\t\t45.00 x %d = %.2f\n\n",nCola,45.00*nCola); } } // This is the cart of the user from the start and during the ordering phase. void initialCart(int nPotato,int nApple,int nOrange,int nBanana,int nPopcorn,int nWater,int nCola){ printf("Current Cart\n\n"); printf("Potato\t\t\t 50.00 x %d \n",nPotato); printf("Apple\t\t\t 35.00 x %d \n",nApple); printf("Orange\t\t\t 40.00 x %d \n",nOrange); printf("Banana\t\t\t 25.00 x %d \n",nBanana); printf("Popcorn\t\t\t 120.00 x %d \n",nPopcorn); printf("Bottled Water\t\t 20.00 x %d \n",nWater); printf("Cola\t\t\t 45.00 x %d \n",nCola); printf("-------------------------------\n"); printf("TOTAL\t\t\t P%.2f\n",Total(nPotato,nApple,nOrange,nBanana,nPopcorn,nWater,nCola)); } // prints what the user bought. void storeMenu(int choice){ if(choice == 1){ printf("Buying Potato!\n"); }else if (choice == 2){ printf("Buying Apple!\n"); }else if (choice == 3){ printf("Buying Orange!\n"); }else if (choice == 4){ printf("Buying Banana!\n"); }else if (choice == 5){ printf("Buying Popcorn!\n"); }else if (choice == 6){ printf("Buying Bottled Water!\n"); }else if (choice == 7){ printf("Buying Cola!\n"); } } // This turns the value of the variables into zero. void turnZero(int *nPotato,int *nApple,int *nOrange,int *nBanana,int *nPopcorn,int *nWater,int *nCola){ *nPotato = 0,*nApple = 0,*nOrange = 0,*nBanana = 0,*nPopcorn= 0,*nWater = 0,*nCola =0; } int main() { int menuChoice = 0,cartChoice,itemChoice,itemQuantity; int nReturn; // i set the initial value to 0, because without it, the variables contains random numbers. int Potato = 0 ,Apple = 0 ,Orange = 0 ,Banana = 0 ,Popcorn = 0 ,Water= 0,Cola = 0; int nPotato = 0,nApple = 0,nOrange = 0,nBanana = 0,nPopcorn= 0,nWater = 0,nCola =0; float fTotal,fAmount; mainMenu(&menuChoice); while(menuChoice != 3){ if(menuChoice == 1){ initialCart(nPotato,nApple,nOrange,nBanana,nPopcorn,nWater,nCola); printf("[1]Purchase Items\n"); printf("[2]Check Out\n"); printf("[3]Cancel Transaction\n"); scanf("%d",&cartChoice); while(cartChoice == 1){ do{ printf("[1]Potato\n"); printf("[2]Apple\n"); printf("[3]Orange\n"); printf("[4]Banana\n"); printf("[5]Popcorn\n"); printf("[6]Bottled Water\n"); printf("[7]Cola\n"); printf("[8]Cancel\n"); printf("Purchase which item? "); scanf("%d",&itemChoice); if(itemChoice == 8){ cartChoice = 3; } }while(itemChoice > 8 || itemChoice <= 0); storeMenu(itemChoice); printf("Enter quantity? "); if(itemChoice == 1){ scanf("%d",&nPotato); printf("%d Potato Purchased!\n",nPotato); }else if (itemChoice == 2){ scanf("%d",&nApple); printf("%d Apple Purchased!\n",nApple); }else if (itemChoice == 3){ scanf("%d",&nOrange); printf("%d Orange Purchased!\n",nOrange); }else if (itemChoice == 4){ scanf("%d",&nBanana); printf("%d Banana Purchased!\n",nBanana); }else if (itemChoice == 5){ scanf("%d",&nPopcorn); printf("%d Popcorn Purchased!\n",nPopcorn); }else if (itemChoice == 6){ scanf("%d",&nWater); printf("%d Bottled Water Purchased!\n",nWater); }else if (itemChoice == 7){ scanf("%d",&nCola); printf("%d Cola Purchased!\n",nCola); } initialCart(nPotato,nApple,nOrange,nBanana,nPopcorn,nWater,nCola); printf("[1]Purchase Items\n"); printf("[2]Check Out\n"); printf("[3]Cancel Transaction\n"); scanf("%d",&cartChoice); }} if(cartChoice == 2){ printf("Check Out\n\n"); checkOut(nPotato,nApple,nOrange,nBanana,nPopcorn,nWater,nCola); printf("-------------------------------\n"); printf("TOTAL\t\t\tP%.2f\n",Total(nPotato,nApple,nOrange,nBanana,nPopcorn,nWater,nCola)); do{ printf("Enter amount: "); scanf("%f",&fAmount); }while(Total(nPotato,nApple,nOrange,nBanana,nPopcorn,nWater,nCola) > fAmount); printf("Official Receipt!\n\n"); checkOut(nPotato,nApple,nOrange,nBanana,nPopcorn,nWater,nCola); printf("-------------------------------\n"); printf("TOTAL\t\t\tP%.2f\n",Total(nPotato,nApple,nOrange,nBanana,nPopcorn,nWater,nCola)); printf("CASH TENDERED\t\tP%.2f\n",fAmount); printf("CHANGE\t\t\tP%.2f\n\n",fAmount-Total(nPotato,nApple,nOrange,nBanana,nPopcorn,nWater,nCola)); printf("Thank you for shopping!\n\n"); // This is the quantity that is going to be listed for the daily report. Potato = Potato + nPotato; Apple = Apple + nApple; Orange = Orange + nOrange; Banana = Banana + nBanana; Popcorn = Popcorn + nPopcorn; Water = Water + nWater; Cola = Cola + nCola; // This is the reset button for the cart, without this part the cart won't be overwritten. turnZero(&nPotato,&nApple,&nOrange,&nBanana,&nPopcorn,&nWater,&nCola); mainMenu(&menuChoice); } else if (cartChoice == 3){ // This makes sure that the quantity in the daily report is the latest quantity input by the user. turnZero(&nPotato,&nApple,&nOrange,&nBanana,&nPopcorn,&nWater,&nCola); mainMenu(&menuChoice); } if (menuChoice == 2 ){ printf("Daily Report!\n\n"); checkOut(Potato,Apple,Orange,Banana,Popcorn,Water,Cola); printf("-------------------------------\n"); printf("TOTAL\t\t\t P%.2f\n",Total(Potato,Apple,Orange,Banana,Popcorn,Water,Cola)); printf("[1]Return to the main menu\n"); do{ scanf("%d",&nReturn); if(nReturn == 1){ mainMenu(&menuChoice); } }while (nReturn != 1); } } return 0; } 
    submitted by /u/KingKallee
    [link] [comments]

    Looking for insight on an idea

    Posted: 31 Jan 2021 09:26 AM PST

    To start things off, I took two coding classes years ago and began learning about java and C++ (AFAIK these are introductory languages). With that being said, I am currently trying to work my way up to being part of the management team at my current job. While sitting at home one night, I was trying to think about if there was any way for us to make a program that would output effective schedules for each week so that we could move away from manually creating them.

    Not all employees are trained on every station in our stores and so we have to account for each day/week having appropriately trained employees for each shift and then enough to staff each station if multiple employees are required to staff.

    Employee availability would be considered as a variable to determine the options for each shift on any given day. Along with maximum hours and minimum hours of each employee.

    I feel like there are a lot more factors I may have to account for but my brain is going a mile a minute and I don't know if I have something that could help us out here or if I'm just talking crazy. My limited knowledge from the few coding classes I took has me thinking it would be possible but I'm not sure if I need to use things like a matrix for variables, or any advanced coding techniques that may not have been covered in my intro classes. It's been a few years but I feel like it'd be possible and I'm sure other companies have it already.

    I'd greatly appreciate the thoughts of anybody well versed in the world of coding. Thank you

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

    Which programming language and framework should I learn and will help me do this?

    Posted: 31 Jan 2021 07:37 AM PST

    Hi, I have a startup idea and for R&D purposes want to create a forum on the internet. Which language and framework should I learn.

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

    JavaScript Emote system

    Posted: 31 Jan 2021 06:47 AM PST

    Hey guys. First let me say i'm pretty new to web development so go easy on me. Okay so basically what I will have a live chat system on the page to where people can type anything and what i want is when a specific word is typed for example "smileEmote" that word should turn into a specific emoji sized picture when it's sent in the chat. This is a proof of concept that i was thinking of doing but i don't really know how to start. Thanks in advance!

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

    Movies that make programming seem cool?

    Posted: 30 Jan 2021 10:40 PM PST

    Had a rough week at work, felt kinda discouraged by my profession. Could go for a movie that kinda lifts my professional spirits. Mr.Robot is a good example of this I think, makes me think wow that a wonderous skill set and an incredible digital world we live in.

    I especially like spy movies where people run around Europe. Even cheesy ones like the da vinci code.

    Any suggestions really appreciated

    Thanks for all the dope suggestions everyone!

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

    No comments:

    Post a Comment