Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Programming: If necessary, create a new project named Intermediate26 Project and save it in the Cpp8Chap13 folder. Also create a new source file named

C++ Programming:

If necessary, create a new project named Intermediate26 Project and save it in the Cpp8\Chap13 folder. Also create a new source file named Intermediate26.cpp. Write a program that allows the user to enter a part number that consists of four or five characters. The second and third characters represent the delivery method, as follows: MS represents Mail-Standard, MP represents Mail-Priority, FS represents FedEx-Standard, FO represents FedEx-Overnight, and UP represents UPS. Display an appropriate message when the part number does not contain either four or five characters. Also display an appropriate message when the second and third characters are not one of the delivery methods. If the part number is valid, the program should display the delivery method. Use a sentinel value to end the program. Save and then run the program. Test the program using the following part numbers: 7MP6, 3fs5, 2UP7, 7mS89, 9FO8, 9fo89, 8ko89, and 1234MS.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions

Question

Define Administration?

Answered: 1 week ago

Question

Define Decision making

Answered: 1 week ago

Question

What are the major social responsibilities of business managers ?

Answered: 1 week ago

Question

Question What is a secular trust?

Answered: 1 week ago