Write a program that prompts for your first name

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

Lab Assignemnt

1. Write a program that prompts for your first name and then last name. Enter them respectively and make your full name and output it.

2. Write a program that fmds the smallest word and largest word in a series of words. The program must stop accepting input when the user enters "stop". Assume that no word is more than 20 letters long. The following is an example run:

Enter word:
Enter word: zebra
Enter word: rabbit
Enter word: cat
Enter word: fish
Enter word: stop
Smallest word: cat Largest word: zebra

3. Write a program that counts the number of vowels (a,e i cku) in a sentence entered from the keyboard. Now define a function that contains a string parameter. The function will counts the number of vowels in the string parameter and returns the count. Call the function in the main.

Reference no: EM131508457

Questions Cloud

Devise a model for the windmill : Devise a model for the windmill of Fig.
Sustainability from an administrative process : Using what you have learned, analyze the importance of shift to outcome measurement, impact evaluation, and sustainability from an administrative process.
What are meteor showers and why do they happen : What are meteor showers and why do they happen? How is it possible that we can predict when a meteor shower will be
Devise a model for the automobile antenna : Devise a model for the automobile antenna of Fig.
Write a program that prompts for your first name : Write a program that prompts for your first name and then last name. Enter them respectively and make your full name and output it.
Compare the terrestrial planets to the jovian planets : Compare and contrast the terrestrial planets to the Jovian planets in terms of their locations, sizes, and atmospheres
Devise two different models for the boat shaft and propeller : Devise two different models for the boat shaft and propeller of Fig.
Describe the nature of global warming : Describe the nature of global warming. Include a discussion of the cause, likely results and possible solutions
Human performance technology projects : Analyze and provide an example of how using evaluation results can improve human performance technology projects.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Function that accepts a pointer to a c-string

Write a function that accepts a pointer to a C-string as an argument and returns the number of words contained in the string. Also have it display the average number of letters in each word.

  Conditional jump statements causes a jump to dest

Determine whether each of the conditional jump statements causes a jump to dest.

  What is the estimated net operating income

What is the estimated net operating income for July, if the company always uses an estimated predetermined plantwide overhead rate of $7 per direct labor-hour?

  Write a program that accepts as input a string variable

Write a program that accepts as input a string variable called strFirstName, then another string variable called strLastName, and an integer variable called intAge.

  Create a derived class to store the age of the patients

Create a structure to store the date (year, month and date as its members). Create a base class to store the above information. The member function should include functions to enter information and display a list of all the patients in the database. ..

  Writer a program that allows the user to enter an unknown

writer a program that allows the user to enter an unknown number of characters stores those characters in a data

  When and why would you use each type of array

What is the difference between two parallel arrays and a two-dimensional array

  Write in c++ another overloaded operator

Write in C++ another overloaded operator to go in the program that has Treasury. Overload the forward slash /  so that in the main program, you can declare sale to be of type Treasury, and commission to be of type Treasury, and commispctage to be of ..

  List the names of the members in the structure

Name the file and the line number, or the range of numbers, in that file where this structure type is defined. List the names of the members in the structure.

  Dynamically allocate memory for new class objects

This lab will explore the use of pointers in several ways. Pointers will be used to dynamically allocate memory for new class objects on demand from the user, and they will be used to access class-member functions

  Program that calculates and prints average of several grades

Write a C program that calculates and prints the average of several grades entered by the user. The program should first prompt the user to enter the number of grades to process (at least 2 grades must be entered by user!)

  Compute triangle area

Write a program with a form that contains three labels & text boxes (Base, Height & Area) in addition to a button labeled compute Triangle Area. The user must enter the base and height to find the area. (Triangle Area = 0. 5base x Height)

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