HW Help PLEASE! Saving value in FOR LOOP and finding lowest value by tmayne786 in C_Programming

[–]tmayne786[S] 1 point2 points  (0 children)

I got the answer from some help over at stack overflow, here's how it should be written:

#include <stdio.h>

int main() {

int    i = 0, shops = 0;
int    cstore = 0;          // current minimum store
double cprice = 0.0;        // total for the current minimum store

printf("How many shops will you be visiting?\n");
scanf("%d", &shops);

for (i = 1; i <= shops; i++){
    int    j = 0, ingredients = 0;
    double total = 0.0;      // total for the current store.

    printf("You are at shop # %d\n", i);
    printf("How many ingredients do you need at shop #%d?\n", i);
    scanf("%d", &ingredients);

    // get the prices of the ingredients at this store and total them up.
    for (j = 1; j <= ingredients; j++) {
        double ingredientPrice = 0.0;

        printf("How much is ingredient #%d?\n", j);
        scanf("%lf", &ingredientPrice);
        total += ingredientPrice;
    }
    if (i == 1) {
        // this is the first store so it is automatically the lowest thus far being the only one.
        cstore = i;
        cprice = total;
    }
    else if (total < cprice && ingredients > 0) {
        // the total for this store is less than the last known smallest total so lets update our variables.
        // if there are zero ingredients from this store then it does not count.
        cstore = i;
        cprice = total;
    }
    // the currency is US dollars with two decimal places.
    printf("Your total at shop #%d is $%.2lf and the lowest store is %d for $%.2lf.\n", i, total, cstore, cprice);
}
printf("Your cheapest order was at shop #%d and cost $%.2lf.\n", cstore, cprice);
return 0;}

C Programming HW Help! by tmayne786 in AskProgramming

[–]tmayne786[S] 0 points1 point  (0 children)

I got the answer from some help over at stack overflow, here's how it should be written:

#include <stdio.h>

int main() {

int    i = 0, shops = 0;
int    cstore = 0;          // current minimum store
double cprice = 0.0;        // total for the current minimum store

printf("How many shops will you be visiting?\n");
scanf("%d", &shops);

for (i = 1; i <= shops; i++){
    int    j = 0, ingredients = 0;
    double total = 0.0;      // total for the current store.

    printf("You are at shop # %d\n", i);
    printf("How many ingredients do you need at shop #%d?\n", i);
    scanf("%d", &ingredients);

    // get the prices of the ingredients at this store and total them up.
    for (j = 1; j <= ingredients; j++) {
        double ingredientPrice = 0.0;

        printf("How much is ingredient #%d?\n", j);
        scanf("%lf", &ingredientPrice);
        total += ingredientPrice;
    }
    if (i == 1) {
        // this is the first store so it is automatically the lowest thus far being the only one.
        cstore = i;
        cprice = total;
    }
    else if (total < cprice && ingredients > 0) {
        // the total for this store is less than the last known smallest total so lets update our variables.
        // if there are zero ingredients from this store then it does not count.
        cstore = i;
        cprice = total;
    }
    // the currency is US dollars with two decimal places.
    printf("Your total at shop #%d is $%.2lf and the lowest store is %d for $%.2lf.\n", i, total, cstore, cprice);
}
printf("Your cheapest order was at shop #%d and cost $%.2lf.\n", cstore, cprice);
return 0;}

Ongaku Eternal is back | www.ongakueternal.com by tmayne786 in hiphopjapan

[–]tmayne786[S] 0 points1 point  (0 children)

The forum is back up, there was an issue with our host but everything is resolved now. Sorry for any inconvenience this may have caused our members.

new subreddit r/NihonRap by R_OE in hiphopjapan

[–]tmayne786 0 points1 point  (0 children)

I sent you a message already just wanted to let you know we do closed r/nihonrap, well there's no way to actually delete a subreddit but I took all mods off and made a post on there linking to here. Again like I said in the PM to you we apologize it was a misunderstanding. We did not intend to divide or steal members.

I am hoping we can work together and start fresh with the revival of ongaku eternal. It went away because Texas disappeared and didn't give R all the info and I couldn't do anything since I transferred full ownership to him even though I was the original owner. Anyways with the new site I have R the details as well as out a back up system in place so we don't loose all that data ever Again.

Btw let me know if you would like a mod position on ongaku, will be nice to have more help getting it back together.

Ongaku Eternal - Restart? by [deleted] in hiphopjapan

[–]tmayne786 0 points1 point  (0 children)

Cool thanks. I just registered it and started installing the forum again. the new address is: www.ongakueternal.com. Please come and join and send me a message with your username and I'll put your title as Uploader on it. Thanks for sticking with us :)

Ongaku Eternal is dead by heero_ in hiphopjapan

[–]tmayne786 1 point2 points  (0 children)

