Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

The following is the Kittycode.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

Describe allergies and how they can be treated.

Answered: 1 week ago

Question

Which are non projected Teaching aids in advance learning system?

Answered: 1 week ago

Question

5. Explain the supervisors role in safety.

Answered: 1 week ago