Convert Alphabet Character to Opposite Case
Write a Python program using an if-elif-else ladder to check if an input character is lowercase, uppercase, or non-alphabet, converting letters to their opposite casing.
Questions on top, code solution screenshots directly below. Click any image to expand.
Write a Python program using an if-elif-else ladder to check if an input character is lowercase, uppercase, or non-alphabet, converting letters to their opposite casing.
Write a Python program to read total electricity units consumed and compute the net electricity bill based on tiered tariff rates using an if-elif-else structure.
Write a Python program to calculate courier or shipping fees according to parcel weight categories using an if-elif-else ladder.
Write a Python program to read three side lengths of a triangle and classify whether it is an Equilateral, Isosceles, or Scalene triangle using if-elif-else.
Write a Python program using if-elif-else to classify any given keyboard character as uppercase, lowercase, numeric digit, whitespace, or special character.
Write a Python program to input the number of overdue book return days and calculate the total fine using progressive fine rate slabs in an if-elif-else ladder.
Write a Python program that accepts an integer between 1 and 12 representing a month. Using conditional statements, determine and print the total number of days in that month.
Write a Python program to read Cost Price and Selling Price, displaying whether the merchant achieved Profit, suffered Loss, or reached Breakeven (No Profit, No Loss).
Write a menu-driven Python program that displays a four-item menu using character choices (a, b, c, d).
Write a Python program to accept subject marks, compute aggregate total and percentage, and assign letter grades (A, B, C, D, Fail) using an if-elif-else ladder.
Write a program to input the total cost and to compute and display the amount to be paid by the customer after availing the discount.The company has announced the following festival discounts on the purchase of items based on the total cost of the items purchased