Determine whether or not any two consecutive lines typed

Assignment Help Computer Engineering
Reference no: EM131857373

Problem

Design and implement an Ada program to determine whether or not any two consecutive lines typed at the keyboard are anagrams of one another. Two lines are anagrams of one another if they contain exactly the same characters in (perhaps) different order. For example, the following two lines are anagrams. Mildred Smedley slid remedy meld Echo the two lines after both have been read. Then print one of the following messages followed by three blank lines: The above two lines are anagrams! The above two lines are not anagrams! You may assume that no line contains more than 80 characters. You may also assume that the only characters in the lines are the 26 uppercase and lowercase characters of the alphabet and the blank character. Ignore blanks in the input. Consider equivalent uppercase and lowercase letters to be equal. Terminate your program when the first line of the pair contains less than two characters.

Reference no: EM131857373

Questions Cloud

Write an interactive program that plays tic-tac-toe : Write an interactive program that plays tic-tac-toe. Represent the board as a three-by-three character array.
Cyberspace or cybersecurity related risks : Develop a list of 5 or more specific cyberspace or cybersecurity related risks which the company included in its report investors.
How would you use inductive reasoning in decision-making : As a manager, when and how would you use inductive and deductive reasoning in decision-making?
Causing the death of someone else : What would be an example of a situation where a person could be sentenced to death for their involvement in causing the death of someone else?
Determine whether or not any two consecutive lines typed : Design and implement an Ada program to determine whether or not any two consecutive lines typed at the keyboard are anagrams of one another.
Best accounting management system : How does a company choose the best accounting management system for their company?
Project that has cash flows as shown in the table below : The company has a 12% required rate of return and expects a 3% rate of inflation for the following four years. What is the NPV of a project that has cash flows
How much more money do you estimate you will spend : As a manager of a software development project, you need to give senior management a report on the status of the project.
How many students took the exam : The correct answers are the first 30 characters; they are followed by an integer number that says how many students took the exam (call it N).

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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