Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
bartleby

Concept explainers

Question
Book Icon
Chapter 2, Problem 10E
Program Plan Intro

Program Plan:

Following variables are used in the program:

TotalJobMinutes: To the total job minutes value.

Hours: To store the number of hours.

Minutes: To store the number of minutes

Following functions are used in the program:

WriteLine(): To display the hours and minutes value for given total job minutes.

ReadKey(): To end the program after reading a random variable.

Summary Introduction:

Program will use Main() in which value of total minutes involved in a job is stored in variable TotalJobMinutes. Using this value of TotalJobMinutes, number of hours and minutes in it are calculated as quotient and remainder obtained on dividing it by 60 respectively. The value of hours and minutes is then displayed to user using WriteLine() method.

Program Description:

Purpose of the program is to represent the total minutes involved in a job in hours and minutes format.

Blurred answer
Students have asked these similar questions
Write a program that declares a variable that represents minutes worked on job and assign a value. Display the value in hours and minutes
Write a program that calculates the future value of an investment at a given interest rate for a specified number of years. The formula for the calculation is: futureValue = investmentAmount * (1 + monthlyInterestRate)years*12 Use text fields for the investment amount, number of years, and annual interest rate. Display the future amount in a text field when the user clicks the Calculate button,
Write a program that calculates the future value of an investment at a given interest rate for a specified number of years. The formula for the calculation is as follows:futureValue = investmentAmount * (1 + monthlyInterestRate)years * 12 Use text fields for users to enter the investment amount, years, and interest rate. Display the future amount in a text field when the user clicks the Calculate button, as shown in Figure 9.22b.

Chapter 2 Solutions

Microsoft Visual C#

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT