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

  Explain the scorecards advantages and disadvantages

Explain the scorecards' advantages and disadvantages. Explain how the scorecard can be applied specifically to information technology.

  Identify an owner for each risk

Document at least ten total risks (two risks for each phase of IT projects) of the mobile application development project. Assess the likelihood of occurrence for each risk.Assess the impact of each risk on the success of the project.Identify an ow..

  Acceptance of the free trade area of the americas

Make a case for and against the acceptance of the Free Trade Area of the Americas (FTAA), which was an agreement proposed to eliminate or reduce the trade barriers among all countries in the Americas, except Cuba. What effects would such an agreement..

  Discuss about challenges of cloud forensics

Research and write a report on the top three(3) leading cloud service providers. discuss what services they provide?

  What you learned about using unified communication platform

Based on what you have learned about using unified communication platforms in a collaborative environment, create a 5-slide presentation to a department head or the CEO of a company to convince the audience that this would benefit their business.

  Show the html sample codebuilding a web page using

show the html sample codebuilding a web page using htmlpage-building software is a quick and easy way to design a web

  How would you integrate and incorporate those mechanisms

How would you integrate and incorporate those mechanisms into an existing network environment?

  How does share point help us in tasks or business

How Does Share Point help us in tasks or business? Discuss the different kinds of unified communication platforms, research the features and functionality of them, and compare them based on five criteria.

  Functional silos are not appropriate for todays organization

Why do you think functional silos are not appropriate for today's organization? Discuss your answer from organizational and technical perspectives.

  Analyze risk assessment and risk mitigation strategies

Analyze risk assessment and risk mitigation strategies and policy needs based on best practices .

  Explain the network elements

Your assignment is to diagram your network with Visio AND explain the network elements in a Microsoft Word document.

  An analysis of what might have caused the problems

In your description, an analysis of what might have caused the problems and potential solutions to them.

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