Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with this question. I would appreciate it if you add some explanations. The following two programs are designed to give the letter

Please help me with this question. I would appreciate it if you add some explanations.image text in transcribed

The following two programs are designed to give the letter grade of a student for a given total course mark as integer value out of 100 . Assume the value of mark is always between 0 and 100 . The intended letter grade assignment is [90,100]= 'A', [75,90)= 'B', [65,75)= 'C' [50,65)= 'D' and [0,50)= ' F '. One of the two programs has semantic error. Which one is it? Circle your answer: Answer: Program1.py Program2.py The two programs do sometimes give the same output for some selected input value for mark. Give an example of input value for the variable mark for which the two programs will give the same output. Answer: The two programs do sometimes give different outputs for some selected input value for mark. Give an example of input value for the variable mark for which the two programs will give different outputs

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

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students also viewed these Databases questions