Extension of a filename

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

Modify your earlier program that found the extension of a filename. This time your program will identify a file name that is no longer that 12 characters and has one of five extensions that you specify (eg: .doc. .py, .html, .txt, .ps). The program should tell the user if the file name is too long and if it has an unacceptable file extension. You are to use ‘and’ and ‘or’ operators in your selection routines.

Reference no: EM13908715

Questions Cloud

Design a program that uses a loop to display : Running on a particular treadmill you burn 3.9 calories per minute. Design a program that uses a loop to display the number of calories burned after 10,15,20,25,30 minutes?
Compute the sales price variance and the sales volume : Comp Wiz sells computers. During May 2013, it sold 350 computers at a $ 1,200 average price each. The May 2013 fixed budget included sales of 365 computers at an average price of $ 1,100 each.
Calculate the weekly salary of a worker : Write a program to calculate the weekly salary of a worker. Ask the user for the pay per hour for weekdays, and pay per hour on weekends. Then ask user for number of hours worked for each day of the week (i.e. Mon, Tue, … Sun).
Which of the variances are of greatest concern : Resset Co. provides the following results of April's operations: F indicates favorable and U indicates unfavorable. Applying the management by exception approach, which of the variances are of greatest concern? Why?
Extension of a filename : Modify your earlier program that found the extension of a filename. This time your program will identify a file name that is no longer that 12 characters and has one of five extensions that you specify (eg: .doc. .py, .html, .txt, .ps).
The following information describes production activities : The following information describes production activities of Mercer Manufacturing for the year:
What is the average return in each market : Consider the given returns: What is the average return in each market from the point of view of a U.S. investor and of a U.K. investor?
Compute the direct materials cost variance : Trico Company set the following standard unit costs for its single product.
Do not conduct an economic analysis of the legal process : Do not conduct an economic analysis of the legal process (i.e. whether it is efficient to appeal the case). Focus on the economic analysis of the tort case at hand.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write main function to compute stress-strain in steel rod

Write a main function and the following functions to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) subject to the compression loads.

  How can virtual destructors plug a memory leak

What is a pure virtual member function? What is a memory leak? How can virtual destructors plug a memory leak?

  Determine whether all elements of the list are distinct

Consider the subsequent decision problem: Given a list of integers, determine whether all elements of the list are distinct - Show that this question can be solved in polynomial time.

  Write a program to calculate students average test scores

Write a program to calculate students average test scores

  Construct an er diagram

Finally, the company is required by its insurers to maintain a record of the position of each vessel; its port and date of departure, destination and estimated date of arrival; number of officers, total number on board, and total value of cargo ca..

  Opportunity to work with both c style strings

The focus of this lab is on using strings. You will have an opportunity to work with both C style strings and the string data type. This lab also gives you an opportunity to use what you have learned previously

  Examine the differences between a linear and augmented line

"Developing a Website" Please respond to the following: Examine the differences between a linear and augmented linear structure. Examine the differences between hierarchical and linear structures. Explain why a coherent structure is necessary. Provid..

  Saddle point is an element

For a square nXn a array, a saddle point is an element that is the maximum in its row and the minimum in its column.

  Implement the tronomino tiling algorithm

Implement the tronomino tiling algorithm,  our program should take an arbitrary input positive integer  k  in the Linux command line and generate a 2 k  * 2 k  board.

  Write a function named putinorder

Write a function named "PutInOrder" that has 2 double reference parameters (say a and b). The function rearranges the values pointed to by a and b such that a points to the smallest value and b to the largest value.

  Write a program that convert fahrenheit to degrees celsius

Write a program that will convert Degrees Fahrenheit to Degrees Celsius.

  Compare and contrast the object-oriented approach to design

compare and contrast the object-oriented approach to design and the traditional approach.do you believe that there are

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