Write a program to generate ten random integers between zero and a thousand, then display how many
Question:
Write a program to generate ten random integers between zero and a thousand, then display how many of them are odd and how many are even; also display the average of: all numbers, odd numbers, and even numbers.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 33% (3 reviews)
Here is a Python program that satisfies the provided prompt python import random Variables to store ...View the full answer
Answered By
ANDREW KIPRUTO
Academic Writing Expert
I have over 7 years of research and application experience. I am trained and licensed to provide expertise in IT information, computer sciences related topics and other units like chemistry, Business, law, biology, biochemistry, and genetics. I'm a network and IT admin with +8 years of experience in all kind of environments.
I can help you in the following areas:
Networking
- Ethernet, Wireless Airmax and 802.11, fiber networks on GPON/GEPON and WDM
- Protocols and IP Services: VLANs, LACP, ACLs, VPNs, OSPF, BGP, RADIUS, PPPoE, DNS, Proxies, SNMP
- Vendors: MikroTik, Ubiquiti, Cisco, Juniper, HP, Dell, DrayTek, SMC, Zyxel, Furukawa Electric, and many more
- Monitoring Systems: PRTG, Zabbix, Whatsup Gold, TheDude, RRDtoo
Always available for new projects! Contact me for any inquiries
4.30+
1+ Reviews
10+ Question Solved
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Question Posted:
Students also viewed these Computer science questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Bovens (2005) highlights a number of types of accountability that public and nonprofit sector employees may face, including: Organizational accountability : Accountability to superiors in...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Obtain the transfer functions X(s)/F(s) and Y(s)/F(s) for the following model: 3x = y y = f(t) -3y- 15x
-
Which constraints on accounting information are illustrated by the items below? (a) Zips Farms, Inc. reports agricultural crops on its balance sheet at market value. (b) Crimson Tide Corporation does...
-
Which of the following statements regarding the U.S. Supreme Court is FALSE? a. The Supreme Court may agree to hear an appeal (grant certiorari) or refuse to hear it (deny certiorari). b. The Supreme...
-
Design a battery electric storage system for a power plant with \(20 \mathrm{MW}\) peak power delivery for a duration of \(4 \mathrm{~h}\) and estimate the minimum number of batteries and the current...
-
1. Suppose 1,000 people would each get a benefit of $40 from a levee. Building the levee is socially efficient if its cost is less than $ _________. If the cost is $30,000, a tax of $_________ per...
-
Implement the following circuit on MultiSim using NOR Gate only and make truth table to verify outputs. SW1 SW2 SW3 AND3 AND1 NOTO OR1 OR2 NOTO
-
Write a program that reads phone directory records from a text file. Each line in the text file represents a record composed of a first name, a last name, and a phone number separated by spaces. Your...
-
Use the class Invoice provided in the exercises folder with this chapters examples to create an array of Invoice objects. Use the sample data shown in Fig. 17.25. Class Invoice includes four instance...
-
A mixture (A) in a continuous pharmaceutical manufacturing process Contains up to 10 wt% of an ingredient R [mass fraction x RA (g R/g A)1. The mixture is subjected to a reaction step in which the...
-
Which model of the social entrepreneurship process presented in this chapter resonates for you? Why?
-
From your understanding, how does a social venture plan differ from the traditional business plan?
-
What are the two types of capital that social entrepreneurs have traditionally used to fund their enterprises? How are these sources evolving?
-
What are some initial frst steps that social entrepreneurs should be aware of as they embark on writing their social venture plan?
-
Some have argued that social entrepreneurship is another form of commercial entrepreneurship with positive social or environmental change as its product. Do you agree with the accuracy of this...
-
The section of shaft shown in the figure is to be designed to approximate relative sizes of d = 0.75D and r = D/20 with diameter d conforming to that of standard metric rolling-bearing bore sizes....
-
In Exercises 105108, evaluate each expression without using a calculator. log(ln e)
-
In Figure 9.9, how does system A know what the link-layer address of system B is when it receives the ARP reply? Figure 9.9 System A System B N2 N1 L1 L2 (Not known by A) Ox0001 Ox04 Ox0800 06 Ox0001...
-
In Figure 9.5, assume Link 2 is broken. How can Alice communicate with Bob? Figure 9.5 To another link N3 L3 Frame Alice L2 L, NNg Data N, L, RI N4 L4 N L Link 1 Order of addresses N: IP address IP...
-
Why does a host or a router need to run the ARP program all of the time in the background?
-
Present value index Tasty Doughnuts has computed the net present value for capital expenditure at two locations. Relevant data related to the computation are as follows: Total present value of net...
-
Carmen Camry operates a consulting firm called Help Today, which began operations on December 1 . On December 3 1 , the company s records show the following selected accounts and amounts for the...
-
The values of the joint probability distribution of a pair discrete random variables (X, Y) are as shown in the following table : f(x,y) X 0 1 2 5 5 10 0 100 100 100 10 25 5 Y 1 100 100 100 15 20 5 2...
Study smarter with the SolutionInn App