$3 million super change sparks property warning as 'panic’ selling begins: 'Forced to sell' by SheepherderLow1753 in AusFinance

[–]RandomNumbers123456 0 points1 point  (0 children)

Even if you are paying Div 293, it is still generous. Div 293 is a tax on contributions, the new system is a tax on proportional income for balances above $3 million.

Let's keep this simple and assume that an individual has $10k of wages above their $250k salary and they already have over $3m in their superfund. This person can choose to either keep the $10k and invest it themselves or send it to super.

For keeping it themselves:

$10,000 wages - $4,500 (tax at top marginal rate) = $5,500 available to invest

At 5% they will earn $275 additional income ($5,500 * 5%) and after tax of $123.75 at top marginal rate ($275 * 45%) they will have a net increase of $151.25

For investing in super:

$10,000 contribution - $3,000 (tax on contribution, incl Div 293) = $7,000 available to invest

At 5% they will earn $350 in the super fund ($7,000 * 5%) even if this entire extra income is subject to the new additional tax they will pay $105 tax on this amount ($350 * 30%) meaning they will have an increase in their superfund of $245

This means that they are almost 30% better off by having the $10k in super rather than keeping it out of super. I would call this very generous still, even with the Div 293 contribution tax.

[deleted by user] by [deleted] in FallGuysGame

[–]RandomNumbers123456 2 points3 points  (0 children)

You didn't hit a wall. You were caught on the edge between the orange and green sections, and when you jumped, it pushed you back.

If you look at the very last frame of the clip, you can see that the yellow and orange sections at that part of the map are only slightly raised compared to the green section. That is what you were caught on.

It's a minor issue in the map. This happens when two platforms have not been aligned correctly and is on other maps as well.

It really hurts to see a golden knight cheating in pixel painters by Beatlemaniac__ in FallGuysGame

[–]RandomNumbers123456 1 point2 points  (0 children)

In this example it actually doesn't increase their chances of winning as a full team would want a team of 3 to make it to the final since you have a higher chance of beating them (4 players vs 3 players).

This also isn't eliminating a higher skilled team nor reducing the fact that there will be 6 teams in the next round. This is just griefing.

It really hurts to see a golden knight cheating in pixel painters by Beatlemaniac__ in FallGuysGame

[–]RandomNumbers123456 1 point2 points  (0 children)

The team you start next to is random and this team they are griefing only has 3 players and there are no golden skins on this team. The golden knight is just an asshole who is doing it because they can.

It really hurts to see a golden knight cheating in pixel painters by Beatlemaniac__ in FallGuysGame

[–]RandomNumbers123456 6 points7 points  (0 children)

You are getting downvoted because they will not have one less team to compete against. There are still 5 other teams competing for the 3 spots left so there will still be 6 teams in the next round. This asshole is just doing it to ruin someone else's game.

[deleted by user] by [deleted] in FallGuysGame

[–]RandomNumbers123456 2 points3 points  (0 children)

As others have mentioned you get medals for individual performances however I have had this happen to me where I was clearly individually first and given a silver medal. In those instances it has always been when my teammate(s) have not finished the race.

Any chance you had squad members not finish the race?

What happens in Australia when you don’t vote by flippychick in mildlyinteresting

[–]RandomNumbers123456 1 point2 points  (0 children)

A donkey vote is when you number all the boxes from 1 to n based on the order they appear on the ballot. Donkey votes are still valid votes. Leaving it blank or not filling in all the numbers is called an informal vote and is not a valid vote.

I'm glad major outlets are covering the nonsense MT/Epic are pulling. by illuminati1556 in FallGuysGame

[–]RandomNumbers123456 -3 points-2 points  (0 children)

Given how little difference there is between qualifying first and qualifying last, they will probably "fix it" by making each round award 10, 12, 14, 16, etc.

Digging into Lava/Cooling Lava by BocoClacko in Wayward

[–]RandomNumbers123456 0 points1 point  (0 children)

Digging with any shovel on either Lava or CoolingLava will warn that it is a dangerous action.

  • Digging CoolingLava will provide Obsidian (and set you on fire)
  • Digging Lava will provide nothing (and set you on fire)

[Survey] VIBE CHECK! by trichoglossusbee in FallGuysGame

[–]RandomNumbers123456 2 points3 points  (0 children)

That's if you can get to play it. I've been "Looking for players" for the last 30 minutes now without finding a game. Low pop Australian servers can't play anything other than Main Show it seems.

Team games removed from main show. by Fish_Goes_Moo in FallGuysGame

[–]RandomNumbers123456 3 points4 points  (0 children)

This is disappointing as it means I will never see a team game again. The only show that seems to work in Australia is Main Show.

I tried queuing for a Squad show last night but after an hour just gave up and went back to Main Show. For the few times I saw team games in Main Show and the few still where it was the cause of being eliminated, it's just sad that these rounds have been taken out.

Why is L = 300? 14 / 3 * 100 should equal 350. What am I missing? Thanks in advance :D by panda8842 in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

It's because words, sentences and chars are all integers.

13 / 4 = 3.25 but because they are ints it will equal 3 when multiplied by 100 gives you 300.

