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

  Create child processes

Create child processes

  C program to accept three numbers inputs by user

Write down C program to accept three numbers input by a user, and outputs a table of temperatures in Fahrenheit, Celsius, and Kelvin.

  Computing return value after execution of program

Compute return value of Antony after its execution?

  Ethics and social responsibility

Ethics and social responsibility at McDonalds

  Show how the tree might be type-checked

Attempt to derive proof tree for the judgment Show how the tree might be type-checked

  Calculating hit ratio for program having loops

Calculate hit ratio for program that loops 10 times from locations 0 - 64.

  Pseudocode of program that will prompt user for number

Write pseudocode and flowchart for a program which will prompt user for a number, prompt the user for an operator (+,-,*,/), prompt the user for another number.

  Design application that would output payment coupons

Design the application that would output 12 payment coupons for each of the 15 apartments in each of the 20 buildings. Each coupon should contain the building number.

  What is the throughput of the system

what is the throughput of the system

  Applying constraints in program

You will require to set up constants in program for given: number of square feet per square yard.

  Wilkerson-irwin algorithm to minimize mean tardiness

Write a program to implement the Wilkerson-Irwin algorithm to minimize mean tardiness.

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

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