4 C++ Programs Write a program that asks the user for the due date of the next assignment (hours, minutes)
    4 C++ Programs Write a program that asks the user for the due date of the next assignment (hours, minutes) 4 C++ Programs Write a program that asks the user for the due date of the next assignment (hours, minutes) 4 C++ Programs Write a program that asks the user for the due date of the next assignment (hours, minutes)

4 C++ Programs Write a program that asks the user for the due date of the next assignment (hours, minutes)

$15.99

1. Write an algorithm to settle the following question:

  • A bank account starts out with $10,000. Interest is compounded monthly at 6 percent per year (0.5 percent per month). Every month, $500 is withdrawn to meet college expenses. After how many years is the account depleted?

2. Written Assignment:  Due Dates

  • Write a program that asks the user for the due date of the next assignment (hours, minutes).
  • Then print the number of minutes between the current time and the due date in this format: The number of minutes until the due date is 235.
  • Include comments to explain what’s going on in the program.

3. Write a Program that prompts the user for an integer and then prints out all prime numbers up to that integer. For example, when the user enters 20 the program should print:

2

3

5

7

11

13

17

19

Recall that a number is a prime number if it is not divisible by any numbers except 1 and itself.

4. Write a function which calculates leap years.   The function prototype is as follows:

bool leap_year(int year);

Write the function body which returns true if the year is a leap year and false if the year is not a leap year.

NOTE:   A leap year is defined as any year divisible by 4 with the following exception:

Years that are evenly divisible by 100 are not leap years, unless they are also evenly divisible by 400

Also note that any year prior to 1582 is not a leap year.

Your submission should include a fully functional program including a main program that tests your leap_year function.

My tutorial contains  C++ programs.

If you have more questions, please contact me via email support@extutorials.com

I will help you any time

Thank you !

Attached Files

Move over [ preview ] file name to preview content in it!

  • 4 Programs.zip [3.4KB]
    • bank.cpp [0.7KB] [ preview ]
    • leapyear.cpp [1KB] [ preview ]
    • PrimerNumbers.cpp [0.5KB] [ preview ]
    • timeremain.cpp [1KB] [ preview ]

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B