Error # 7

Error type: logic

Screenshot

[IMG]http://i122.photobucket.com/albums/o242/Rozen123/error7-1.png[/IMG]

Problem: The program allows me to convert Fahrenheit degrees into degrees. When I input the numbers and click the button the number seems wrong. I believed that this error was logic because it is the worst type and I didn’t get an error message.

Screenshot of error

[IMG]http://i122.photobucket.com/albums/o242/Rozen123/error7-2.png[/IMG]

Solution: I have to check the code regarding the button. I have to look at the code very closely to check for errors because lack of error message could cause difficulty.

I decided to do some research and I found out the formula is;

C = 5/9(F-32).

Immediately, I found the problem because the formula was incorrect.

[IMG]http://i122.photobucket.com/albums/o242/Rozen123/error7-3.png[/IMG]

I immediately corrected this problem and tested the program.

Edited version

[IMG]http://i122.photobucket.com/albums/o242/Rozen123/error7-4.png[/IMG]

Picture of correct

[IMG]http://i122.photobucket.com/albums/o242/Rozen123/error7-5.png[/IMG]

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.