School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,035 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,258 people online right now. Registration is fast and FREE... Join Now!




Write a program that calculates the numeric value of a single name pro

 

Write a program that calculates the numeric value of a single name pro

babal100

24 Sep, 2009 - 09:37 PM
Post #1

New D.I.C Head
*

Joined: 24 Sep, 2009
Posts: 1

QUOTE(jugaad @ 20 Aug, 2009 - 02:30 AM) *

I am just looking a help from python experts:

program to calculate the volume and surface area of a sphere from its radius, given as input. Use the following formulas for reference. Limit your numbers to 4 decimal places using string formatting

1. Numerologists claim to be able to determine a person’s character traits based on the “numeric value” of a name. The value of a name is determined by summing up the values of the letters of a name where “a” is 1, “b” is 2 and so on. Write a program that calculates the numeric value of a single name provided as input.

2. Using the file giftFile.txt supplied, write a program that takes each line of the file and writes a thank you note to the giver of the gift. For example, the first letter would read:

Dear Fred,

Thank you for the wonderful sheets.
What a thoughtful wedding gift.

Love
<put your name here>

The thank you letter should be one string and the variables (ie the name, gift and occasion) should be put in using string formatting techniques

3. Ballarat Beans is a mail-order coffee shop which sells coffee for $23 a kilogram plus the cost of shipping. Each order is shipped for $1.20 per kilogram (rounded up to the nearest kilogram). Write a program to calculate the cost of an order. Use string formatting to limit the figures in your output to 2 decimal places.



User is offlineProfile CardPM
+Quote Post


no2pencil

RE: Write A Program That Calculates The Numeric Value Of A Single Name Pro

24 Sep, 2009 - 09:39 PM
Post #2

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,491



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is online!Profile CardPM
+Quote Post

Closed TopicStart new topic

Time is now: 11/21/09 08:44AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month