Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: that prompts the user for a time and outputs whether it's breakfast time, lunch time, or Purpose: This application provides experience with user input

Description: that prompts the user for a time and outputs whether it's breakfast time, lunch time, or
Purpose: This application provides experience with user input and interaction in the Console, writing decision structures, and string operations in C#/.NET.
Requirements:
Project Name: MealTime
Target Platform: Console
Programming Language: C#
In your project, implement a program that prompts the user for a time and outputs whether it's bor oinner time, If it's not time for a meal, outpul The meal times meal's time range is inclusive of the end points in the time range. For instance, whether it's 7:00,7:01,7:59, or 8:00, or anytime in between, it's time for breakfast. number of hours as a For instance, given a time like 7:30(i.e.,7 hours and 30 minutes), convert should return 7.5(i.e.,7.5 hours).
public static float convertime(string time)(
}.
Note: You do not need to implement exception handling in this program. We will implement that in a future program
Your Program Should
Prompt the user to enter the time.
Get the user response.
Send the user response to the convertTime function to convert the time to a floating point value.
Use the converted time to determine whether it is Breakfast time, Lunch tise, or
Breakfast between 7:00 and 8:00, Lunch between 12:00 and 13:00, Dinner between 18:00 and 19:00
Output the appropriate message to the user.
End program
image text in transcribed

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions

Question

2. I can discuss the emotions I feel with other team members.

Answered: 1 week ago