Program that finds the "smallest" and "largest" in a series

Assignment Help C/C++ Programming
Reference no: EM13937052

Write a program that finds the "Smallest" and "Largest" in a series of words. After the user enter the words, the program will determine which words would come first and last if the words were listed in dictionary order. The program must stop accepting input when the user enters a four-letter word.assume that no word is more than 20 letters long. An interactive session with the program might look like.

Enter word: dog

Enter word: zebra

Enter word: rabbit

Enter word: catfish

Enter word: walrus

Enter word: cat

Enter word: fish

Smallest word: cat

Largest word: zebra

This is from the C programming/a modern approach by K.N.King.

Must be in code-blocks (C not C++).

Reference no: EM13937052

Questions Cloud

Analyse information on market and business needs : What further information would you need to analyse information on market and business needs to identify marketing opportunities?
Topic of interest surrounding race and ethnicity : A research paper based on a topic of interest surrounding race and ethnicity, social change, or both. This Unit VIII research paper will be at least five pages in length and consist of information from at least four peerreviewed,scholarly articles to..
Compute percentage of costs in each of six business-function : Calculate the percentage of costs in each of the six business-function cost categories for Computer Power and Plum Computer in 2006 and 2007. Comment on the results.
Give brief definition of the database concept : First let us start with a brief definition of the Database concept. A database is a collection of data records stored in a computer in a systematic way. In this way, a computer program can be used to answer queries about the data stored in the dat..
Program that finds the "smallest" and "largest" in a series : Write a program that finds the "Smallest" and "Largest" in a series of words. After the user enter the words, the program will determine which words would come first and last if the words were listed in dictionary order. The program must stop acce..
E-commerce and internet social media : There are few areas that researcher could be work on in order to find potential new markets; • E-commerce, internet social media
What are some events that facilitate rapid evolution : Explain the concepts of phyletic gradualism and punctuated equilibrium. What are some presumptions about fossil records related to PE? What are some events that facilitate rapid evolution?
Language running on any operating system : Task: You are required to create and deliver a presentation providing an analysis of an existing software exploit (therefore you are not required to craft a new, unknown exploit yourself).
Social phenomenon and exoticize the familiar : Choose an everyday social phenomenon and "exoticize the familiar" by describing in careful, perceptive detail its aspects that you would otherwise take for granted. You must focus your essay on ONE specific phenomenon. Your phenomenon must be specifi..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50. Include an approriate sentinel ..

  Potential classes to be implemented in the future

Discuss any potential classes to be implemented in the future

  Write a program to open a file in c++

Write a program to open a file in C++

  Accept positive and negative numbers in its input sequence

the program must accept positive and negative numbers in its input sequence, and ?nd the largest and smallestof the numbers entered whether they are all positive, all negative, or a combination of both positive and negative.

  Write a short c++ function

Write a short C++ function, isMultiple, that takes two positive long values, n and m, and returns true if and only if n is a multiple of m, that is, n = mi for some integer i.

  Create a studentgrade class that includes two data members

Create a StudentGrade class that includes two data members: a student ID number and the student's score on a test. Both of these are integers. Include "get" and "set" member functions for each of the data members, plus a displayRecord method which ou..

  Sort an array of elements using the quick sort algorithm

Sort an array of 10,000 elements using the quick sort algorithm as follows: sort the array using pivot as the middle element of the array

  Q1 write a program that generates the following

q1. write a program that generates the following outputnbspnbspnbspnbspnbspnbspnbspnbsp 10nbspnbspnbspnbspnbspnbspnbsp

  Compute square roots to a desired degree of accuracy

write a program which will compute square roots to a desired degree of accuracy.

  Write a program for keeping a course list

Write a program for keeping a course list for each student in a college. The information about each student should be kept in an object that contains the student's name and a list of courses completed by the student.

  Read in data from an input file (qstr.txt).

It will print the output and say that it is NOT palindrome which leads me to believe it is missing something somehow.

  Write a function that permanently swaps two floats

Write a function that permanently swaps two floats using references.

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