Determine the total number of rocks collected

Assignment Help Computer Engineering
Reference no: EM132112764

Python Code:

You are on vacation for the next week in Michigan's pristine Upper Peninsula. The Agate, which is typically found along the shores of Lake Superior, is a prized find. Therefore, you have set out to collect as many of these rocks as you can.

Create a program that will store the number of Agates you have collected over your 7 day stay in the UP. Below is a list of rocks collected:

Day 1 = 10

Day 2 = 8

Day 3 = 5

Day 4 = 16

Day 5 = 3

Day 6 = 7

Day 7 = 11

Your program needs to pre load this list, print out the list, determine the total number of rocks collected, the average number of rocks collected and the highest number of rocks collected.

Your output should look something like the following:

My List of Agates ***************** Day 1 : 10 Day 2 : 8 Day 3 : 5 Day 4 : 16 Day 5 : 3 Day 6 : 7 Day 7 : 11 Total Number of Rocks: 60 Average Number of Rocks: 8.57 The highest number of rocks collected: 16.

Reference no: EM132112764

Questions Cloud

Elaborate on the competencies required from pew management : PPMP20009 Leading Lean Projects - Identify the root cause(s) that lead to the problems using appropriate tools and techniques
Write the code to create a function that would ask the user : Write the code to create a function that would ask the user to enter a phrase, place these lines one at a time into a list.
Promt user to enter a weight of almonds in lbs : Your should promt user to enter a weight of almonds in lbs. The program should take float point values like 10.5.
Human-computer interaction and user interfaces : Demonstrate an understanding and appreciation of user interface design, evaluation and technologies - designing and evaluating interactive systems
Determine the total number of rocks collected : Determine the total number of rocks collected, the average number of rocks collected and the highest number of rocks collected.
Write the code using the while statement : Effective January 1st of each year, Sarah receives a 5% raise on her previous year's salary. Write the code using the while statement.
Create a list of strings do not ask from the user : Create a list of strings, don't ask from the user, and return a list with the strings in sorted order, except group all the strings that begin with 'x' first.
Write a statement that defines plist2 to be a new list : Write a statement that defines plist2 to be a new list that contains all the elements from index k of plist1 and beyond. Do not modify plist1.
Create a function that opens the file and returns a file : Create a function that opens the file and returns a file object. Program should prompt the user to enter a valid file name.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Explain how a neural net can be trained

Explain how a neural net can be trained. What are the three basic types of processing that occur during human/computer voice interaction?

  Write function build-tree for case when supply is a queue

Write function build_tree for the case when supply is a queue. Write function build_tree for the case when the input structure is a binary search tree.

  Create an application that gets customer account data

Create an application that gets customer account data, including an account number, customer name, and balance due.

  Provide the corresponding memory snapshot

Provide the corresponding memory snapshot, and the value of the stream state flags, after each of the subsequent sets of statements is executed:

  Define a class to represent a bank account

Define a class to represent a bank account. Data members should include the depositor's name, the account number (use a string), and the balance.

  What is the role or place of structured methodologies data

q1. what is the role or place of structured methodologies data and algorithms?q2. what differs between object-oriented

  Write the algorithm for push in a linked implementation

Write the algorithm for Push in a linked implementation. Write the algorithm for Pop in a linked implementation.

  Create a scenario for the state repository system

Create a scenario for the state repository system that shows all of the ways that Revert can affect the behavior of the system for one user.

  Design a program that compares two text input files

Design and implement a program that counts the number of double values in two text files. Produce a table listing the values you identify as double values.

  How they fit into the shopping activities of local residents

A telephone survey has been conducted to identify strengths and weaknesses of these areas and to find out how they fit into the shopping activities of local residents.

  Write a program that calculates and prints the sum

Explain what would happen if the radio buttons used in the QuoteOptions program were not organized into a ButtonGroup object.

  What might produce high frrs

Give them advice and reasons for your advice. Include in your explanation what do FRRs mean when fingerprint scanning is used to secure a PC against walk-up attacks?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd