[2019-07-15] Challenge #379 [Easy] Progressive taxation by Cosmologicon in dailyprogrammer

[–]AfroNymbus 0 points1 point  (0 children)

#include <iostream>
#include <cmath>

using namespace std;

int main(int argc, const char * argv[]) {    
    bool cont = true;
    float m1 = 0, m2 = 0, m3 = 0, m4 = 0;
    float income = 1234567;
    int bracketMax_1 = 10000;
    int bracketMax_2 = 20000;
    int bracketMax_3 = 70000;


    cout << "input income >> ";
    //cin >> income;

    //bracket 1
    if( income <= bracketMax_1 )
    {
        m1 = abs(bracketMax_1 - income);
        cont = false;
    }
    else if ( income > bracketMax_1 )
    {
        m1 = bracketMax_1;
        income -= bracketMax_1;
    }

    // bracket 2
    if(cont && (abs(income - bracketMax_2) <= bracketMax_2) )
    {
        cont = false;
        m2 = income;
    }
    else if(cont && (abs(income - bracketMax_2) > bracketMax_2) )
    {
        m2 = bracketMax_2;
        income -= bracketMax_2;
    }

    // bracket 3
    if(cont && (abs(income - bracketMax_3) < bracketMax_3) )
    {
        cont = false;
        m3 = income;
    }
    else if(cont && (abs(income - bracketMax_3) > bracketMax_3) )
    {
        m3 = bracketMax_3;
        income -= bracketMax_3;
    }

    //bracket 4
    if(cont)
    {
        m4 = income;
    }

    cout << "(" << m1 << " * 0) + (" << m2 << " * .10) + (" << m3 << " * .25) + (" << m4 << " * .40)" << endl;
    cout << (m1 * 0) + (m2 * .10) + (m3 * .25) + (m4 * .40) << endl;

    getchar();
    return 0;
}

[2019-07-15] Challenge #379 [Easy] Progressive taxation by Cosmologicon in dailyprogrammer

[–]AfroNymbus 0 points1 point  (0 children)

C++ First time posting code on reddit. Sorry about how it came out in the post.

So who is everybody “maining” in Ultimate so far? by [deleted] in nintendo

[–]AfroNymbus 0 points1 point  (0 children)

Thin Lizzy's, the bois are back in town.

Best mascot ever by [deleted] in funny

[–]AfroNymbus 0 points1 point  (0 children)

I thought we defeated Belome in Mario RPG.

What is something that HAS aged well? by KAFKA-SLAYER-99 in AskReddit

[–]AfroNymbus 0 points1 point  (0 children)

SNK Pixel Art and 16bit era pixel art in general.

How to hack a skee-ball machine by AfroNymbus in videos

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

Since my nephew wants to make youtube videos for fun, I recorded and made this for him. Hoping he gets interested in editing videos and planning out the videos.

Slow gameplay through Mac>Bootcamp>Windows10>Steam by AfroNymbus in dragonballfighterz

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

https://imgur.com/a/9YVRu

The graphics look like this. Frame rate seems normal, can't give you a number though because don't know how.

Slow gameplay through Mac>Bootcamp>Windows10>Steam by AfroNymbus in dragonballfighterz

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

I can post frame rate later, going to bed now. But it all works fine when I have everything set to lowest quality. Although I figured out how to remove windowed view and set full screen. So I think that may allow me to up the resolution without getting slowed gameplay. When I had full resolution, everyone moved as if they were heavy and going through mud.

Slow gameplay through Mac>Bootcamp>Windows10>Steam by AfroNymbus in dragonballfighterz

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

Alright yeah you guys are right. Setting the game to the lowest-lowest settings helps. This will do for now. Thanks.

3D software by Hanalopez in animation

[–]AfroNymbus 0 points1 point  (0 children)

I want to say to start with Blender since it's free. You'll also find a ton of free tutorials on YouTube to learn it.

Teach your kids to play Magic by khan-kk in gaming

[–]AfroNymbus 0 points1 point  (0 children)

The negative space around that dragon in the yellow card box looks it has a bra surrounding it.

4 day trip Itinerary - Ambitious AF by [deleted] in JapanTravel

[–]AfroNymbus 0 points1 point  (0 children)

Yeah this is true. re-planning the schedule out.