Русский
Открыть в Telegram
DDeloitte | COGNIZANT | IBM | CAPGEMINI
Deloitte | COGNIZANT | IBM | CAPGEMINI
@python_java_Coding · канал · Технологии · в индексе с 2026-07-19 10 февраля 2025
7 178подписчиков−36 за неделю
406средний охват поста
5.7%ER — охват к подписчикам
7постов за 30 дней

Посты за 10 февраля 2025

2025-02-10×
10 февраля 2025
Deloitte | COGNIZANT | IBM | CAPGEMINI
Фотография
нажмите — покажем
L&T✅✅✅ Contact: @MLCODER2
744 ·
import java.util.*; abstract class Employee { protected int id; protected String name; protected float baseSalary; public Employee(int id, String name, float baseSalary) { this.id = id; this.name = name; this.baseSalary = baseSalary; } public abstract float getSalary(); public void updateAttribute(String attribute, String value) { switch (attribute.toLowerCase()) { case "id": this.id = Integer.parseInt(value); System.out.println("Updated id to: " + this.id); break; case "name": this.name = value; System.out.println("Updated name to: " + this.name); break; case "base salary": this.baseSalary = Float.parseFloat(value); System.out.println("Updated base salary to: " + this.baseSalary); break; default: System.out.println("Invalid attribute for employee: " + attribute); } } public String retrieveAttribute(String attribute) { switch (attribute.toLowerCase()) { case "id": return String.valueOf(id); case "name": return name; case "base salary": return String.valueOf(baseSalary); default: return "Invalid attribute for employee: " + attribute; } } } class FullTimeEmployee extends Employee { private float bonus; public FullTimeEmployee(int id, String name, float baseSalary, float bonus) { super(id, name, baseSalary); this.bonus = bonus; } @Override public float getSalary() { return baseSalary + bonus; } @Override public void updateAttribute(String attribute, String value) { if (attribute.equalsIgnoreCase("bonus")) { this.bonus = Float.parseFloat(value); System.out.print
784 ·
case "part time employee salary": System.out.println(partTimeEmployee.getSalary()); break; case "update full time employee": String attrFullTime = scanner.nextLine().trim(); String valueFullTime = scanner.nextLine().trim(); fullTimeEmployee.updateAttribute(attrFullTime, valueFullTime); break; case "update part time employee": String attrPartTime = scanner.nextLine().trim(); String valuePartTime = scanner.nextLine().trim(); partTimeEmployee.updateAttribute(attrPartTime, valuePartTime); break; case "retrieve full time employee": String retrieveFullTimeAttr = scanner.nextLine().trim(); System.out.println(fullTimeEmployee.retrieveAttribute(retrieveFullTimeAttr)); break; case "retrieve part time employee": String retrievePartTimeAttr = scanner.nextLine().trim(); System.out.println(partTimeEmployee.retrieveAttribute(retrievePartTimeAttr)); break; default: System.out.println("Invalid command."); } } scanner.close(); } } #EMPLOYEE_MANAGEMENT ✅✅✅
767 ·
Фотография
нажмите — покажем
IBM OFFLINE CODING ✅✅ PYTHON 7/7 CASES PASSED ✅ JAVA 5/7 CASES PASSED WITH THE DRIVER CODE NOT CONFIGURED PROPERLY ✅
664 ·
package Learn.com; import java.util.Scanner; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int L = sc.nextInt(); int U = sc.nextInt(); sc.close(); if (L < 0 || U < L || U > 100) { System.out.println("Invalid input! Please ensure 0 <= L <= U <= 100"); return; } Map<Integer, Integer> freqMap = new HashMap<>(); for (int i = L; i <= U; i++) { for (int j = i + 1; j <= U; j++) { int diff = Math.abs(i - j); freqMap.put(diff, freqMap.getOrDefault(diff, 0) + 1); } } int maxFrequency = 0; int mostFrequentDiff = 0; for (Map.Entry<Integer, Integer> entry : freqMap.entrySet()) { if (entry.getValue() > maxFrequency) { maxFrequency = entry.getValue(); mostFrequentDiff = entry.getKey(); } } System.out.println("Marathon Winner: " + mostFrequentDiff + " minutes (occurring " + maxFrequency + " times)"); } } #Marthon_Winner_Finder
758 ·
public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int p = sc.nextInt(); if (p <= 0 p > 100) { System.out.println("Invalid number of rows. Exiting program."); return; } int q = sc.nextInt(); if (q <= 0 q > 100) { System.out.println("Invalid number of columns. Exiting program."); return; } int[][] matrix = new int[p][q]; for (int i = 0; i < p; i++) { for (int j = 0; j < q; j++) { matrix[i][j] = sc.nextInt(); } } int C = sc.nextInt(); if (C < 1 || C > q) { System.out.println("Invalid column number. Exiting program."); return; } sc.close(); int minElement = Integer.MAX_VALUE; int columnIndex = C - 1; for (int i = 0; i < p; i++) { minElement = Math.min(minElement, matrix[i][columnIndex]); } System.out.println("The minimum element in column " + C + " is: " + minElement); } } #Matrix_Column_Minimum_Finder
925 ·
D
Фотография
нажмите — покажем
Wipro ON-CAMPUS EXAM cleared ✅ Contact: @MLCODER2
1.1K ·
Календарь: февраль 2025
ПнВтСрЧтПтСбВс12133147526578910108111213121427153161717182192062152242312242256261527928

Открытая публичная лента из поискового индекса ChatCrawler — «Google по публичному Telegram»; обновляется по мере обхода площадки. Время — UTC.

Только публичный контент, официальный API Telegram. О проекте · Вопросы · Границы индекса · Убрать страницу из выдачи · Каталог · Поиск · Как мы считаем