1. Write a program that take a number as input and prints out the square and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a program that take a number as input and prints out the square and cube of that number. 2. Write a program that takes a number as input. If the number is greater than 100 print its square, if less than print it's cube, Problem 02: Write a program that ask the user to provide his first name and last name then create a user name based on the first name and last name. Problem 03: Create a list of numbers [0, 2, 4, 5, 3, 4, 8, 9,0,0, 12, 34, 5, 7, 8,7] a-Find the maximum number in the list b-Count how many zeros in the list C-Count how many (65) in the list d-what is the number that has index of (5) 1. Write a program that take a number as input and prints out the square and cube of that number. 2. Write a program that takes a number as input. If the number is greater than 100 print its square, if less than print it's cube, Problem 02: Write a program that ask the user to provide his first name and last name then create a user name based on the first name and last name. Problem 03: Create a list of numbers [0, 2, 4, 5, 3, 4, 8, 9,0,0, 12, 34, 5, 7, 8,7] a-Find the maximum number in the list b-Count how many zeros in the list C-Count how many (65) in the list d-what is the number that has index of (5)
Expert Answer:
Answer rating: 100% (QA)
Problem 1 1 Write a program that takes a number as input and prints out the square and cube of that ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
The following are trial balance of Clarissa Amanda Sdn. Bhd. as at 31st December 2021. Debit RM Credit RM Opening stock, 1 Jan 2021 16,000 Purchases 75,000 Sales return 5,000 Carriage inwards 1,500...
-
By a work sampling study: Observed Data The machine is being used Proportion of manual labour (machine is running and/or (servicing time) T-% machine is random serviced) Allowance Time Proportion of...
-
1. Explain why it is essential to check your solutions to radical, absolute value, and rational equations? 2. Describe the error below |11x + 4| 2 26 11x + 4 < 26 or 11x + 4 11x s 22 > 26 11x 2 22
-
PepsiCos financial statements are presented in Appendix A. Financial statements of The Coca-Cola Company are presented in Appendix B. Instructions (a) Based on the information contained in these...
-
When placed between the poles of a horseshoe magnet as shown in Figure 28.12, does a rectangular current loop experience a torque? If so, in which direction does the loop rotate? Data from Figure...
-
NSW Company collects payment on 50 percent of credit sales in the month of sale, 40 percent in the month following the sale, and 5 percent in the second month following the sale. Its sales budget...
-
* Select the jobs of the operating system many answers Manage CPU and Memory Provide computer with power Provide user interface Cool down the computer
-
You now have $5000. You will toss a fair coin four times. Before each toss you can bet any amount of your money (including none) on the outcome of the toss. If heads comes up, you win the amount you...
-
In an ideal operational amplifier depicted below, the potential at node A is (a) IV 5 WMA OIV (b) OV www 25 + W (c) 5V 5 V (d) 25V
-
1. Define pathogenicity and virulence. 2. Define what an opportunistic infection is and provide an example. 3. Provide the definition and two examples of primary pathogens. 4. Describe solutions for...
-
A key dynamic within any Multi-National Corporation (MNC) is cash and foreign exchange risk exposure. Cash management is critical and also heavily influenced by global dynamics, especially since...
-
According to the development of attachment, at which age is an adopted child LEAST likely to have difficulties forming a secure attachment to an adoptive caregiver? Group of answer choices Adopted...
-
How is the structure or anatomy different from the physiology aspect of anatomy?
-
Briefly explain basic recordkeeping requirements and discuss the importance of recordkeeping to employer and OSHA, and explain the use of OSHA forms 300, 300a, and 301. Describe a workers'...
-
Assume the Black-Scholes framework. A non-dividend-paying stock S with price process (S,) is currently priced at So = 50 and its annual volatility is 40%. The continuously compounded annual riskless...
-
Funds are separate fiscal and accounting entities, each with its own self-balancing set of accounts. The newly established Society for Ethical Teachings maintains two funds-a general fund for...
-
For each of the following cases, indicate the filing status for the taxpayer(s) for 2012 using the following legend: A - Single B - Married, filing a joint return C - Married, filing separate returns...
-
Jerry made the following contributions during 2012: His synagogue (by check).....................................................$680 The Democratic Party (by check)...
-
Clifford Johnson has a limited partnership investment and a rental condominium. Clifford actively manages the rental condominium. During 2012, his share of the loss from the limited partnership was...
-
Explain from a technical viewpoint why it is important to distinguish a method, research, approach, and design. Next, briefly discuss how understanding each term individually in addition to how these...
-
Discuss the importance of validity and research design. Next, choose one type of validity (internal, external, construct, or statistical conclusion) and discuss its relevance to experimental, quasi...
-
Define a sampling strategy.
Study smarter with the SolutionInn App