Brain teaser is a game that identifies basic knowledge of children’s for the age group 5 to 8 years. Identify whether the entered character is letter, digit or other symbols.
Test cases
Input
Output
Test case 1
Z
Alphabet
Test case 2
8
Number
Test case 3
$
Special Character
I am trying to write a python program that illustrates my knowledge of CS Concepts. I want to specifically make a "calories burned calculator that has a menu with several different exercises. I want the user to pick one of the exercises, then I want them to put in their weight, age, and height, and from that information I would like a number of calories that would have been burned for that specific activity. The data doesn't need to be accurate, I will change that myself, I just need a basic python program that can run those operations.
As a minimum, the program needs:
to be programed solely in Python
Use a data structure (array, objects, files, database)
Have a interface for the user (Tkinter, pygame, command - line menu)
Solve the problem of how many calories you burned with each exercise relative to your weight, age, and height
Shouldn't crash under a typical load
Creates two friendly classes, the class ABC with attribute A and class XYZ with attribute age to find maximum age among two men. Assign values for the data members using parameterized constructor, then to find maximum age among two men using friend function and display the age of men. Finally free the resources of data objects using destructor member function.
Declare the class Date, consisting of data members are day, month and year. The member functions are setdate() to assign the value for data members, Month() to find the string for the month data member and show() to display the date.
Implement a C++ program to define function named as ext, to extract the digits that located at even and odd position of five digit number and show the result.
Write a C++ Program to sort array of integers. Get the user input and display it in the sorted order.
Define the classes using hierarchy inheritance. An organization has two types of employees: Regular and Adhoc are derived class. Regular employees get a salary which is Basic salary + DA + HRA where DA is 10% of basic and HRA is 30% of basic. Adhoc employees are daily wagers who get a salary which is equal to Number oh hours * Wages amount. The employee base class consisting of member variables such as name and empid. When a regular employee is created, basic salary must be a parameter. When Adhoc employee is created wages amount must be a parameter. Define the member functions for each class and the member function days( ) updates number of the Adhoc employee.
Develop a code for the hierarchical inheritance for banking account,
· The Bank_ACC base class consisting of data members such as accno and name, and member functions get() and display().
· The SB_ACC derived class inherited from Bank_ACC class, consisting of data members such as roi, and member functions get() and display().
· The CUR_ACC derived class inherited from Bank_ACC class, consisting of data members such as odlimit, and member functions get() and display().
Develop a code for the multilevel inheritance diagram given below
· The person class consisting of data members such as name and age.
· The salary details class consisting of data members such as salary.
· The employee class consisting of data members such as degree and experience.
· The manager class consisting of member function pfund() to find the employee provident fund satisfying the condition total experience to be greater than 10 and salary to be greater than Rs. 20,000 and then calculate net salary = basic pay + pf. The provident fund amount sanctioned is Rs. 1800 for basic pay Rs 20,000 otherwise provident fund amount sanctioned is Rs. 750.
Create a class by name Area and initialize the data members. Then, find areas of square [Area(a)], area of rectangle [Area(l, b)], area of triangle [Area(a, b, c)] using constructor overloading. Also define a destructor to destroy the object.