Instructions:
Input
1. First integer
2. Second integer
Output
The first line will contain a message prompt to input the first integer.
The second line will contain a message prompt to input the second integer.
The last line contains the number of times the first integer occurred in the digits of the second integer.
Enter·the·first·integer·(0·-·9):·2
Enter·the·second·integer:·124218
Occurrences·=·2Instructions:
Input
1. An integer
Output
The first line will contain a message prompt to input the integer.
The second line contains the largest digit of the integer.
Enter·n:·214
Largest·digit·=·4Instructions:
Input
1. An integer
Output
The first line will contain a message prompt to input the integer.
The succeeding lines contain the digits of the integer.
Enter·n:·214
4
1
2After the success of Doctor Strange in the Multiverse of Madness UCP movie club decided to display this movie on a bigger screen in UCP auditorium. But you have to buy a ticket for the show. Following are the rates of tickets:
Type of Ticket (1, 2, 3) Price Tax
Student= 100 and 17%tax
Faculty= 200 and 17%tax
Staff= 150 and 17%tax
Write a C++ program in which, ask user about how many tickets they want to buy? And which type of ticket they want to buy. Calculate total bill and display it on console.
Input
1. An integer
Output
The first line will contain a message prompt to input the integer.
The succeeding lines contain the odd numbers.
Enter·n:·10
9
7
5
3
1Government of Pakistan apply a tax on education sector in which, if your annual fee is greater than 2,00,000 than you have to pay 10% of exceeding amount as tax. If your annual fee is lesser or equal to 2,00,000 than your tax is zero. Write a C++ program in which, read fee of two semesters and identify either user have to pay tax or not. If user have to pay tax than calculate total fee with tax.
Create a Python script that will display the next 5 numbers in the sequence where each number is the sum of the previous two.
This is my text file:
8 3
4 5
6 2
The sample output should be like this when I run the code:
8 3 11 14 25 39 64
4 5 9 14 23 37 50
6 2 8 10 18 28 46
I need the code to have the python script that will display the next 5 numbers from my text file stated above.
Python Program
Write a python program to print the following output.
Input
The first line contains a string S representing a unique id.
The second line contains an integer N representing group length.
Output
The output should be a single string representing the new unique id.
Sample Input1
2-4A0r7-4k
3
Sample Output1
24-A0R-74K
Python Program
Write a python program to print the following output.
Input
The first line contains a string S representing a unique id.
The second line contains an integer N representing group length.
Output
The output should be a single string representing the new unique id.
Sample Input1
2-4A0r7-4k
3
Sample Output1
24-A0R-74K
Create a one (1) program that will apply all polymorphism techniques such as function, runtime and operator overloading.