Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The following is the Kittycode. Please give the full explanations of errors and give the correct code in details. Thank you very much. The correct
The following is the Kittycode.
Please give the full explanations of errors and give the correct code in details. Thank you very much.
The correct answer doesn't need to be in the kittycode shape.Thanks.
(Stretch 1) Download kittyCode.cpp from the class website. When you run the program you should be able to enter a number. The admittedly whimsical program is supposed to convert fronm Fahrenheit to Celsius. This code contains a number of logical errors and stylistic shortcomings. Some of the errors are subtle, so expect this problem to take longer than it originally seems like it should (but it shouldn't take an enormous amount of time). Fix the code to do the conversion correctly. To do this, both you and your partner should look at the code individually, create a list of items to fix, and then compare lists before starting to fix the items. Some additional instructions: (i) Look up the conversion formula if you do not remember it, and either verify it is correct in the program, or correct it in the program. (ii) The progranm does not include a prompt for input, so part of revising the program will be adding the prompt shown in the examples below. (iii) Please do not write the program from scratch, though this would probably be easier than fixing the code. (You do not need to keep it in the shape of a cat.) (iv) Also, please never write code like this! Here is an example, with the user input underlined: Input temperature in degrees Fahrenheit: 0.0 0.0F-17.77780 And here is another example: Input temperature in degrees Fahrenheit: 40.0 40F -40C #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started