Write a program that reads a string from the keyboard

Assignment Help Management Information Sys
Reference no: EM132181559

Answer the following Question :

Q1) Write a program that reads a string from the keyboard and tests whether it contains a valid date. Display a message explaining why it is not valid.

The input date will have the format mm/dd/yyyy. A valid month value mm must be from 1 to 12 (January is 1). The day value dd must be from 1 to a value that is appropriate for the given month. February has 28 days except for leap years when it has 29. A leap year is any year that is divisible by 4 but not divisible by 100 unless it is also divisible by 400.

Q2) Write a JAVA program to read a list of nonnegative integers and to display the largest integer, the smallest integer and the average of all the integers. The user indicates the end of the input by entering a negative sentinel value that is not used in finding the largest, smallest and average values. The average should be a value of type double so that it is computed with a fractional part

Q3) To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be shown as GET LOAN. In some cases, to make a telephone number meaningful, companies must use more than seven letters. For example, 225-5466 can be displayed as CALL HOME, which uses eight letters.

Write a program that prompts the user to enter a telephone number expressed in letters and outputs the corresponding telephone number in digits.

If the user enters more than seven letters, then process only the first seven letters. Also output the - (hyphen) after the third digit. Allow the user to use both uppercase and lowercase letters as well as spaces between words.

Reference no: EM132181559

Questions Cloud

Define what you gain from the interview : You can crate the "interview " , but I need details, how you find him and why you choose to interview this person, where and when you meet each other.
Environment-culture surrounding buyer impact the risks : How did the environment/culture surrounding the buyer (Russian company) impact the risks that were identified on this project?
Determining the full-employment gdp equilibrium : Use the AD/AS model to show an economy in recession. Explain how fiscal policy can be used to move the economy back to the long run
Businesses and their suppliers been affected : How has the relationship between businesses and their suppliers been affected?
Write a program that reads a string from the keyboard : Write a program that reads a string from the keyboard and tests whether it contains a valid date. Display a message explaining why it is not valid.
Analyze the ethical reasoning with regard to the moral issue : Write 800 to 1000 words essay in good, grammatical English. many topics may be chosen, but the point of the essay is to analyze the ethical reasoning.
Briefly describe the concept of the black swan : Briefly describe the concept of the black swan. Explain why you either support or dismiss the concept of the black swan.
Largest gaming and social media company in china : Tencent is a Chinese technology company and the largest gaming and social media company in China. Recently, China stopped approving licenses for new video games
Planning-strategy and competitive advantage : Choose one company and any article related to Planning, Strategy, & Competitive Advantage

Reviews

Write a Review

Management Information Sys Questions & Answers

  Information technology and the changing fabric

Illustrations of concepts from organizational structure, organizational power and politics and organizational culture.

  Case study: software-as-a-service goes mainstream

Explain the questions based on case study. case study - salesforce.com: software-as-a-service goes mainstream

  Research proposal on cloud computing

The usage and influence of outsourcing and cloud computing on Management Information Systems is the proposed topic of the research project.

  Host an e-commerce site for a small start-up company

This paper will help develop internet skills in commercial services for hosting an e-commerce site for a small start-up company.

  How are internet technologies affecting the structure

How are Internet technologies affecting the structure and work roles of modern organizations?

  Segregation of duties in the personal computing environment

Why is inadequate segregation of duties a problem in the personal computing environment?

  Social media strategy implementation and evaluation

Social media strategy implementation and evaluation

  Problems in the personal computing environment

What is the basic purpose behind segregation of duties a problem in the personal computing environment?

  Role of it/is in an organisation

Prepare a presentation on Information Systems and Organizational changes

  Perky pies

Information systems to adequately manage supply both up and down stream.

  Mark the equilibrium price and quantity

The demand schedule for computer chips.

  Visit and analyze the company-specific web-site

Visit and analyze the Company-specific web-site with respect to E-Commerce issues

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