Write a program to create a class students having name , id , age. Create a file "student.txt" and open in append mode. Write details of 3 students into a file and read the data from the file and display on screen. Also copy content to this file into another file. [10 marks]
Qn.Implement a super class Person. Make two classes, Student and Instructor, that inherit from
Person. A person has a name and a year of birth. A student has a course and an instructor has a
salary. Write the class definitions, the constructors, and the functions for all classes. Supply a test
program that test these classes and member functions.
Write a C++ program which performs the following two operations on doubly linked list
Insertion of a new element at any mentioned position in the list.
Deletion of an element which contains the given key
Deletion of an element which found at the given position.
1.1 State the five main steps of the DBLC.
1.2 For each step stated above in Question 1.1. State and explain the activities that are done for each step.
Write a Python program that takes a String as an input from the user and counts the frequency of each character using a dictionary. For solving this problem, you may use each character as a key and its frequency as values. [You are not allowed to use the count() function] Hint: You can create a new dictionary to store the frequencies. You may ignore case for simplicity (i.e. may consider P and p to be the same). =================================================================== Sample Input: "Python programming is fun" Sample Output: {'p': 2, 'y': 1, 't': 1, 'h': 1, 'o': 2, 'n': 3, 'r': 2, 'g': 2, 'a': 1, 'm': 2, 'i': 2, 's': 1, 'f': 1, 'u': 1}
Big Data techniques are not as widely used by professional accountants as in other related fields…
a.
True.
b.
False.
Create a program that will allow the user to input ten numbers into an array, using values of 0 to 99, and print out all numbers except for the largest number and the smallest number.
Sample Output:
Enter the Numbers >> 10 20 10 40 50 60 70 80 90 99
Output >> 20 40 50 60 70 80 90
Try Again Y/N?
Write a program to input 10 numbers and output the sum of the two largest values in the sequence.
Sample Output:
Enter the Numbers >> 10 2 3 4 5 6 7 9 9 10
Sum >> 20
Try Again Y/N?
Write a c++ program to find sum of all even numbers between 1-n.- using for loop
Write a C++ program to print all odd numbers between 1 to 100