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

  Operating system and cpu scheduling

Operating System and CPU Scheduling

  Implement a second-order low-pass filter

Implement a second-order low-pass filter using the finite difference method. The finite difference method is a useful mathematical method that is used to numerically solve differential equations.

  The second argument to the function is the string

The function fnUserBinaryInputX has 2 input arguments, each is a string. The first string is the "prompt" string displayed to the user when asked to enter a string. The second argument to the function is the string to compare the user entered stri..

  Program that utilizes a good design proces

Analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one array one-dimensional..

  Initialize an array and fill the array with the gpa values.

Write a program in java that asks user input (using a loop) for name of 10 student and the corresponding grade point averages (GPAs). Initialize an array and fill the array with the GPA values.

  Write a fraction class whose objects will represent fraction

Write a fraction class whose objects will represent fractions. You should provide the following member functions: Two constructors, a default constructor which assigns the value 0 to the fraction, and a constructor that takes two parameters

  Evaluate the tip amount that should be added

Write a program that will be used to evaluate the tip amount that should be added to a restaurant charge. Allow the user to input the total, before taxes and the tip percentage (15% or 20%).

  Create the need matrix

Creating a system having five process from p0 to p4 and five resource types.

  Calculate and display the area of the rectangle

Calculate and display the area of the rectangle and the total price of the tile. Add comments in code section. Code this program in java programming.

  Create a graphical calculator with buttons

Create a graphical calculator with buttons that can add, subtract, multiply, divide, +/-, Sin, Cos, Tan, clear and Modulus and write a method for each of these calculations that will accept the needed incoming numbers and return the calculated value.

  Implement a card class and a composite deck class

Implement a Card class, a composite Hand class, and a composite Deck class for playing poker. Implement the following class hierarchy

  Generate menu for all of the given keyboard functionalities

Generate a menu for all of the above keyboard functionalities. Keyboard event ‘d' and mouse-picking to delete an existing control vertex

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