All Questions
6
questions
0
votes
2
answers
4k
views
Loan calculator in C
I wanted to create a loan calculator, but the code I could think of was using 3 functions, and calling them and getting result. But I felt it was easy but bad code because I thought this can be ...
2
votes
3
answers
180
views
Calculating money made per hour
I am new to coding and made myself my first little program, which lets me calculate the amount of money I make per hour doing a transcription project. While my code works (yay!) and I am proud of my ...
12
votes
5
answers
6k
views
Credit card validation
I started following Harvard's CS50 (Introduction to Computer Science) on edX, and as part of their Hacker edition set 1 was the following assignment:
I am supposed to write a program (in C), that ...
5
votes
2
answers
10k
views
Minimum number of coins to make change
I am new to programming and I am taking CS50 2014 online through iTunes University. This is the change-making problem in Problem Set 1:
Write a program that first asks the user how much change is ...
20
votes
3
answers
5k
views
Credit card verification: string conversion most optimal?
Below is some code which verifies a credit card number using the checksum as well as check if number of digits are appropriate as well if digits start with right numbers. I am not sure if converting ...
2
votes
2
answers
6k
views
Calculate weekly net pay
My task is:
Write a program that requests the hours worked in a week and then
prints the gross pay, the taxes, and the net pay. Assume the
following:
Basic pay rate = $10.00/hr
...