Displaying a menu to allow the teacher to choose

Assignment Help Business Management
Reference no: EM131564832

Overview

A teacher has asked you to make a program that will allow her to store all of the names of her students in each of her classes. She would like to be able to enter a list of students in different files and later display various student lists from the file.

Instructions

For this programming challenge, you will provide a program to the teacher with the following functionalities:

  1. The program should start by displaying a menu to allow the teacher to choose whether to create a new class list, display a present class list, or exit the program.
  2. If the teacher chooses to create a new class list, the program should also prompt the teacher to enter a filename in which to store the new class list.
  3. The program should then allow the teacher to enter the number of students in the class, then loops to read that many names.
  4. Those names should then be written to a file with the filename provided by the teacher.
  5. A message should also be displayed if the file was successfully saved and then return the user to the menu.
  6. If the teacher chooses to view a present class list, the program should prompt the teacher for the filename of the student list she would like to view.
  7. The program should then open that file to read all of the student's names into array.
  8. Prior to displaying the names, you must short the names in the array and then display them in alphabetical order.
  9. You may assume that no two students have the same name.

Input Validation: Do not accept a number less than 1 or greater than 25 for the number of students.

Reference no: EM131564832

Questions Cloud

Discuss the types of detection and prevention technology : Discuss the types of detection and prevention technology available, specifically the use of firewalls and intrusion detection software, to protect ones wireless
History and evolution of information security : Share your findings from your Internet and library research on the history of the information security profession.
What does slope of the estimated regression line indicate : What does the slope of the estimated regression line indicate? If the company's advertising expenditure is $400,000, what are the predicted sales?
Explain hamlet character : A Man Who Could Not Make Up His Mind. At the beginning of our Hamlet study
Displaying a menu to allow the teacher to choose : The program should start by displaying a menu to allow the teacher to choose whether to create a new class list, display a present class list.
How has demand grown in the last hundred years : How has demand grown in the last 100 years? Is our system currently capable of keeping up with demand or do we have too many shortages to remain effective?
Reads positive integers from standard input : Write loop that reads positive integers from standard input, printing out those values that are greater than 100, each followed by a space
Develop and commercialize the idea : Define the resources needed. What will be needed to develop and commercialize the idea? How much money will it cost? How much time will it take?
Contactless chip transaction from a cardholder point of view : 1. Explain the differences between contact chip and contactless chip transaction from a cardholder point of view.

Reviews

Write a Review

Business Management Questions & Answers

  Research a company that had some communication issues

Research a company or 2 that had some communication issues and note what they did to fix them along with what processes they implemented.

  Countertrade schemes to generate export revenues

How might a company make strategic use of countertrade schemes to generate export revenues? What are the risks associated with pursuing such a strategy?

  Empowering non-managerial staff to make certain decisions

What are your thoughts on empowering non-managerial staff to make certain decisions? What are some possible advantages and disadvantages.

  Product rather than offer a price-off coupon

Why wouldn't a producer of toothpaste just lower the price of its product rather than offer a price-off coupon?

  Question related to business communication trends

Question related to Business Communication Trends - Explain current trends in business communication

  Estimate planning function of management

Examine the influence which legal issues, ethics, and corporate social responsibility have had on management planning at chosen company. Give at least one example for each.

  Advantages and challenges of globalization

Define international business and discuss the advantages and challenges of globalization. Discuss two (2) advantages and two (2) challenges of an international business.

  How many units should be ordered at a time

a. How many units should be ordered at a time? b. When should the order be placed based on the inventory position? c. What is the total annual cost of meeting demand for this product?

  Cause of conflict between the two top executives

Critically analyze reasons as to the cause of conflict between the two top executives of lend lease corporation Ltd.

  Explain the criteria used for evaluating strategic options

Explain the criteria used for evaluating strategic options and detail the qualifications required to justify these. Explain why these important to the evaluation process?

  Concept of surge pricing

1. Explain the concept of ‘Surge Pricing' and how this will help Railways .Be specific in your answer? 2. Is there any industry or Firm who was also using the similar kind of pricing strategy? Explain it.

  Specifically for developing country producers

A fair price for goods, specifically for developing country producers for better trading conditions. Some goods it usually includes are: crafts, coffee, cocoa, sugar, tea, bananas, honey, cotton, fresh fruit, chocolate, and flowers.

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