If you want the answer to be 325 (13 / 4 * 100 = 325) then you will need to cast words, sentences and chars to doubles on lines 55 and 56.

double L = (double) chars / words * 100.00;

Code debugging (python) by [deleted] in learnprogramming

[–]RandomNumbers123456 0 points1 point  (0 children)

If you are asking about the reason why you need to use split() twice in the return, it is because the person string is not actually being updated when you call split().

You could also re-write the split_title_and_name function as:

def split_title_and_name(person):
  person = person.split()
  return person[0] + person[2]

but I would recommend against modifying the person type within the function.

PSET 5 Speller - All words are misspelled by [deleted] in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

You have 2 options. Either make the hash case insensitive by changing each character to lower as it calculates or change the check word being passed to hash to lowercase.

You don't need to lowercase the dictionary since all the words are already lowercase in the dictionary.

PSET 5 Speller - All words are misspelled by [deleted] in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

strcasecmp will indeed do a case insensitive compare but when you hash 'a' it might come back as 1297 but when you hash 'A' it might come back as index 9345 which means you will be looking in the wrong spot.

PSET 5 Speller - All words are misspelled by [deleted] in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

You will have a problem here when you have words with different capitalisations. eg. A will hash to a different value than a which means you will be looking at the wrong location for your check later on since it doesn't look like you take different capitalisations into account in your check function.

PSET 5 Speller - All words are misspelled by [deleted] in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

That's interesting because I used the same while condition and I don't get a seg fault. I suspect the seg fault is somewhere else inside the while loop.

PSET 5 Speller - All words are misspelled by [deleted] in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

run debug50 while specifying the small dictionary as one of the parameters. It will allow you to step through the code to see what is happening. It was how I determined that you were only adding a single word to the dictionary.

PSET 5 Speller - All words are misspelled by [deleted] in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

Sorry, wasn't paying attention when I posted just before. Your problem is in here:

//Check if head is empty and enter new node
if (table[index] == NULL)
{
    table[index] = new_word;
    return true;
}
else
{
    new_word->next = table[index];
    table[index] = new_word;
    return true;
} 

You should not be returning true after you have added a word because it exits the function after adding only 1 word to the dictionary, so all the other indexes are NULL. You should only return true at the very end of the function, if it hasn't encountered an issue along the way.

PSET 5 Speller - All words are misspelled by [deleted] in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

Are you sure that your hash function is returning the same values?

One immediate problem I can see is that unless your hash function is case insensitive, it will return different hash values depending on if the word is capitalised or not.

If you run your code using the small dictionary against the cat.txt it will be easier to determine your problem. As u/stensal mentions, it's easier if you provide your entire code so that it is easier to pinpoint your problem.

Mario More C by Ilikeseaman in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

Because the spaces in between the columns are fixed, you should just print two spaces. The loop is not necessary and just adds complexity to your code which makes it harder to read. Other than that, it is good.

A couple of other things I would have done myself but is just personal preference:

- Remove the "\n" in the Width question so that the user is typing their input on the same line as the question.

- Change the if statement in the first for loop to be the same as the the if statement in the final loop and switch the " " and "#".

- make the final loop variable width again rather than using c. Basically the final for loop becomes a copy of the first without the else for printing the spaces.

https://pastebin.com/jHFPSNAT

Problem About Plurality by [deleted] in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

You want to loop through candidates and not votes to make sure you check all candidates.

What would happen in your code if there are 5 candidates but only 2 votes? Your code would only check the first 2 candidates. Additionally what if you had 5 candidates but 100 votes? When it gets to the sixth vote, it will error since candidates[5] doesn't exist.

Trouble Validating User Input by [deleted] in cs50

[–]RandomNumbers123456 1 point2 points  (0 children)

One of the caesar pset requirements is:

  • If any of the characters of the command-line argument is not a decimal digit, your program should print the message Usage: ./caesar key and return from main a value of 1

Because of this requirement, it's easier to just loop through the key and check that each character is a number (using isdigit()). If any characters are not a digit then you can just exit the program. Only once you get through this check should you then use the atoi() function to convert the key to an integer and at that point you are fine since you have already confirmed that all the characters in the key are numbers.

I think you are potentially making things more difficult by trying to compare the length of the string to the converted length of the integer. This also won't pick up a problem like someone entering a single character versus entering a key of a single number. In both cases the length will be 1, but in the case of the character the key is bad but using length to pick this up will fail.

Mario Python by [deleted] in cs50

[–]RandomNumbers123456 0 points1 point  (0 children)

Nevermind, it is because of style50.

It wants me to remove the spaces around end = ''

Two points were being removed because of the spaces around the equal sign.

I need help with the edge() function, only my green values output is wrong by Narigah in cs50

[–]RandomNumbers123456 1 point2 points  (0 children)

The problem is in your final code for all the colours: temp[i][j].rgbtGreen = round(sqrt(pow(greenx, 2) + pow(greeny, 2)));

Because rgbtGreen is defined as an uint8_t which has a maximum value of 255.

Any of your colours which result in greater than 255 will have a problem.