| Question | Problem: The people of ancient land of Pacific Bata had a simple mathematical system that knew only natural numbers and addition. The genius Bazan scholar, Gringo el Possum, built a computer from wood and various animal parts. Archeologists have recovered ancient scrolls with enough scraps of programs to reconstruct the programming language he named, Adder. The Adder language has only a few simple statements: quit Exit the REPL or terminate a program. input var Prompt for and allow the user to enter a value for the variable named var. print vat Print the value vat.. var gets vat variable var is assigned the value vat. var adds vat variable var has the value vat added to it. |
|---|---|
| Subject | python programming |
Order the answer to: Problem: The people of ancient land of Pacific Bata had a simple mathematical system that knew…
Order the answer to: There is a popular puzzle where you ‘,to guess the combination to a lock given some clues….
| Question | Python Combination Lock Puzzle Plate: that you may only use Python to complete this assignment. No other tools or non-standard (i.e. third-party external) Python libraries may be used to complete your work. Furthermore,. always, you are to complete this assignment in its entirety on your awn, you do not have a partner in this course. There is a popular puzzle where you ‘,to guess the combination to a lock given some clues. For our purposes, the lock has exactly three wheels, each with values 0 through 3. CAN YOU OPEN THE Loci, 1JstN6 THESE cLues? 180 Vol must provide the clues on the command line and they must be in the form XVZ—R—W where: XYZ = a possible combination of 3 digits, each digit a member of the set E ZI 0 5×5 9) A= number of wheels that show the correct digit in the correct place within the sequence, each digit a member of the set (1,2,3) W = number of wheels that show the correct digit but in the wrong place within the sequence, each digit a member of the set C1,2,3) The expectation is that you will use a brute force form of technique to solve this puzzle. Iterate through all 1,000 possible combinations and observe onion one(s) correctly meet all specified clues. Do nottry to solve this puzzle the way a human would, using logic. |
|---|---|
| Subject | python programming |
Order the answer to: Write a Python Script to implement teacher’s discount policy to purchase Sheet Music….
| Question | Write a Python Script to implement teacher’s discount policy to purchase Sheet Music. The script is to prompt the user to indicate whether the user is a teacher and to enter the purchase total to buy Music. The script is to create a nicely formatted receipt. The music teachers receive a 12% discount on their sheet music purchase. The discount calculation occurs before addition of the 5% sales tax. Below are two sample outputs: one for a teacher and one for a non-teacher. |
|---|---|
| Subject | python programming |
Order the answer to: Your task is to write a research plan (not a research report) that would demonstrate your level…
| Question | Your task is to write a research plan (not a research report) that would demonstrate your level of skills relevant to gaining agreement from others, by convincing an organisation’s Board to approve the cost of employees being given time away from their normal duties to conduct the research that you are proposing |
|---|---|
| Subject | python programming |
Order the answer to: A lot of information is freely available on the web, but not a lot of it is in forms that…
| Question | A lot of information is freely available on the web, but not a lot of it is in forms that computers find useful to read. A common use of regular expressions is to understand or parse data from a human-centric view like a webpage into a computer-centric view like CSV (comma-separated values). One source of data is the Richmond Times-Dispatch’s summary of Virginia state salaries’s, obtained using the state’s Freedom of Information statute. To avoid overloading the newpaper’s website with hundreds students testing their code, we have a mirror of the 2018–2019 UVA salary data you can have your code access on our servers for this assignment. http://cs1110.cs.virginia.edu/files/uva2018/ When you visit a page, you see a rendering of the content, but under the hood most web pages are written in a language called HTML. Like Python, this is a text-based representation that describes what the computer is supposed to do. Unlike Python, it is a markup language, not a programming language, meaning it is interested primarily in describing data rather than specifying processes. The nuances of HTML are not important for our task; all you need to do is write regular expressions to find specific information within it. You can view the HTML of any web page using the “view source” option of your web browser (typically either via the keyboard shortcut Ctrl+U or Cmd+Opt+U). The source is what urllib.request will retrieve, what your regular expressions will need to look at, and what we discuss below. |
|---|---|
| Subject | python programming |
Order the answer to: One of the most straightforward ways to quantify the biodiversity of an environment is simply to…
| Question | Question 1 One of the most straightforward ways to quantify the biodiversity of an environment is simply to count the number of different species that can be found there, irrespective of how many times a particular species is observed. This measure is known as species richness. Write a function get_species_richness() that calculates the species richness of a habitat, based on a series of observations of various bird species. The function takes one argument: observed_list, a list of independent observations of bird species. The function should return a tuple consisting of: • the species richness, calculated as the number of different species observed; and • an alphabetically sorted list of the species that were observed. |
|---|---|
| Subject | python programming |
Order the answer to: Problem Description – Forecasting Electricity Prices The problem is to forecast electricity…
| Question | Problem Description – Forecasting Electricity Prices The problem is to forecast electricity price based on historical data. Let the temperature and total demand of electricity at time instant t be T(t) and D(t) respectively. The goal is to predict the recommended retail price (RRP) price by using some historical data as system inputs. The historical data set consists of the following variables: T(t-2), T(t-1), T(t), D(t-2), D(t-1), D(t). The output should be a prediction of the Recommended Retail Price (RRP) of electricity at the next time instant t+1, denoted by P(t+1). You have been provided with real-world electricity pricing data from Queensland, Australia. There are two datasets: a training set, to be used for model development; and a test set, to be used to evaluate the performance of your models. Each dataset has the same structure. Rows correspond to successive time instants, and contain seven values: the predictor variables T(t-2), T(t-1), T(t), D(t-2), D(t-1), D(t), and the target variable P(t+1). The objective is to predict the value of P(t+1) on the basis of one or more of the six predictor variables. There are five parts to the assignment, described below, with the approximate assessment weighting. Parts 1, 2 and 3 are based on content that has been covered up to then end of Week 5. Content for Part 4 will be covered in Week 6 and 7. |
|---|---|
| Subject | python programming |
Order the answer to: The stocking system is updated daily at 11:59 pm. This number has been consistent every day…
| Question | 3. The stocking system is updated daily at 11:59 pm. This number has been consistent every day until the beginning of a new financial year. At the beginning of the new financial year each year (15t July), the company will impose a 10% increase in the supply of cantilever umbrellas to its distributors (rounded up) and 5% increase of the RRP due to inflation. 1. Based on statistics, global financial crisis happens every 9 years, and lasts for another 2 years, the number of cantilever umbrella distributed to distributors will drop by 20% in the first year when global financial crisis hit the market, the number will continue to drop by 10% and 5% for the next 2 years when the economy is recovering. In order to make up the losses, during the year that a global financial crisis starts, the company will add an additional 10% increase in RRP to the product, the increase of the product RRP will become 5% in the next year, and 3% the year after to make up the loss. |
|---|---|
| Subject | python programming |
Order the answer to: With the price level held constant, increases in consumption, in
| Question | With the price level held constant, increases in consumption, investment, government, and net export expenditures shift the aggregate expenditures schedule upward and the aggregate demand curve to the right. Decreases in these spending components produce the opposite effects. |
|---|---|
| Subject | business-economics |
Order the answer to: A change in the price level alters the location of
| Question | A change in the price level alters the location of the aggregate expenditures schedule through the real-balances, interest- rate, and foreign purchases effects. The aggregate demand curve is derived from the aggregate expenditures model by allowing the price level to change and observing the effect on the aggregate expenditures schedule and thus on equilibrium GDP. |
|---|---|
| Subject | business-economics |


