Project #23129 - could you help me with my homework

Time to practice with functions!

Write a program that asks the user how many times they want to print Hello World.  Create a function called PrintHelloWorld.  The function takes in the number of times it should print Hello World and then prints Hello World that many times.

You need to implement this using a function.  We will check your submitted code to make sure you are using a function.

Remember, your code needs to have the exact output as the following example:

How many times do you want me to print Hello World?

3

Hello World

Hello World

Hello World

 

----------------------------------------------------------------------------------------------------------

More functions....

Create a program that gives the sum of two numbers.  Ask the user to enter in two numbers.  Pass the two numbers into a function that returns the sum.

Example:

Enter in two numbers

2

4

The total of the two numbers is: 6

 

 

Subject Computer
Due By (Pacific Time) 02/18/2014 12:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy