1. 3,4,5,6A represent it in array code:- array = [3, 4, 5, "6A"] for element in array: print(element) 2. show * in array code:- #include <stdio.h> int main() { int array[] = { 1, 2, 3, 42}; printf("%d\n", array[0]); printf("%d\n", array[1]); printf("%d\n", array[2]); printf("%c\n", array[3]); return 0; } 3. Calculate the no. of numerical digits in a string. code:- s tring = "Madhav 9034, I have 34 Rubbe4." count = 0 for char in string: if char.isdigit(): count = count + 1 print("Number of numerical digits:", count) or def count_digits(input_string): count = sum(1 for char in input_string if char.isdigit()) return count if __name__ == "__main__": user_input = input("Enter a string: ") digit_count = count_digits(user_input) ...
Exp-1: Study of MATLAB software and its basic commands. MATLAB (Matrix Laboratory) is a high-level programming language and environment used primarily for numerical computing, data analysis, algorithm development, and visualization. It is widely used in academia and industry for tasks involving mathematics, engineering, and scientific computations. Key Features of MATLAB: 1. Interactive Environment : MATLAB provides an interactive platform to execute commands and visualize data. 2. Matrix Operations : Built-in support for matrix and array mathematics. 3. Rich Visualization : Easy-to-use functions for plotting and visualizing data. 4. Extensive Toolboxes : Additional toolboxes are available for various applications (e.g., Signal Processing, Image Processing, Machine Learning). 5. Cross-Platform : MATLAB runs on Windows, macOS, and Linux. ...
Sr. No. Experiments 1 To find out the sum of digits of a number and also find out its reverse. 2 To print all the prime numbers between two numbers. 3 To find out all the occurrences of a element from a given array. 4 To find out frequency of each digit for a array without using any conditional statement 5 Create a class with followings - Properties - Method Overlooking 6 Write a program to implement multilevel inheritance. It should include constructors and method overriding 7 Create a class Time with data members Hours, Minutes and Second . Overload + >, <, ==, != operators 8 Write a program to implement run time polymorphism. 9 ...
Nice Blog. Thanks for sharing very useful blog for students. It will be really helpful.
ReplyDeleteTop 5 Skills that Give Engineering Graduates Boost in Career
Top Reasons Why You Should Pursue B.Ed Course
Find Your Route To A Successful Career After Graduation
What is the future scope of a BSc in fisheries?
Career Opportunities for Students after Pursuing Diploma Courses
Thanku so much for your appreciation 😊
Delete