Design a C program to remove the symbol @ present in the sting and then count total number of Capital and Small case of alphabets from the given input string.
Runtime Input :
funDam@EntalS
Output :
3 9
A problem that computes the cost of postage on a first-class letter according to the following
rate: Php12.30 for the first ounce, Php 8.25 for each additional ounce, plus a Php 25.50 service
charge if the customer desires special delivery.
Write Syntax for each of the following in C++ environment: i. Function Declaration ii. Function Definition iii. Function Overloading
Given polynomial, write a program that prints polynomial in Cix^Pi + Ci-1x^Pi-1 + .... + C1x + C0 format.
where Pi's are powers in decreasing order, Ci is coefficient, and C0 is constant. There will be space before and after the plus or minus sign.If the coefficient is zero, then don't print the term.
If the term with the highest degree is negative, the term should represent -Cix^Pi.
For the term where power is 1, represent it as C1x instead of C1x^1.
For term Cix^Pi, if the coefficient of the term Ci is 1, print x^Pi instead of 1x^Pi.
Explanation
If N = 4 If N = 5
If N=4
polynomial represents "6x^3+10x^2+5"
If N=5
polynomial represents "7x^4+6x^3+x^2+3x+2"Given polynomial,write a program that prints polynomial in Cix^Pi+Ci-1x^Pi-1+ ..+C1x+ C0 format. Input:The first line contains a single integer N. Next N lines contain two integers Pi, Ci separated with space, where Pi denotes power and Ci denotes coefficient of Pi.Output Print the polynomial in the format Cix^Pi + Ci-1x^Pi-1 + .... + C1x + C0, where Pi's are powers in decreasing order, Ci is coefficient, and C0 is constant. There will be space before and after the plus or minus sign. If the coefficient is zero, then don't print the term.If the term with the highest degree is negative, the term should represent -Cix^Pi. For the term where power is 1, represent it as C1x instead of C1x^1. If the polynomial degree is zero and the constant term is also zero, then print 0 to represent the polynomial.For term Cix^Pi, if the coefficient of the term Ci is 1, print x^Pi instead of 1x^Pi.Explanation
Input
4
0 5
1 0
2 10
3 6
Output
6x^3 + 10x^2 + 5
Input
5
0 2
1 3
2 1
4 7
3 6
Output
7x^4 + 6x^3 + x^2 + 3x +5
Create an Alien class. Include at least three protected data members of your
choice, such as the number of eyes the Alien has. Include a constructor that
requires a value for each data field and a toString() method that returns a
String containing a complete description of the Alien. Save the file as
Alien.java.
1. Write a recursive function, power, that takes as parameters two integers x and y such that x is nozero and return xy. You can use the following recursive function definition to calculate xy. If y>= 0,
1 if y=0
power(x, y) = x if y=1
x*power(x,y-1) if y>1
if y<0,
power(x, y) = 1/power(x, -y)
Write a program to carry out the following:
To read a text file “TRIAL.TXT” consisting of a maximum of 50 lines of text,
each line with a maximum of 80 characters.
Count and display the number of words contained in the file.
Display the total number of four letter words in the text file.
Assume that the end of a word may be a space, comma or a full-stop followed by one
or more spaces or a newline character.
Write a program to carry out the following:
(a) Read a text file ‘INPUT.TXT’
(b) Print each word in reverse order
Example,
Input: PAKISTAN IS MY COUNTRY
Output: NATSIKAP SI YM YRTNUOC
Assume that each word length is maximum of 10 characters and each word is
separated by newline/blank characters.
Write a program which writes student name, registration number, semester, section
and CGPA of a student in a file entitled “student.dat” using structure. Repeat file
writing for as much number of students as user want.