Is there a program that can help me with grammar mistakes?
Besides my word processor Microsoft Office Word 2010 which picks up only basic mistakes, is there a program other than the ones online which can steal your work and information that can show me my mistakes. Something I can pay for, download to my computer and use offline to avoid people stealing whatever work I am doing?
My simple C program won't work and I have no idea why! can you find my mistakes?
It's weird, really. This program seems simple enough, yet the random case of inputting 34.35 doesn't work.The program asks the user to input a dollar amount and tells the user the appropriate bills needed to equal that amount.example Please enter a dollar amount 12.27 outputs Bills 12Coins 27You will need...0 hundreds0 fifties0 twenties1 tens0 fives2 ones1 quarters0 dimes0 nickels2 penniesI see two problems. One random, and one perhaps not.The first comes when the user enters 34.35. This is what the screen prints Please enter in a dollar amount 34.35Bills 34Coins 34You will need...0 hundreds0 fifties1 twenties1 tens0 fives4 ones1 quarters0 dimes1 nickels4 penniesIt says the change is 34, not 35. I don't understand why.The other problem is when the user enters in a big number like 1238742.2. It says the change is 24, not 20.Please enter in a dollar amount 1238742.2Bills 1238742Coins 24You will need...12387 hundreds0 fifties2 twenties0 tens0 fives2 ones0 quarters2 dimes0 nickels4 penniesHERE IS THE CODE include < stdio.h> int main float input int bills 0, coins 0, hundred 0, fifty 0, twenty 0, ten 0, five 0, one 0, quarter 0, dime 0, nickel 0, penny 0 printf " nPlease enter in a dollar amount n" scanf " %f" , & input bills input 100 coins bills %100 bills bills 100 printf " n nBills %i nCoins %i n n" , bills, coins while bills > 100 bills bills 100 hundred while bills > 50 bills bills 50 fifty while bills > 20 bills bills 20 twenty while bills > 10 bills bills 10 ten while bills > 5 bills bills 5 five while bills > 1 bills bills 1 one while coins > 25 coins coins 25 quarter while coins > 10 coins coins 10 dime while coins > 5 coins coins 5 nickel while coins > 1 coins coins 1 penny printf " nYou will need... n n %i hundreds n %i fifties n %i twenties n %i tens n %i fives n %i ones n %i quarters n %i dimes n %i nickels n %i pennies n n" , hundred, fifty, twenty, ten, five, one, quarter, dime, nickel, penny return 0 This is the link to the video explaining and showing the problem.youtube.com watch?v N4iBzGkdb6s I added a prinf statement to show the input, and its strange. the input for 34.35 is actually 34.9998 which explains the problem. WHY IS THIS?
Could you tell me mistakes that these sql queries have? ignore table, columns names etc?
3 SELECT D Code,D Surname,D Name FROM Doctor WHERE D Surname LIKE 'K %'4 SELECT D Surname, D Name, COUNT ExDate AS NumOfSessions Doctor INNER JOIN Examines USING D Code WHERE ExDate < " 2012 05 30" 5 SELECT D Surname, D Name, COUNT ExDate AS NumOfSessions Doctor INNER JOIN Examines USING D Code WHERE COUNT ExDate < 46 SELECT P Name, P Surname, D Surname FROM Patient WHERE S Name SADASDASD ORDER BY P Surname INC 7 SELECT ExDate, P Name, P Surname, D Surname, S Code FROM Examines WHERE ExDate 2012 05 30
Help find where is the mistake?
include < stdio.h> include< stdlib.h> include< math.h> main FILE fpt fpt fopen " velocity.txt" , " r" char text1 1000 ,text2 1000 float x 40 ,t 0 ,r,s,v 0 int i,n fscanf fpt," %s %s" , text1, text2 printf " n %s %s n" , text1, text2 for i 0 i< 40 i fscanf fpt," %f %f" , & t, & v printf " %3.1f %6.3f n" , t, v for n 0 n< 40 n t 0 0 t n 1 n 1 0.1 x 0 0 x n 1 x n v n 1 v n 2 t n 1 t n printf " x %d %.3f n" ,n, x n system " pause" i'm already make a correction but still cannot get proper result.any other mistakes?
Legal Notice: This website is powered by Amazon®, Adsense™, ClickBank, Yahoo!®Answers and Youtube™. All trademarks are copyrighted by their respective owners. Please read our terms of use and privacy policy.