Reference no: EM132083376
All programs should be submitted in one file that end in .py . Put a comment at the start of each program.
a) Write a program that asks a user for a positive nonzero integer value. The program should use a "while loop" to get the sum from 1 up to the number entered. For example if the user entered 10, the answer printed out should be 55, because the sum 1,2,3,...10 is 55.
b) Write the same program as above using a "for loop".
C) The following program simulates flipping a coin one million times and displays the number of heads and tails
import random
headCount = 0
tailCount = 0
for count in range(1000000):
number = random.randint(0, 1)
if number == 0:
headCount += 1
else:
tailCount += 1
print("head count:", headCount)
print("tail count:", tailCount)
Use the above as a guide and write a program that simulates throwing a six sided die one million times and displays the number of times each side shows up.
Credit sales are paid for in the current month
: On average, 60% of credit sales are paid for in the current month, 20% in the next month, and the remainder in the month after that.
|
Identify improvements and propose the system to-be
: New System development requires first to understand the system AS-IS, identify improvements, and propose the system TO-BE.
|
What is the weighted average cost of capital
: The cost of equity is 14.5 percent and the aftertax cost of debt is 4.8 percent. What is the weighted average cost of capital?
|
Calculate the required external financing
: What is the formula to calculate the required external financing over the next year?
|
Write a program that asks a user for a positive nonzero
: Write a program that asks a user for a positive nonzero integer value. The program should use a "while loop" to get the sum from 1 up to the number entered.
|
What price would these bonds sell in the marketplace
: At what price would these bonds sell in the marketplace? How many bonds would the firm have to issue to raise $1 million?
|
What is network segmenting
: What is network segmenting? List four different types of network segments and provide examples for each from your daily life.
|
Weight of equity-weight of debt-cost of equity
: What are the weight of equity, weight of debt, cost of equity, after tax cost of debt, Wacc.
|
Describe a design methodology of four stages to facilitate
: Write your answer in the form of a management plan for this project. For each stage, indicate the number of weeks that should be allocated.
|