Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!


San Jose City College Sum and Averrage Project

San Jose City College Sum and Averrage Project

San Jose City College Sum and Averrage Project


Project A

Define a class called DayOfWeek that is an abstract data type for a day in the week. Your class will have one member variable of type int to represent a day (1 for Monday, 2 for Tuesday, and so forth). Follow the ADT (Abstract Data Type) guideline to implement this class.

Include at least the following member functions:
// constructors

1. a constructor to set the day using the first three letters (e.g. “MON” for Monday)
2. a constructor to set the day using an integer as an argument (e.g. 1 for Monday)
3. a default constructor

// input function

4. an input function that reads the day as the first three letters, accepts an input stream as parameter

// output function

5. an output function that outputs the day as an integer, accepts an output stream as parameter

// others

6. a member function that returns the next day as a value of type DayOfWeek.

Test each member functions in the DayOfWeek class to make sure they are functioning properly before moving onto project B.

Project B

Write a program based on the DayOfWeek class in project A so that it:

  1. Accepts a 3-letter input from the user as the week of day (using member function #4 described above)
  2. Outputs the current day number, following by the next 6 days’ (using member function #5 & #6 described above)


1. Follow the ADT (Abstract Data Type) guideline to implement the required class

2. Comment well in your program and any functions you use


Please enter three letters for the day of week: (e.g. MON for Monday)


This is day 3 of the week.

This is day 4 of the week.

This is day 5 of the week.

This is day 6 of the week.

This is day 7 of the week.

This is day 1 of the week.

This is day 2 of the week.

We offer the best custom essay writing services at an affordable rate. We have done this assignment before, we can also do it for you.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Essay Pillars only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Essay Pillars are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Essay Pillars is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Essay Pillars, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.