Lab Activity 1: Implement the Weibull Distribution in Java
The Weibull functions are functions not only of wind speed x, but also of their parameters and . Given an input x, we need to calculate the p
Jave Programming
Exercise 1
Lab 1
a. Open the following program in JCreator. The file Exercise1.java has been sent to you by email and is also posted on WebCT under Week1. Once it is open in JCreator,
Wind Farm Investment Project
"Windy Profits Incorporated" is offering investors a chance to purchase shares of the output from several proposed wind turbine farms. Three turbines will be placed at one
Java Midterm for ECE 203
Part A: General Understanding
1. The Java Virtual Machine translates byte-code into: a. source code b. virtual code
First .
c. machine language code
Last .
d. ordinary Englis
Syllabus
ECE-203: Section 701 Fall 2007 Textbook: The textbook for the course is: Title: Big Java, 3rd edition Author: Cay S. Horstmann Publisher: Wiley ISBN: 978-0470-112090 In addition, you will als
# coding=utf-8
_author_ = 'robincarr'
import math
print 'SOLVING SSS TRIANGLES'
print 'Known: The sides a, b and c of the triangle are known.'
print 'Goal: Find the angles A, B and C of the triangle.'
_author_ = 'robincarr'
# Creates a table of numbers with N first in base 10, and then in base 2, and
16.
# Add base 8 (octal) to the table.
# Add another format flag for the octal numbers, and add a t
_author_ = 'robincarr'
"
Calculate Fibonacci numbers using the formula of Binet.
See this reference for more information on the formula.
http:/www.cut-the-knot.org/proofs/BinetFormula.shtml
"
import m
_author_ = 'robincarr'
print "Educational Goal: Learn how to process python strings using 'string
slicing'."
print 'Slice up each compound word, into its component words.'
# Good references:
# http:/v
_author_ = 'robincarr'
print 'WORD SEARCH'
# Python module os provides utilities for displaying and modifying your current
working directory.
import os
print 'The currect working directory is: ', os.g
import math
print
print
print
years
"Greetings Earthlings. We are visitors from the Andromeda galaxy."
"Your sun is about to expand and your planet is at risk of incineration."
"We will help you build
import math
print "Volume and Surface Area of a Pill Capsule with Hemispherical Ends"
print "\n1. Enter the length L (in cm) from one end to the other of the pill
capsule."
L = float( raw_input("Lengt
_author_ = 'robincarr'
print 'Simple Resistor Calculator'
print 'Finds the equivalent resistance of two resistors connected in series or
parallel.\n'
print 'Enter the value of resistor #1 in Ohms.'
#
# See also The Picnic Question in the first reading quiz.
# Wine, bread, cheese, grapes and a picnic basket are purchased for a weekend
picnic.
"
Item
Number Price Each
Tax in %
Wine bottle
2
$18.00
3
from Tkinter import *
_author_ = "robincarr"
" GUI version of Resistor Calculator finds the equivalent resistance for two
resistors
connected either in series or parallel. Features entry widgets and b
import random # Import the random module
random.seed(2016)
winning_number = random.randint(1,256)
# This next line is for debugging only. It must be commented out before you play
the game!
print 'The
_author_ = 'robincarr'
print 'COIN CHANGE MAKER'
print 'Computes your coin change (0-99 cents) in quarters, dimes, nickels and
pennies using the least number of coins.'
print 'Enter "change due" as an
_author_ = 'robincarr'
import time
# 1. New and improved memoized version.
known = cfw_0:0, 1:1
def fibonacci(n):
if n in known:
return known[n]
res = fibonacci(n-1) + fibonacci(n-2)
known[n] = res
re
ECE-203 Programming for Engineers
Contact
Dr. James Shackleford
[email protected]
Bossone 211
Office Hours: 3 4 pm (Tuesday)
Course Website: http:/learn.dcollege.net
Textbook
Think Python
by Allen Down
ECE-203 Programming for Engineers
Contact
Dr. James Shackleford
[email protected]
Bossone 211
Office Hours: 3 4 pm (Tuesday)
Course Website: http:/learn.dcollege.net
Textbook
Think Python
by Allen Down
ECE-203 Programming for Engineers
Contact
Dr. James Shackleford
[email protected]
Bossone 211
Office Hours: 3 4 pm (Tuesday)
Course Website: http:/learn.dcollege.net
Textbook
Think Python
by Allen Down
_author_ = 'robincarr'
# Just run this example from the online reading.
# See: http:/www.python-course.eu/tkinter_message_widget.php
from Tkinter import *
master = Tk()
whatever_you_do = "Whatever you
print "Find the number of Platonic Solids."
print "Each Platonic Solid corresponds to a unique Schlafli Symbol cfw_p,q,"
print "where p and q are >= 3 and satisfy: 1/p + 1/q > 1/2\n"
platonic_dict = c
from Tkinter import *
# Now Modified TO HANDLE THREE RESISTORS
_author_ = "robincarr"
_date_ = "$Apr 24, 2015 12:47:13 PM$"
" GUI version of Resistor Calculator finds the equivalent resistance for two
_author_ = 'robincarr'
"
Adapted from this source: http:/www.python-course.eu/tkinter_labels.php
"
# See this reference for how the pack() command works:
# http:/effbot.org/tkinterbook/pack.htm
# Live
_author_ = 'robincarr'
" Adapted from the "Saying Hello with Labels" example on this website:
http:/www.python-course.eu/tkinter_labels.php
Instead of printing "Hello" we'll display this poem. (First
_author_ = 'robincarr'
# explore Tkinter button as a toggle and as a control to cycle through a range
of values.
from Tkinter import *
root = Tk()
# root.title("Click the Button") # Change the title t
_author_ = 'robincarr'
from Tkinter import *
from tkFileDialog
import askopenfilename
root = Tk()
root.title("Search a file for a given word")
word_list = []
# List of all the lines in the file. Empty
"
Completed program to check if two phrases are anagrams, using dictionaries.
"
def histogram(s):
d = dict()
for c in s:
if c not in d:
d[c] = 1
else:
d[c] += 1
return d
def cleanup(s):
result = '
for
Homework #7
Due Date: Friday December 4th at the start of class (Week 11)
There was no class in week 10, due to Thanksgiving.
Instructions: Download and unstuff the file HW7_YourName.zip to get up and
Programming Homework #2: Calculations & Python Strings
Due Date: Friday October 16th 18th at 6PM. (Week 4)
Be able to demonstrate your working programs to a peer in c
Programming Homework #5: More TKinter
Due Date: This Friday November 13th at the start of class. (Week 8)
Instructions: Download and unstuff the zipped file named HW5_YourName.zip
Be able to demonstra
Programming Homework #4: Using TKinter to create GUI programs
Due Date: This Friday November 6th at the start of class. (Week 7)
Instructions: Download and unstuff the zipped file named HW4_YourName.z