Please make a Python program where the computer chooses a number and the player guesses the number.
You need an input, a random number, if statement, and a while loop.
Please reference these when doing the code:
((random reference))
•>>> import random
•>>> random.randint(1, 100)
•67
((While & if referefence))
•>>> cnum = 3
•>>>while true
•>>> if cnum == 3:
•>>> print(‘correct’)
•>>> break
•>>> elif cnum == 2:
•>>> print(‘incorrect’)
Please prepare a Word document that has the Python code and the screen shot of your output.
Here is a sample output screen.
|
What is your guess? 97 Too high What is your guess? 6 Too low What is your guess? 82 Too high What is your guess? 23 Too low What is your guess? 64 Too high What is your guess? 46 Too high What is your guess? 35 Too low What is your guess? 40 Too high What is your guess? 37 Too low What is your guess? 39 Too high What is your guess? 38 Correct ! >>> |
In: Computer Science
Assignment task
Use your favorite search engine to find details about (1) virus/piece of malware. Upload an MS Word or .PDF document that summarizes each of the following
Item 1: Introduction - What is meant by malware/viruses? What is their history? Are malware and/or viruses recent developments in computer technology or have they been around for a while? What piece of malware/virus are choosing to write about and why?
Item 2: Virus/Malware details:
What specifically does the virus/malware do? How does it infect targets? What does it do once it infects a host? Does it change registry settings, does it leave behind malicious code, etc...? Is it destructive? If so how?
In: Computer Science
If you hold a spoon in front of your face so that you see your image in the bowl of the spoon, your image is upright when you hold the spoon close to your face, but inverted when you hold the spoon far away.
Construct the correct explanation why this change occurs.
Place the terms on the left to the appropriate blanks on the right to complete the sentences.
The spoon acts like a ____________ mirror. Light from your face is focused by the mirror.
If you are very close to the spoon (within the focal length) then the light rays ___________.
If you are farther from the spoon (beyond the focal length) then the light rays ___________.
Word Bank:
Converging
Diverging
From an inverted image
Are converged somewhat
------------------------------------------------------------------------------------------------
You are using a converging lens to look at a splinter in your finger. The lens has a 9.0 cm focal length, and you place the splinter 6.7 cm from the lens.
How far from the lens is the image?
Express your answer to two significant figures and include the appropriate units. Enter positive value if the image is on the other side from the lens and negative value if the image is on the same side.
In: Physics
You are to name your package assign1 and your file Palindrome.java.
Palindrome Class
Palindrome
- testString : String
| + Palindrome (String)
+ isPalindrome (): boolean |
The method isPalindrome is to determine if a string is a palindrome. A palindrome, for this assignment, is defined as a word or phrase consisting of alphanumeric characters that reads the same frontwards and backwards while ignoring cases, punctuation and white space. If there are no alphanumeric characters, the string is considered a palindrome. The method should return true if it is a palindrome and false otherwise.
Notice – there is no main, no input and no output for this assignment. You are limited to the following Java library classes.
- String
- Character
Here are the restrictions on this method. Up to 20% penalty if not followed.
1. You may NOT return from the inside of a loop.
2. You may NOT break from the inside of a loop.
3. You may use ONLY ONE loop (either while or do-while).
4. You may NOT copy the String to another String.
5. You may NOT process the String more than one time (only make one
pass
through it).
6. You must STOP processing as early as possible (when you find
that it is or is not
a palindrome). In other words, using a for loop is not a good solution.
In: Computer Science
Given the code snippet below, complete this program by:
SUBMIT THE PYTHON FILE (.PY) NOT SCREENSHOT, WORD DOCUMENT ETC. IF YOUR SUBMISSION IS NOT A .PY FILE, AUTOMATIC ZERO.
#Code snippet below. Copy this into your favorite IDE and complete the tasks
import numpy as np
import pandas as pd
temps = np.random.randint(60, 101, 6)
temperatures = pd.Series(temps)
2.
Write a python program that asks the user to enter
a number of quarters, dimes, nickels and pennies and then outputs the monetary value of the coins in the format of
dollars and remaining cents. YOUR PROGRAM MUST HAVE AT LEAST ONE FUNCTION.
3.
USE THE python TextBlob library to create a language translation application. Your application should accept at least two input from the user. The first input should be the text to be translated (your program should accept any language). The second should be the language to translate to. At minimum, your program should be able to translate to 10 different languages.
Your program must have at least one python function.
In: Computer Science
Subject Name:Multinational Management
1)Suppose that Company A has few types of customers,
and faces a stable environment. Generally, what is the most
suitable organizational structure for Company A?
A.Basic Geographic Structure B.Basic Functional Structure
C.Basic Product Structure
D.Each of the 3 choices above is OK
2)Suppose that company B has five products, managers
find that in recent years, the market performance of two products:
printer and surveillance camera is very good, which brings more and
more profits to company B, and has established a strong competitive
advantage in the industry. Therefore, in this situation, which
organizational structure is the most suitable for company B?
A.Basic Functional Structure
B.Basic Geographic Structure
C.Basic Product Structure
D.Each of the 3 choices above is OK
3)Companies choose a functional structure primarily for .................... (a single word).
4)Thanks to the great progress in management science
and organizational design in recent years, scholars have developed
an organizational structure suitable for all multinational
companies across the world.
A.True
B.False
5)Few companies adopt purely organizational
structures.
A.True
B.False
In: Operations Management
Please find an emerging mobile app and analyze the app according to the following requirements. The app you group chooses to analyze must be published in the app market after January 1, 2020. If an app was published before January 1, 2020, but was updated after this date, you should not choose the app for analysis. For example, YouTube app was published in early 2010, and had a newer version after January 1, 2020. Then, you should not choose YouTube for analysis, because a version update is not considered emerging. The main purpose of this project is to discover an emerging app with potentials instead of analyzing an established app like YouTube, Facebook, etc.
In your analysis, please answer the following questions:
(a) The name, functions, and latest number of downloads of the app;
(b) The reason you choose this app. In other word, why you thinks this app is important;
(c) The strengths of this app, and why users like this app;
(d) The weaknesses of this app, and how you plan to improve it if you were the app manager;
(e) Excluding figures, data tables, and references, a minimum of 2 page analyses are required.
In: Operations Management
Task Scenario A new financial product development cross-functional team was launched by a global investment group. Team members were selected from around the world. As team members began to feel more confident and their work together accelerated, the newly appointed chief financial officer (CFO), who had no previous involvement with the process, added new expectations, challenged the established set of priorities, and made negative comments publicly about the team’s interactions with senior functional managers. The team’s work suddenly slowed down, morale dropped and expectations of success disappeared. Team members’ inability to meet face-to-face at this critical time to work through the changes added to their frustration.
Tips:
a Identify the problems caused by the CFO’s approach to the financial product development team.
b Brainstorm and develop strategies you could use to reinvigorate the team.
c Prepare a list of guidelines about how the CFO could interact with any cross-functional team in the future.
Your Task Prepare a written report that discusses teamwork and work group communication, together with your findings and recommendations to be presented to the Board of Directors. The total word length should be 1500 words
In: Finance
Imagine you are working for Drexel Morgan Bank, and you are assigned with the task of evaluating Earl Grey, Inc. Consider the following financial information of this company.
Consider the following information about Earl Grey, Inc.
Use the information above to find the following.
Directions:
In: Accounting
The policies of the federal government influence the outcomes of the various activities in that economy. When government policies change or unplanned events occur, the resulting economic events or activity will usually change. Listed below are several policies or events that affect the performance of the economy:
For each of the items above, describe what would be the likely outcomes in the economy. Use the appropriate tools of analysis, such as aggregate demand and aggregate supply where appropriate, to justify and explain your answer.
Submission Details:
In: Economics