Jasmine is trying to write a code for her project but it would not compile or the output is out of expectation. Identify

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Jasmine is trying to write a code for her project but it would not compile or the output is out of expectation. Identify

Post by answerhappygod »

Jasmine Is Trying To Write A Code For Her Project But It Would Not Compile Or The Output Is Out Of Expectation Identify 1
Jasmine Is Trying To Write A Code For Her Project But It Would Not Compile Or The Output Is Out Of Expectation Identify 1 (35.27 KiB) Viewed 34 times
Jasmine is trying to write a code for her project but it would not compile or the output is out of expectation. Identify at least seven (7) syntax errors with line number stated and suggest the correct statement [7 marks] 1. include <stdio.h> 2. int main() 3. ( 4. integer radius = 0; 5. float area = 0, perimeter = 0; 6. do 7. 8. 9. { printf("Please key in your radius of a circle in centimeter: "); scanf(%d, radius); } while (radius < 0) 10. 11. area = 3.142 * radius * radius; perimeter = 2 * 3.142 * radius; 12. 13. printf("The area = %d cm2 and the perimeter = %d cm./n", Area, Perimeter); 14. return 0;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply