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

patient file

Your final project for this course will be a patient record analysis. You will apply the knowledge of anatomy, physiology, and pharmacology that you have developed during this course in a thorough review of existing patient information in the Final Project Patient File. Specifically, you will review a patient’s history

610 6-1 Discussion: Improve, Part Two—Mitigating Unwanted Consequences

 The Essential Workplace Conflict Handbook. Including the IMPROVE Supplementary Document. Next, in your initial post, address the following: • In what ways do you perceive the Improve phase as being informed by the other phases of DMAIC that you have worked with in the course thus far? • How can

Code of conduct

 For this assignment, Write a paper about employee codes of conduct using information from your textbook and at least two other scholarly sources. First, research employee codes of ethics, especially for the medical field. Next, find some examples of employee codes of ethics from medical facilities and choose the one

Human Growth and Development

Scenario: Simon Whitaker is 42 years old and has suffered from mental illness since his late teens. He lives in a flat in a large housing estate. He lost his job as a warehouse cleaner after he was admitted to hospital the last time he became ill, two years ago.

Exporting Security

Write a 2 page argumentative essay on the links provided below. Link 1: https://www.airuniversity.af.edu/SSQ/Book-Reviews/Article/1292320/exporting-security-international-engagement-security-cooperation-and-the-changi/ Link 2:https://digital-commons.usnwc.edu/cgi/viewcontent.cgi?article=1049&context=nwc-review Link 3: https://digital-commons.usnwc.edu/cgi/viewcontent.cgi?article=1049&context=nwc-review #Exporting #Security

Organizational culture and values

 Details: Prepare a 10-minute presentation (10-15 slides, not including title or reference slide) on organizational culture and values. Describe how alignment between the values of an organization and the values of the nurse impact nurse engagement and patient outcomes. Discuss how an individual can use effective communication techniques to overcome

Document Analysis

Document Analysis (5% – c. 500 words) Primary sources are writings that were produced by individuals or groups at the time of the historical events or issues that they deal with. A number of such documents have been placed on Blackboard, organized by course unit. This assignment requires you to

M3D1: Big Data

The discussion will examine the social interaction of participants regarding an issue or situation and its impact on research data. This discussion addresses the following module outcomes: •MO1: Become familiar with the process of conducting marketing research methods and research tools •MO2: Review the process marketers use for identifying and

Case Study 1 and 2 Pneumonia and Addison diseases

Review the case study and answer all questions with a scholarly response using APA and include 2 scholarly references. Answer both case studies on the same document and upload 1 document to Moodle. Case Studies will be uploaded to Moodle and put through TURN-It-In (anti-Plagiarism program) Turn it in Score

Should schools ban unhealthy snack machines?

 Your outline should include: An explanation of the controversial issue, why is it controversial? Identify which position or side you will take in your paper, and explain why. If you don’t agree with the position you are taking discuss how this could affect your argument on the topic. If you

The Outcome of Inequality of Wealth and Income

Research Topic: Submit an idea for a research study based on a business/economic problem. • Write the title of the study. • Explain your overarching aim for the study. • What is the problem? • What is the significance of it? • Draft at least two research questions. Due 1/27

“practice of professional engineering”

1. “practice of professional engineering” means any act of planning, designing, composing, evaluating, advising, reporting, directing or supervising that requires the application of engineering principles and concerns the safeguarding of life, health, property, economic interests, the public welfare or the environment, or the managing of any such act; (“exercice de

Curriculum Development and Evaluation

 Learning Materials: Keating, S. B. (2011). Curriculum development and evaluation in nursing (2nd ed.). New York: Springer. (Chapter 13) Books are on website Vital Source user name is sred9196@yahoo.com, the password is Bungalow9@ • Exercise #1: Address an educational need among nursing staff at a health care agency. In the

Epidemiology and Surveillance

Research the public health agency in Chicago, IL and develop a presentation on its structure, response capabilities, surveillance tools, and role in emergency management. In your response, include a description of the community served by the department (Chicago), its emergency response structure, surveillance systems that are used at hospitals, biohazard

General Psychology Application

 General Psychology Application Essay Over the course of the class, we have discussed a number of different psychological concepts and theories. For your paper you will be asked to connect a real life experience or observation with a concept or theory from lecture and/or your textbook. Your assignment should include

Issues and Trends in Curriculum Development

 Learning Materials: • Iwasiw, C., Goldenberg, D., & Andrusyszyn, M. (2009). Curriculum development in nursing education (2nd ed.). Boston: Jones & Bartlett. (Chapters 13 and 14) • Keating, S. B. (2011). Curriculum development and evaluation in nursing (2nd ed.). New York: Springer. (Chapters 16 and 17) PowerPoint • Chapter 13

Foundation of Nursing Module 2.1 ( Discussion)

Module 2.1 – Discussion Nursing Theories and Theorists Instructions: After reading the assigned chapters, please post two discussion questions based on the readings along with your answers to the following questions: Did any of the theories or theorist influence your own personal theory of nursing; and consequently, your own view