Skip to main content
2 votes

pset3: multiply x by y, n times

I used pow from math.h, like 440.0 * pow(2, semitones / 12.0);. semitones in this case would be the number of semitones relative to A4 (one octave being 12 semitones). It's important to have the 12.0 ...
Blauelf's user avatar
  • 21k
1 vote
Accepted

pset1 credit 2023 , do while loop with arrays/intervals

Admirable that you want to do input validation, but don't. ONLY do what the problem specification says, no more, no less. You'll be doing data validation in later problem sets. Also, check50 and ...
Cliff B's user avatar
  • 69k
1 vote
Accepted

Numbers with printf -- sanity check

It's not a floating point problem, it's an integer problem. ;-) Look at this line: int l = 65 / 14 * 100; It contains all integers. Additionally, consider the precedence of operations - what ...
Cliff B's user avatar
  • 69k
1 vote
Accepted

Help in Resize, biSize headers not sizing correctly

Hmmm..... So here's my question for you. WHICH fields are supposed to be updated in the headers when resizing to something other than 1? Hint: check50 is giving you a clue. If this answers your ...
Cliff B's user avatar
  • 69k

Only top scored, non community-wiki answers of a minimum length are eligible