Using the language C# in visual studios please complete the

Using the language C# in visual studios please complete the following Assignment:

The program for this assignment will consist of five sections, each headed by the three-line comment below:

//*********************************************************

//****Assignment 4 Section X

//*********************************************************

(where X stands for the portion of the assignment to follow.)

Assignment Requirements

Section 1:

  1. Enter the comment with the section title as described above.
  2. CarDealz used cars wants to build an app for their buyers to know what cars are on the approved list for purchase. You will create a structure with the string fields for Make and Model and one integer field ModelYear for the earliest acceptable model year for that car.
  3. Create an array of these structures. For testing purposes, we will begin with three and the values for them will be {Ford, Mustang, 2010}, {Chevrolet, Silverado, 2008}, and {Dodge, Charger, 2012}.
  4. Print to the console the statement, “Section 1: Array of Structures.”
  5. Using a loop, display the full contents of each structure in the array.

Section 2:

  1. Enter the comment with the section title as described above.
  2. The app from section 1 needs a means to check to see how many of each model CarDealz already has on the lot so that the buyers do not create a glut of any one model. In this section, you will create a dictionary named inventoryCount that will use the car model as the key and the inventory quantity as the value.
  3. Populate your dictionary with the following values:

Mustang

9

Silverado

13

Charger

4

  1. Print to the console a blank line and the statement, “Section 2: Inventory Count.”
  2. Using the methods available in the dictionary class, display the current number of each model in the inventoryCount dictionary.

Section 3:

  1. Enter the comment with the section title as described above.
  2. You are thinking of adding array lists for different work weeks to the CarDealz app because not all employees work the same days of the week. Create an arraylist called DaysofWeek and add all the days of the week to it.
  3. Print to the console the statement, “Section 3: Days of the Week.”
  4. Using a loop, display the days from the arraylist.
  5. Using a loop, display the days from the arraylist in reverse order.
  6. Create a second arraylist called WorkDays and copy the DaysofWeek arraylist to it.
  7. Delete “Saturday” and “Sunday” from the WorkDays arraylist.
  8. Print the contents of WorkDays.

Section 4:

  1. Enter the comment with the section title as described above.
  2. There is further discussion about features to be added to the CarDealz app at a later time. You think it is best that you get some practice with stacks and queues as you think you will likely need them.
  3. Print to the console the statement, “Section 4: Stack.”
  4. Create a stack.
  5. Using your stack, push the following values: 10,24, 31, 45, 19, 76
  6. Using methods of the stack class, print a message telling how many items are on the stack.
  7. Pop three items off of the stack and repeat your printed message telling how many items are in the stack.
  8. Display the next item in the stack to be popped.

Section 5:

  1. Enter the comment with the section title as described above.
  2. Print to the console the statement, “Section 5: Queue”
  3. Create a queue.
  4. Using your queue, enqueue the following values: 10,24, 31, 45, 19, 76 
  5. Using methods of the queue class, print a message telling how many items are on the queue.
  6. Dequeue three items off of the queue and repeat your printed message telling how many items are in the queue.
  7. Display the next item in the queue to be dequeued.

EXPECTED OUTPUT

Section 1: Array of Structures

Ford, Mustang, 2010

Chevrolet, Silverado, 2008

Dodge, Charger, 2012

Section 2: Inventory Count.

There are 9 Mustangs.

There are 13 Silverados.

There are 4 Chargers.

Section 3: Days of the Week

Sunday

Monday

Tuesday

Wednesday

Thursday

Friday

Saturday

Saturday

Friday

Thursday

Wednesday

Tuesday

Monday

Sunday

Monday

Tuesday

Wednesday

Thursday

Friday

Section 4: Stack

There are 6 items in the stack.

There are 3 items in the stack.

The next item to be popped from the stack is 31.

Section 5: Queue

There are 6 items in the queue.

There are 3 items in the queue.

The next item to be dequeued from the queue is 45.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Watch the film Tulia, Texas (e-verison 2012, original 2008)(54 minutes)

Watch the film Tulia, Texas (e-verison 2012, original 2008)(54 minutes) This is the link to watch the movie. I will send you my login infotmation  https://fod-infobase-com.ezproxy.montclair.edu/p_ViewVideo.aspx?xtid=49794 Please watch the movie and take notes to answer these questions. The movie should be the only source you use to answer these questions. All of

