<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by Yippee</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Mon, 02 Nov 2026 21:18:00 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>string question</title>
            <link>http://forum.lowyat.net/topic/377041</link>
            <description>can anyone help me as below??&lt;br /&gt;&lt;br /&gt;[quote]&lt;u&gt;Question 1&lt;/u&gt;&lt;br /&gt;Write a program that prompts the user to enter a string and then prompts the user to enter a character. The program should display the number of times the character occurs in the string.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Sample output&lt;/u&gt;&lt;br /&gt;Enter a string : I am so happy today&lt;br /&gt;Enter a character : a&lt;br /&gt;A occurs 3 times in the string[/quote]&lt;br /&gt;[quote]&lt;u&gt;Q7&lt;/u&gt;&lt;br /&gt;Write a program that prompts the user to enter a string and then prompts the user to enter a character. The program should display the first occurrence of the character in the string. For example, if the user enters the string &quot;asfrdbrt&quot; and the character d, the program should say that the character d is character number 5 in the string. If the character does not occur in the string, the program should display an appropriate message.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Q7 sample output&lt;/u&gt;&lt;br /&gt;Enter a string : I am so happy today&lt;br /&gt;Enter a character : a&lt;br /&gt;[/quote]&lt;br /&gt;&lt;br /&gt;[quote]&lt;br /&gt;&lt;u&gt;Question 8&lt;/u&gt;&lt;br /&gt;The first occurrences of a in the string is at position no.3[/quote]&lt;u&gt;Q8&lt;/u&gt;&lt;br /&gt;Write a program that prompts the user to enter two strings. The program should display &quot;The strings are identical&quot; if the strings are exactly the same and &quot;the strings are not identical&quot; if the strings are not exactly the same.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Q8 sample output&lt;/u&gt;&lt;br /&gt;Enter first string : I am very tired&lt;br /&gt;Enter second string : I am very sleepy&lt;br /&gt;&lt;br /&gt;Both strings above are not the same[/quote]</description>
            <author>Yippee</author>
            <category>Codemasters</category>
            <pubDate>Sun, 03 Dec 2006 22:59:14 +0800</pubDate>
        </item>
    </channel>
</rss>
