PLEASE DO IN PYTHON
Program 2: Design (pseudocode) and implement (source code) a program (name it FeetMeters) to display a conversion tables for feet and meter as show below. Document your code and properly.
|
Feet |
Meter |
|
1.0 |
0.305 |
|
2.0 |
0.610 |
|
3.0 |
0.915 |
|
. . . |
. . . |
|
19.0 |
5.7.95 |
|
20.0 |
6.100 |
|
Meter |
Feet |
|
1.0 |
3.279 |
|
2.0 |
6.558 |
|
3.0 |
9.837 |
|
. . . |
. . . |
|
19.0 |
62.301 |
|
20.0 |
65.574 |
The program defines the following methods:
Method feetToMeter() converts from feet to meter. (formula: meter = 0.305 * feet)
Method meterToFeet() converts from meter to feet. (formula: feet = 3.279 * meter)
The main method calls these methods to produce the display the output in tabular format. Document your code and format the outputs as shown above.
Program 3: Design (pseudocode) and implement (source code) a program (name it PrintTableSeries) to display the following table for the following series:
sum(i) = 1/2 + 2/3 + 3/4 + 4/5 + … i/(i+1)
|
i |
Sum(i) |
|
1 |
0.5000 |
|
2 |
1.1667 |
|
3 |
1.1960 |
|
. . . |
The program defines the following methods:
Method displaySums()print the table as shown above.
The main method prompts the user to enter an integer value, say n, and then calls method displaySums()to display the table for i = 1 to n. Document your code and format the outputs as shown above.
def feetToMeter():
print("Feet Meter")
for i in range(1,21):
print(i ," " ,0.305 * i)
def meterToFeet():
print("Meter Feet")
for i in range(1,21):
print(i ," " ,3.279 * i)
feetToMeter()
print("\n")
meterToFeet()
--------------------------------------------------------------------------------------------------------
See Output

2)
def displaySums(n):
print("i Sum(i)")
res = 0
for i in range(1,n+1):
res = res + i/(i+1)
print(i ," " ,round(res,4))
n = int(input("Enter n: "))
displaySums(n)
--------------------------------------------------------------------------------------------------------------

Thanks, PLEASE UPVOTE if there is any concern.
PLEASE DO IN PYTHON Program 2: Design (pseudocode) and implement (source code) a program (name it...
Do this in Python please Program 2: Design (pseudocode) and implement (source code) a program (name it FeetMeters) to display a conversion tables for feet and meter as show below. Document your code and properly. Feet Meter 1.0 0.305 2.0 0.610 3.0 0.915 . . . . . . 19.0 5.7.95 20.0 6.100 Meter Feet 1.0 3.279 2.0 6.558 3.0 9.837 . . . . . . 19.0 62.301 20.0 65.574 The program defines the following methods: Method feetToMeter() converts...
PLEASE DO IN C# AND MAKE SURE I CAN COPY CODE IN VISUAL STUDIO Program 2: Design (pseudocode) and implement (source code) a program (name it FeetMeters) to display a conversion tables for feet and meter as show below. Document your code and properly. Feet Meter 1.0 0.305 2.0 0.610 3.0 0.915 . . . . . . 19.0 5.7.95 20.0 6.100 Meter Feet 1.0 3.279 2.0 6.558 3.0 9.837 . . . . . . 19.0 62.301 20.0 65.574...
PLEASE DO THE PSEUDOCODE FOR THE PROGRAM BELOW Program 3: Design (pseudocode) and implement (source code) a program (name it DistinctValues) to display only district values in an array. The program main method defines a single-dimensional array of size 10 elements and prompts the user to enter 10 integers to initialize the array. The main method then calls method getValues() that takes an integer array and returns another single-dimensional array containing only distinct values in the original (passed) array. Document...
PSEUDOCODE and PYTHON source code! Program 4: Design (pseudocode) and implement (source code) a program (name it MinMaxAvg) to determine the highest grade, lowest grade, and the average of all grades in a 4-by-4 two-dimensional arrays of integer grades (representing 4 students’ grades on 4 tests). The program main method populates the array (name it Grades) with random grades between 0 and 100 and then displays the grades as shown below. The main method then calls method minMaxAvg()that takes a...
IN PYTHON ONLY !! Design (pseudocode) and implement (source code) a program (name it Occurrences) to determine whether two two-dimensional arrays are equivalent or not. Two arrays are equivalent if they contain the same values in any order. The program main method defines two two-dimensional array of size 3-by-3 of type integer, and prompts the user to enter integer values to initialize the arrays. - The main method calls method isEquivalent()that takes two two-dimensional arrays of integer and returns true...
Design in Python (pseudocode) and implement (source code) a program (name it MyRectangle) that defines the following 3 methods: Method isValid() returns true if the sum of the width and height is greater than 30 Method Area() returns the area of the rectangle if it is a valid rectangle Method Perimeter() returns the perimeter of the rectangle if it is a valid rectangle The main method of MyRectangle prompts the user to enter the width and height of a rectangle...
C# ONLY INCLUDE BOTH PSUDEO CODE AND SOURCE CODE!!!! Design (pseudocode) and implement (source code) a program (name it IndexOfLargest) to find the index of the first largest value in the array. Note that the largest value may appear more than once in the array. The program main method defines a single-dimensional array of size 10 elements and prompts the user to enter 10 integers to initialize the array. The main method then calls method findIndex() that takes a single-dimensional...
Program 5: Design (pseudocode) and implement (source code) a program (name it Weekl yHours) to compute the total weekly hours for 3 employees. The program main method defines a two-dimensional array of size 3x7 to store employers' daily hours for the week. Each row represents one employee and each column represent one day of the week such that column 0 designates Monday, column 1 designates Tuesday, etc. The program main method populates the array with random numbers between 0 and...
IN PYTHON the original problem was Design (pseudocode) and implement (source code) a program (name it WeeklyHours) to compute the total weekly hours for 3 employees. The program main method defines a two-dimensional array of size 3x7 to store employers’ daily hours for the week. Each row represents one employee and each column represent one day of the week such that column 0 designates Monday, column 1 designates Tuesday, etc. The program main method populates the array with random numbers...
Do pseudocode in java Design (pseudocode) and implement (source code) a program (name it LargestOccurenceCount) that read from the user positive non-zero integer values, finds the largest value, and counts it occurrences. Assume that the input ends with number 0 (as sentinel value to stop the loop). The program should ignore any negative input and should continue to read user inputs until 0 is entered. The program should display the largest value and number of times it appeared as shown...