DIRECTIONS: As a part of your movie critique you are

DIRECTIONS: As a part of your movie critique you are to address and answer the following questions. You might want to make notes while watching the movie.  Give the title and a summary of what the movie was about. Discuss your interest in selecting this particular movie. Critique what you

Health Problem/Focus: Teen Suicide in SWFL Explain why focus group

Health Problem/Focus: Teen Suicide in SWFL Explain why focus group is a useful qualitative method of gathering information. Having you as a moderator of a community focus group that will explore knowledge, believes, attitudes and behaviors about your selected health problem: Define your group and the setting for the activity, applying statistical

Assignment 2: How to Win: Strategic Options Assessment and Recommendation

 Assignment 2: How to Win: Strategic Options Assessment and Recommendation Due Week 8, Sunday, midnight of your time zone (Weight: 25%) Introduction “Strategy means making clear-cut choices about how to compete. You cannot be everything to everybody, no matter what the size of your business or how deep its pockets.”

Select and answer one of the following questions by Friday

  Select and answer one of the following questions by Friday at 11:59 pm: In approximately 500 words describe the History of the Mediterranean Population.  Use 1 reference from your textbook and 1 reference from a peer-reviewed source.  In approximately 500 words describe the General Beliefs of the Mediterranean Population.  Use

Bias in the Main Stream Media

 This paper will examine the bias of the Main Stream Media (CNN, MSNBC, ABC, CBS) when it comes to covering and reporting on a Democrat President and a Republican President. The topic analysis content must be at least 6 pages, plus the title page and reference page (8 pages total).

Discussion Post – Based on the book end of competitive advantage, what does transient advantage means for you, personally? Attachement below for question. Nursing Assignment Help

Discussion Post – Based on the book end of competitive advantage, what does transient advantage means for you, personally? Attachement below for question. Expert Solution Preview Introduction: Transient advantage, as described in the book “The End of Competitive Advantage,” refers to a temporary competitive edge that an organization or individual

Case Analysis -Ford Motor Co.

 Analyze a case using the Eight Steps to Sound Decision Making found in Chapter 2 of the textbook. CASE: Read the case, Pinto Fires, on pages 63-67 of your textbook. Please don’t reference any other source than the case provided and the eight steps to ethical decision making found in

Define and regulate privacy is severely hindered by the multifaceted

The essay assignment is designed to have you reflect on and apply the concepts learned in this unit. Please prepare a reflection paper in response to one of the prompts below. We expect you to use in-text citations as well as provide references for those citations (your references should not

Getting Started Privacy can be defined as one’s independence from

  Getting Started Privacy can be defined as one’s independence from being observed or being disturbed. Privacy extends to an expectation of the secrecy of one’s personal information. Today, with the open use of the internet and the wholesale gathering of personal information, have we lost any privacy in our

Your project lead has asked you to determine if PVSS

Your project lead has asked you to determine if PVSS has ever conducted an audit. After further investigation of the situation, you determine that this will be the first review that PVSS has conducted or to which it has been subjected. Your project lead has asked you to summarize your review and

Introduction: Claims management is the art of consolidating, billing, filing,

  Introduction: Claims management is the art of consolidating, billing, filing, revising, and managing medical claims, an imperative aspect of the healthcare industry. Medical facilities cannot receive due funds if patients are unaware of how much they need to pay. Ensuring provider organizations understand the fundamentals of medical billing and

ANTH 3280 Essay

 Description This assignment is based on the essay outline and bibliography assignment (s. there) and needs to incorporate the feedback and/or recommendations given by the course director on that earlier assignment. This evidence-based essay should have an overall length of 2000 to 2500 words plus references and bibliography. It represents

Describe the leadership style of William Wallace in the movie

Describing the leadership style of William Wallace in the movie “Braveheart”. The writer should point out the leadership style using the Traits approach, Skills Approach, Behavioral approach, Situational approach. Additional other approaches and concepts can also be incorporated to point out his leadership and characteristics. Some things to consider: Point

Resiliency is much more than just surviving adversity or bouncing

  Resiliency is much more than just surviving adversity or bouncing back after facing adversity. Please use the assigned readings and the Library to research peer-reviewed studies to support your post. Please respond to the following: What does it mean to be resilient? Create a brief fictional case study of