Question: 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 oferrors and give the correct code in details. Thank you very much.

The following is the Kittycode.

The correct answer doesn't need to be in the kittycode shape.Thanks. (Stretch

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 #include Cy using namespace std; **/*/111..//*/ double tc; * 0 int/k k/main() k /tci char f = "C'; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!