+1-415-315-9853

info@mywordsolution.com

## Programming

 C/C++ Java DOT NET Python Assembly C Sharp Perl COBOL Visual Basic CAD/CAM Object Oriented Programming Asp.NET PHP JSP Shell Scripting Java Script Ajax CSS/HTML Joomla Wordpress Megento Photoshop DBMS PL-SQL Oracle MS-SQL MS-ACCESS My-SQL SYBASE FOXPRO Excel Programming Language Mobile Applications

Background:

Selection statements (if/else if/else combinations) allow us to prepare code that can execute different statements based on the current values seen in a particular run of the program. We will use this to prepare a program that performs calculations and selectively reports on different properties of the find outd values. We will be asking the user for details describing an ellipse, and then reporting back several properties of the ellipse to the user.

First, ask the user for the vertical axis radius. They will enter a floating point number.  Second, ask the user for the horizontal axis radius. They again will enter a floating point number. Afterwards, you will report whether or not it is a circle, if it is tall, long, or neither, the ellipse's focal distance f, and the eccentricity e of the ellipse.

Descriptions:

1) Checking for a circle. On a line by itself, your program must either print" is a circle: YES "or" is a circle: NO", appropriately.

2) Tallness or longness. If the ellipse is taller than it is long, your program must print "this is a tall ellipse "on its own line. If it is longer than it is tall, your program must instead print "this is along ellipse "on its own line. If it is exactly as tall as it is long, don't print anything.

3) Focal distance.  Your program must print "focal distance, f: "followed by the actual value of the focal distance. f= √(a2-b2 ), where a is the major radius and b is the minor radius.

4) Eccentricity. Your program will find out it, and print "eccentricity: "followed by the correct value.

Python, Programming

• Category:- Python
• Reference No.:- M9161

Have any Question?

## Related Questions in Python

### 1 alternating sumsprovide code for an integer-valued

1. Alternating sums Provide code for an integer-valued function altSumSquares(n) that calculates and returns as its value the alternating sum of the squares of the first n positive integers. You may not use a formula to ...

### Python assignmentwrite a python program to crack a password

Python Assignment Write a Python program to crack a password in the Linux /etc/shadow file. Write a program using Python to implement a password cracker for Linux. You should utilize a dictionary (small - English) to cra ...

### You have all experienced how when you are typing a text

You have all experienced how when you are typing a text message the application will provide potential words that complete what you are typing (and sometimes insist on completing them incorrectly). You will write a Pytho ...

### Problem descriptionthe previous assignment assumes its

Problem Description The previous assignment assumes its input includes spaces between every token in an expression, but many programmers tend not to use so many spaces, if the expression is unambiguous. For example, both ...

### 1 read python tutorial httpsdocspythonorg3tutorialindexhtml

1. Read Python Tutorial (https://docs.python.org/3/tutorial/index.html) sections 1 to 4.5. 2. Write a Python program that prints out a table of values of all even powers of 2 from 2**0 through 2**32. For each value, prin ...

Programming Assignments 1. Read Python Tutorial (https://docs.python.org/3/tutorial/index.html) sections 4.6 to 4.8. 2. Write a Python function that checks whether a passed string is palindrome or not. Note: A palindrome ...

### Write python code to solve the following problem1 write a

Write Python code to solve the following problem: 1. Write a Python program that prompts the user for his/her amount of money, then reports how many Nintendo Wiis the person can afford, and how much more money he/she wil ...

### Python homeworkyou will write a program that acts like a

Python HomeWork You will write a program that acts like a simple calculator for binary numbers. You should read in a string of input that has the format: number operator number. Each of the numbers should be presented in ...

### Introductionthe assignment is to design a service oriented

Introduction The assignment is to design a Service Oriented Architecture-based solution for a given domain. You must show a good understanding of Service Oriented principles. In addition you must show knowledge and under ...

### Taskyou are to plan and then code a console-based program

Task: You are to plan and then code a console-based program in Python 3, as described in the following information and sample output. This assignment will help you build skills using selection, repetition, file input/out ...

• 13,132 Experts

## Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

### A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

### What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

### Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

### Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

### Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate