Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C# Console program named Movie that contains a method named DisplayMovie that accepts and displays two parameters: A string name of a movie

Write a C# Console program named Movie that contains a method named DisplayMovie that accepts and displays two parameters:

A string name of a movie

An integer running time in minutes

For example, if the movie name is Titanic and its length is 182 minutes, the output should be:

The movie Titanic has a running time of 182 minutes. 

Provide a default value for the minutes so that if you call the method without an integer argument, minutes is set to 90.

Write a Main() method that proves you can call the movie method with only a string argument as well as with a string and an integer.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

Understand what a service-oriented culture is.

Answered: 1 week ago

Question

Explain the key areas in which service employees need training.

Answered: 1 week ago