Pergunta de entrevista da empresa Tata Consultancy Services

Problem Statement Create a class Finance with: Attributes: income, expenses, savings Methods: input() – Take income and expenses from the user calculateSavings() – Calculate savings = income - expenses display() – Print income, expenses, and savings Write a program to: Create an object of Finance Call the methods in order Print the results