### Java Bottled Water Calculator

According to a recent TV commercial, Americans consumed so much bottled water last year that the bottles – if laid end-to-end – would circle the Earth 190 times at the Equator!  One can only imagine how disruptive this would be for folks actually living at the Equator!  Anyway, approximately how many bottles is that, and what is the average amount of water consumed by each American?  Let’s write a program to find out!  Better yet, let’s write a program...

View Assignment

### Python Exercises

Write a while loop that prints: All squares less than n. For Example,if n is 100, print 0 1 4 9 16 25 36 64 81. All Positive integers that are divisible by 10 and are less than n. For example, if n is 100 print 10 20 30 40 50 60 70 80 90 All powers of two less than n.For example if n is less than 100, print 1 2 4 8 16 32 64  Write 3 separate programs.

View Assignment

### Python 3 Data Processing

Instructions:  The following programming problem can be solved by a program that uses three basic tasks-Input Data, Process Data, and Output Results. To process the data, it uses loops, arrays, decisions, accumulating, counting, searching and sorting techniques. Use Python to write a suitable program to solve this problem. Problem Statement Assume the Scores array is parallel to the Players array (both arrays are below). Scores array Scores = 198 Scores = 486...

View Assignment

### Computegrade In PYTHON

Rewrite the grade program from the previous chapter using a function called computegrade that takes a score as its parameter and returns a grade as a string. Score Grade > 0.9 A > 0.8 B > 0.7 C > 0.6 D <= 0.6 F   HINT: 1.     Write a custom function with the definition def computegrade(<your score variable>): 2.     The function should...

View Assignment

### JavaScript Arrays

Using the following array, compare an arbitrary latitude and longitude inputs with the latitude and longitude of the trees in the array.  If the difference between the latitude values and longitude values both produce some set small value or less (ie if lat < 0.000...005 && long< 0.000...005) , store the scientific name of the tree in an array to be returned by the function.  If more than one tree of a differing scientific name falls into the range of closeness, add tha...

View Assignment