Create a new console application project

Assignment Help Programming Languages
Reference no: EM1355796

Write a program that contains a class that implements the days of the week. The program should be able to perform the following on an object of the class:

1. Set the day
2. Print the day to the computer monitor (not the printer)
3. Return the day

Create a new console application project and name it "Week1Lab_BirdN".

Create a new class called DayOfTheWeek. The class should have a data member that can store the day of the week, such as Mon for Monday, Tues for Tuesday, and so on.

Create the necessary member functions that will perform the required operations outlined in the lab summary above.

Call these functions setDay(), printDay(), and getDay().
Function setDay(string) takes a string parameter (for example, Monday, Tuesday, etc.) and stores the value in the day attribute.
Function printDay() prints the value of the day attribute on console output.
Function getDay() returns the value of the day attribute.

Write a main program that will instantiate two objects of the class DayOfTheWeek. Use these objects to test the various operations on this class.

Build your project (compile your program). Eliminate all syntax errors. Run the program. Verify results of program execution and correct any logic errors discovered.

Reference no: EM1355796

Questions Cloud

Receipt of dividends affect the investment account : Bista Company announces and distributes a cash dividend that is a result of current earnings. How will the receipt of those dividends affect the investment account of the investor under each of the following accounting methods?
What is the total energy stored in this circuit : A 5 uF capacitor is initially charged to a potential of 16 V. It is then connected in series with a 3.75 mH inductor.
Ethical dilemmas and violations : What types of ethical dilemmas and violations might be created if one is unaware of these privileges, biases, and prejudices?
Continuous cycle-managerial accounting : Define planning, organizing, and controlling and then explain why the phases of planning, organizing, and controlling are referred to as a continuous cycle?
Create a new console application project : Create a new console application project and name it "Week1Lab_BirdN". Create the necessary member functions that will perform the required operations outlined in the lab summary above.
Completing accounting cycle : Name the steps in completing the accounting cycle and explain how they impact the financial statements. What happens is a step is missed? Explain.
How do two relate among each other in circular flow economy : How do two relate among each other in the Circular Flow Economy and to the Government and Foreign Sector components. How does all this fit on a Wheel of Income.
Informed consent and counsellor : What must be included in an informed consent form ethically? Why are counsellors required to have a written informed consent form? In what ways are both the counsellor and the client being protected by such a document?
Eight steps for accounting cycle : What are the eight steps in the accounting cycle and how do they affect the financial statements? What happens if one is missing?

Reviews

Write a Review

Programming Languages Questions & Answers

  Appropriate for two classes to inherit from superclass

CDs and DVDs have several common characteristics. Would it be appropriate for these two classes to inherit from a common superclass?

  Explaining class definition of subclass of square

Write down the class definition of subclass of Square called FancySquare which has a method called getDiagonal. The getDiagonal method gets no arguments.

  Creating webpage using css

In creating a web page, depending on the information you are trying to convey. What are CSS?

  Program to print chains of numbers within a range

Write a program to print the chains for the numbers within a range that the user specifies.

  Software system to manage records of patients

A software system is to be developed to manage the records of patients who enter a clinic for treatment. The records include records of the all regular patient monitoring.

  Create the array to determine discount amount

Create the array (DISCOUNT-ARRAY) that will be used to determine discount company will give based on amount of an order.

  Creating code for method tostring

Fill in the code for method toString, which must return a string containing the name, account number, and balance for the account.

  Determine total cost of order-display it in alert dialog box

After you determine the total cost of the order (purchase plus shipping and handling), display it in an alert dialog box.

  Subdividing address block among four different customers

The ISP needs to subdivide the address block among four different customers, requiring 29, 28, 27, and 26 hosts respectively.

  User defined function to calculate average of three scores

A user defined function that will calculate and display the average of the 3 scores that remain after dropping the highest and lowest scores the performer received.

  Prolog program to reads employee-s number

Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

  Create a class uses a 25-element array of digits

Create a class HugeInteger which uses a 25-element array of didgits to store integers as large as 25 digits. Provide services inputHugeInteger, otputHugeInteger.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd