Assignment_27 - If the divisor is zero your function will...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment 27 Functions with two parameters Write a program that prompts the user for two numbers – the dividend and the divisor – and then displays the division of the dividend by the divisor. Your function must be called displayDivision and will check that the divisor is not zero before attempting the division.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: If the divisor is zero, your function will display the error message shown below. Your program will then ask the user if s/he wants to continue. If the user enters a ' y ' (either upper or lower case), continue to ask the user for the next dividend and divisor. Use the screen shot below as a guide....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online