Write a program that will define the f string manipulation

Assignment Help Basic Computer Science
Reference no: EM13166374

1.) Write a program that will define the following string manipulation functions. Each is analogous to the

corresponding C++ string function.

 

STRLEN( Str &, Len &) Sent the address of a string, it returns the length in a call-by-reference param.

 

STRCPY( Dest &, Source & ) Sent the address of the Source string, it places a copy of it in the Destination

string.

 

STRCAT( Dest &, Source & )Sent the address of the Source String, a copy of it is attached to the end of

the Destination string.

 

The test program will do at least the following:

 

S1 = "I "

S2 = "love "

S3 = "assembly "

S4 = S1 + S2 + S3 (using STRCAT)

S5 = S3 (using STRCPY)

S6 = S4 (using STRCPY )

L1 = STRLEN( S1)

L4 = STRLEN( S4)

 

 

 

2.) Also write a STRCMP function that returns two values, representing the Z and N

indicators. Compare the following strings and output something like : "I < love" for the first one.

 

Compare:

 

S1 and S2

S1 and S3

S1 and S4

S6 and S4

S5 and S3

 

 

Reference no: EM13166374

Questions Cloud

Piaget’s stages of development-cognitive development : What are the stages associated with Piaget’s stages of development? Which stage do you feel is most critical in the cognitive development of an individual? Why? 200--300 words cite references
For hypothetical insurance company : for hypothetical insurance company. This company offers insurance for 4 types of vehicles: cars, trucks, motor cycles and boats.
Time discussing national politics : Now that we have spent some time discussing national politics, let's move to the international level. Specifically, let's think about an organization like the European Union (EU). Why was it formed?
Calculate the molar concentration of radon in the water : A sample consisting of various gases contains 3.4 10-6 mole fraction of radon. This gas at a total pressure of 33 atm is shaken with water at 30°C. Calculate the molar concentration of radon in the water.
Write a program that will define the f string manipulation : 1.) Write a program that will define the following string manipulation functions. Each is analogous to thecorresponding C++ string function.
Analyzing activity in inventory accounts : Analyzing Activity in Inventory Accounts and select data concerning operations of Cascade Manufacturing Company for the past fiscal year follow:
Frequent format of music in the romantic era : Which phrase best describes program music, a frequent format of music in  the romantic era?
What is the atomic weight of m : The element M forms the chloride MCl4 containing 75.0% Cl by mass. What is the atomic weight of M?
Prompts the user for the prices of 10 automobiles : Write a program that prompts the user for the prices of 10 automobiles (use looping to do this and store the prices in an array). The automobiles may be priced from less than $1 up to $99,999. No negative numbers are allowed. Perform error checkin..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explaining firewalls and virus protection software

Lots of people who connect their systems to the Internet rush out and purchase latest copies of firewalls and virus protection software.

  Key principles on smart phone devices gps tracking system

How to apply these key principles on smart phone devices GPS tracking system/software to mitigate user personal information be exposed undesirably.

  The ieee 754 single precision binary representation

What would be the IEEE 754 single precision binary representation of the floating point value -314159265. 3589 ? Express your final answer as an 8-hex-digit number and explain how your answer was obtained for full credit.

  How many instructions executed in single time slice

Machine executed average of 5000 instructions per microseconds. How many instructions could be executed in a single time slice?

  Creating project organization in enterprise business

Organization structures generally used to create a project organization in an enterprise business environment.

  Explain computer viruses spread by email or other methods

Explain computer viruses spread via email or by other methods. What negative consequences can they have on an organization's operations?

  Discuss strategies to dilute manager-s anger

Discuss strategies you will use to dilute this manager's anger. Discuss how you will get them both to support your recommendations.

  Objectives of ibm behind

While Jeopardy is a fun game, and while explicit goal is to build a program to beat a human champion at game, the real goal for building Watson is different and multi fold.

  Binary scientific notation

For IEEE 754 single precision floating point, what is the number, as written in binary scientific notation, whose hexadecimal representation is: 0061 0000

  How to use system tools to identify problems

How can you use system tools, such as the Task Manager, to help identify and troubleshoot these problems? Report your findings in a one page paper.

  Process computer uses to convert data into information

Write down a 200 word paper which explains the distinctions of data and information and in short describe the process a computer uses to convert data into information.

  Evaluate the natural settings of the test environment

Assess the reliability of data gathered via paid Internet users. Describe and assess the evaluation method being used by the testing company, i.e., nonvisual and verbal recording of browser activities and tester's vocal comments.

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