/* Dr. Zupke feedback
Swtich is not the most efficient way to do this but you can make it more
efficient by taking advantage of the "fall through" behavior:
System.out.println("The corresponding number is 2");
Electric Fields and Equipotential Lines
Map out the equipotential lines and electric field due to a given 2-D charge
configuration, using voltage measurement techniques.
An electric field is said to exist at a point in
Lab 1 - Static Electricity
To investigate the nature of static electricity.
Static electricity is familiar in everyday life, whether manifested as a spark after you shuffle
your stocking feet across a carpet and touch a
Chapter 6, Part 1
The Basics of
Motivation for Using methods
Find the sum of integers from 1 to 10, from
20 to 30, and from 35 to 45, respectively.
/ IN MAIN
int sum = 0;
for (int i = 1; i <= 10; i+)
sum += i;
Lab 2 - Conceptual Introduction to Circuits
In this lab well be analyzing the dierences between dierent arrangements of simple circuits. The two types of connections for a simple circuit are series connections and parallel
connections. One way
Chapter 6, Part 2
A return statement is required for a value-returning method.
The method shown below in (a) is logically correct, but it has
a compilation error because the Java compiler thinks it
Lab 8 - Coulombs Law for Magnetism
Objective: Measure the magnetic force between two north (or south) poles and find its dependence on distance.
Magnetic forces behave very similarly to electric forces, with the exception that there
Write a program that lets you take a word and convert it to 'Pig Latin'. The rules of conversion
are as follows:
Take the letters up to the first index of a vowel and move it to the end of the word. Then add an
"ay" on th
Chapter 2, Part 2
Numerical Data Types
There are a large variety of numerical types in Java.
They fall under two types:
Floating-point: Have a decimal part.
float: has 7 or 8 decimal places after the decima
/* Dr. Zupke feedback
It does not pass all tests! I reserve the right to give a zero for
misreporting the tests, but this one is very close to correct so I'm
being generous. Remember that an int divided by an int will be an int.
n = n % 10
n = n/10
n = getFirst(n) * 10 + getLast(n)
n = eval(input(" Enter a number:")
print("The new number is:", getEnds(n)
def inBoth(list1, list2):
list3 = 
for i in list1 and list2:
if i in list1 and list2:
values1 = (input("Enter a list of numbers:").split()
values2 = (input("Enter a list of numbers:").split()
newList = inBoth(val
Write a program that lets the user perform arithmetic operations. First ask the user for a first
number. Then use a while loop to do the following:
1. The user enters another second double number.
2. The user selects