Homework Answers

Math 51397 50414
Physics 44335 44333
Chemistry 40988 40988
Economics 30646 30644
Programming & Computer Science 26878 26876
English 10084 10084
Biology 8111 8109
Management 6239 6239
Engineering 6056 6056
History 3490 3489
Psychology 2129 2129
Sociology 1858 1858
Geography 1574 1574
Marketing 1443 1443
Philosophy 1001 1001
Political Science 892 891
Law 876 876
French 438 438
Other 199 199

Questions: 238 634

Answers by our Experts: 237 641

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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:

  • find_lowest(list): finds and returns the lowest number in the list. Do not use any built-in function.
  • find_highest(list): finds and returns the highest number in the list. Do not use any built-in function.
  • calculate_total(list): calculates and returns the total of the numbers in the list. Do not use any built-in function.

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”


a. Find the volume V(S) of the solid S by revolving the region R bounded by x 2 + y − 4 = 0 and x − y + 2 = 0 about y = 0. (6 pts.) b. Set-up the integral that represents V(S) when the region R in (a.) is revolved about x = −2. (4 pts.)


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]

6.5.

Write a simple decryption program using string functions which will apply the Substitution Method. Here is the given Substitution Table.


Substitution Table:

* A

$ E

/ I

+ O

-­‐ U


Encrypted message: m$$t m$ *t 9:00 *.m. /n th$ p*rk

Decrypted message: meet me at 9:00 a.m. in the park


6.4.

Write a simple encryption program using string functions which apply the substitution method. Here is the given Substitution Table.


Substitution Table: A *

E $

I /

O +

U -­‐


Sample input/output dialogue:

Enter message: meet me at 9:00 a.m. in the park


Encrypted message: m$$t m$ *t 9:00 *.m. /n th$ p*rk


6.3.

Write a program using string function that determines if the input word is a palindrome.

A palindrome is a word that produces the same word when it is reversed.


Sample input/output dialogue:

Enter a word: AMA

Reversed: AMA “It is a palindrome”


Enter a word: STI

Reversed: ITS “It is not a palindrome


LATEST TUTORIALS
APPROVED BY CLIENTS