Create a c++ program that let the user input his/here grade on the following subjects: Programming, web application, oral communication, multimedia and physics and calculate the average.
Note: the program must also display/output the subjects will grades from the user and the average.
Write a program to perform basic to class conversion [Such as there is a class named: “conversion” with data members: feet and inches (both int)] Convert basic type(int) height in terms of total number of inches into equivalent feet and inches (class type) and display output on screen
6.10.
Write a program that takes data, a word at a time and reverses the words of the line.
Sample input/output dialogue: Input string value: birds and bees
Reversed: bees and birds
Instruction: Answer the following. Show all your solutions. For items 5 and 6: Given R b a f(x)dx = 4; R c a f(x)dx = 6; R b a g(x)dx = −2; and R c a g(x)dx = 1.
6. Suppose a < c < b, solve: i. ∫ b c [g(x) + 2f(x)]dx (3 pts.) ii. − ∫ a c g(x)dx (2 pts.)
Write a Python program that asks the user to enter a series of 20 numbers. The program should store the numbers in a list. It should have the following functions:
The program should call the functions mentioned above and display the lowest, highest and total values in the list. It should also calculate and display the average of the numbers in the list
6.9.(Write a program using string functions)
Write a program that takes nouns and forms their plurals on the basis of these rules:
a. If a noun ends in “y”, remove the”y” and add “ies”
b. If a noun ends in "s”, “ch” or “sh”, add "es”
c. In all other cases, just add “s”
6.8.
Write a program that will accept the currency value and the name of the country and will
display the equivalent in U.S. dollar, based on the given list:
COUNTRY CURRENCY U.S EQUIVALENT
British Pound 0.6 U.S. dollar
Canadian Dollar 1.3 U.S. dollar
Japanese Yen 140 U.S. dollar
German Mark 1.7 U.S. dollar
Philippines Peso 53 U.S. dollar
Write a program to overload operators in the same program by writing suitable operator member
functions for following expression:
O7= ((O1 % O2)>(O3 || O4) - (O5>O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class
“overloading”, and this class is having one integer data member]
6.6.
Write a program using string functions that will accept the name of the country as input value and will display the corresponding capital. Here is the list of the countries and their
capitals.
COUNTRY CAPITAL
Canada Ottawa
United States Washington D.C.
U.S.S.R. Moscow
Italy Rome
Philippines Manila
Write a program to take input for n number of doctor records and write records of all cardiologists in
a file named: “record1”. Also write records of all those doctors in another file named: “record2” who are
taking salary more than INR 80,000. After writing records in both files, merge their contents in another
file: “finalrecord” and read all records of “finalrecord” file and display on screen. [Attributes of doctor:
doc_id, doc_name, doc_specialization, doc_salary]