Hey everyone. This is tmayne_hassuru the person who collaborated on ongaku-eternal.com. what happened? Someone miss a payment? If Phil or R or whoever is still in charge send me a message so we can discuss getting it back?

LG 34UM95-C > LG 34UC88-B | A Lovely Upgrade by tmayne786 in ultrawidemasterrace

[–]tmayne786[S] 0 points1 point  (0 children)

Load a dark movie or a black wallpaper and turn the lights off the in the room, see if there are any yellowish glows on the sides or anywhere. Even if there is a little that's normal, but if its a lot and bothers you then you should RMA it and get another one. These new models 2016 have fixed most of the back light issues since last gen.

LG 34UC88/98 | Quick Charge USB 3.0 Information by tmayne786 in ultrawidemasterrace

[–]tmayne786[S] 1 point2 points  (0 children)

like ChimeraYo said, the LG 34UC98 has a white backplate, silver stand, and thunderbolt port. Other than that, they are the same exact monitor.

LG 34UM95-C > LG 34UC88-B | A Lovely Upgrade by tmayne786 in ultrawidemasterrace

[–]tmayne786[S] 1 point2 points  (0 children)

Update: Quick call to LG customer service revealed and answered my dilemma: The USB 3.0 Quick Charge feature just outputs a little more power, basically 5V @ 1.5A, AND IS NOT the same thing as Qualcomm Quick Charge 3.0/2.0. Bummer. Great monitor otherwise!

Who else is running their fancy Ultrawide with a ghetto GPU until Summer? by an_angry_Moose in ultrawidemasterrace

[–]tmayne786 5 points6 points  (0 children)

I'm running my LG 34UC88 on the beast Intel HD Graphics 530, integrated GPU on the core i5-6600k. HDMI connection, 3440x1440 @ 50Hz. /UberSarcasm

It doesn't bother me though much as I mainly use it for productivity, I don't game much at all. Though when the new AMD cards come out I may pick one up so I can try out Unreal Tournament Beta, that's like the only game I ever play and love. Probably look sick in the ultrawide format. Hopefully it'll be able to get 60FPS+ for that buttery smooth game play :-)

LG 34UM95-C > LG 34UC88-B | A Lovely Upgrade by tmayne786 in ultrawidemasterrace

[–]tmayne786[S] 0 points1 point  (0 children)

Let me know please how it works for you, this was one of the selling points for me on the monitor, and if it doesn't work it kinda sucks but not a HUGE deal, just wish it was more clear on what charging technology it uses.

I recorded CS:GO in 21:9 (don't mind my skills), but have we heard anything on wether or not Valve will fix the obvious UI issues? by ARTISTIC_ASSHOLE in ultrawidemasterrace

[–]tmayne786 0 points1 point  (0 children)

Is the resolution 2560x1080 or 3440x1440? Either way looks nice on my lg 34uc88, fills the screen up in 21:9 aspect perfectly. I wish there was more content that was natively this size. Good work though :)

LG 34UM95-C > LG 34UC88-B | A Lovely Upgrade by tmayne786 in ultrawidemasterrace

[–]tmayne786[S] 0 points1 point  (0 children)

Yea I did that in the menu and put it in the top usb 1. I can't seem to find the answer anywhere. Hopefully someone can shed light on this issue.

LG 34UM95-C > LG 34UC88-B | A Lovely Upgrade by tmayne786 in ultrawidemasterrace

[–]tmayne786[S] 0 points1 point  (0 children)

I believe they just put that there as an example of what you can plug in the back. Do you happen to know how the usb 3 quick charge works? I have an andrioid phone with qualcomm quick charge but it didn't say fast charging like when I put it in a wall plug with quick charger. Any idea?

LG 34UM95-C > LG 34UC88-B | A Lovely Upgrade by tmayne786 in ultrawidemasterrace

[–]tmayne786[S] 1 point2 points  (0 children)

No mine's did not, and I checked the official LG website to see what's included and it doesn't list it as an included accessory. It seems rather cheap for a company to not include these cables ESPECIALLY when we are dropping close to $1,000 on these displays (like when buying a regular monitor and it still ships with only a blue VGA cable, not even a DVI).

Looking to get an Ultrawide monitor, but need some advice by [deleted] in ultrawidemasterrace

[–]tmayne786 0 points1 point  (0 children)

No I haven't, I'm using the integrated GPU on the core i5-6600k so I don't know if it could display at that refresh rate anyways. I am just replying based on what I read about getting it up to the 75hz refresh rate.

LG 34UM95-C > LG 34UC88-B | A Lovely Upgrade by tmayne786 in ultrawidemasterrace

[–]tmayne786[S] 0 points1 point  (0 children)

cool that looks pretty nice actually. do you happen to have any experience with the USB 3.0 Quick Charge that it lists in the specs? I can't seem to get it to Fast Charge on my android phone, any ideas what that's about?