The output comes out wrong it should be different: //This is what I have Enter a sentence: Today Is Thr Jan, 2015 Number of uppercase letters.........2 Number of digits....................2 Number of vowels....................2 Press any key to continue . . . //The output should look like this: Enter a sentence: Today Is Thr Jan, 2015 Number of uppercase letters.........4 Number of digits....................4 Number of vowels....................4 Press any key to continue . . . #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { char c; int Uc = 0, Dc=0, Vc=0; string vowels("aeiouAEIOU"); cout << "Enter a sentence: "; …

Member Avatar
Member Avatar
+0 forum 5

I have a problem with my code. I suppose to input a string ans output to all caps. But then, I output is nothing. ![09219e4acd73eb0184487c54b207c04f](/attachments/large/4/09219e4acd73eb0184487c54b207c04f.png "09219e4acd73eb0184487c54b207c04f") TITLE LAB TUTORIAL 1 .model small .stack 100h .data msg1 db "Enter a string: $" msg2 db "Output: $" msg3 db "Number of characters: $" blank db 0dh, 0ah,'$' string db 99 dup(?) .code main proc mov ax, @data mov ds, ax mov dx, offset msg1 mov ah, 9 int 21h mov si, offset string top: mov ah, 1 int 21h cmp al, 13 je stop mov [si], al inc si jmp top stop: …

Member Avatar
Member Avatar
+0 forum 4

dear friends, I am a beginner in c programming and I have learned the c++, java as well, In C I have been asked for a question about how to convert lower case string like any name into uppercase, and i have read a program for it by pointers and I wanna do it by using typecasting and ascii values for characters so if anyone can help me on that.

Member Avatar
Member Avatar
+0 forum 4

# I want to print a string in uppercase and backwards# string = raw_input ("Favor ingrese su cadena-> ") print string.upper() #this one prints only in uppercase# `HELLO` #I want to print it backwards# `OLLEH`

Member Avatar
Member Avatar
+0 forum 2

Hi! I have just started on c++ and have encountered Expression: (unsigned)(c+1) <=256 Error when I am trying to run the program. The program is suppose to generate an array of letters (lowercase and uppercase) of size from 15 to 25. After the generation, using ONLY one while-loop, try to move all lowercase letters to the left of the array and all the uppercase letters to the right of the array. It have to contain the following criterias (a) A function to construct the array (b) A function to print out the array elements (c) A function to swap two …

Member Avatar
Member Avatar
+0 forum 4

I seem to be having difficulty with my code, I have tried many different ways but I can't seem to figure out how to implement some things. I'm also not sure how to setup my menu so only certain functions are called. 1. Adding a if statement under ShowMenu to check to see if the string word is lowercase or uppercase. Also Is there a better method that allows spacing different string method? 2. Couning Uppercase and Lowercase 3. Converting from Uppercase to Lowercase and vice versa I just can't seem to find out how to check to see my …

Member Avatar
Member Avatar
+0 forum 6

I need to create a palindrome tester program that ignores spaces, punctuation and uppercase/lowercase to determine if the string given to the user is a palindrome (same beginning to end as end to beginning). HERE'S WHAT I HAVE SO FAR: String str, another = "y"; int left, right; Scanner scan = new Scanner(System.in); while(another.equalsIgnoreCase("y")) { System.out.println("Enter a potential palindrome: "); str = scan.nextLine(); left = 0; right = str.length() - 1; while(str.charAt(left) == str.charAt(right) && left < right) { left++; right--; } System.out.println(); if(left < right) System.out.println("That string is NOT a palindrome."); else System.out.println("That string IS a palindrome."); System.out.println( ); …

Member Avatar
Member Avatar
+0 forum 3

hello everyone I really need help so I have to make functions that find vowels, digits and uppercase and lowercase letters from a sentence inputted. So i was able to do it all in main but i cant seem to make the new program work with the functions properly, it says on the compiler that it has no errors but ones i debug it, it shoes the wrong answers. would really appreciate the help. this is what i have so far with the functions #include <iostream> #include <cctype> #include <string> #include <iomanip> #include <algorithm> using namespace std; int findUpper(char ch); …

Member Avatar
Member Avatar
+0 forum 2

this is a little bit confusing, but can I know what does each part of this codes means.. especially those ptr, something. i understand those mov.. but the others aren't. i have googled a lot, but still can't understand.. what i know: the basic structure of tasm(.stack, .data, .code, and the start thingy, end thingy) what i don't know, ptr, ja, byte et. all. can you atleast explain me what these things does... thank you very much.. [CODE].model small .stack 100h .data string db '123 test TEsting$' .code start: mov ax, @data mov ds, ax upper_case: cmp byte ptr [BX], …

Member Avatar
Member Avatar
+0 forum 5

Hello i want to the textbox that when I start to type in names it should be like this [B]Camille Aisha Cordova[/B] How do I do this?

Member Avatar
Member Avatar
+0 forum 16

just asking for assistance with the menu items as they are set to uppercase M, R, C, X in the case statements how can this be modified to accept 'm' or 'M' as valid input. [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace PracticalTest5 { class Program { public static void Main(string[] args) { { const int MIN_YEAR = 1888; const int MAX_YEAR = 2011; const int MIN_RATING = 0; const int MAX_RATING = 5; const float ACTING_PERCENTAGE = 0.25F; const float MUSIC_PERCENTAGE = 0.15F; const float CINEMATOGRAPHY_PERCENTAGE = 0.20F; const float PLOT_PERCENTAGE = 0.30F; const …

Member Avatar
Member Avatar
+0 forum 11

Hi, I try to change all first letter of the words in the textbox to uppercase. THis how far i try to change it but just the first word not the entire words. [CODE] Private Sub txtQuote_Change() txtQuote.Text = UCase$(Left(txtQuote.Text, 1)) & LCase$(Mid$(txtQuote.Text, 2)) txtQuote.SelStart = Len(txtQuote.Text) End Sub [/CODE] Please Help. Best regards Thank you.

Member Avatar
Member Avatar
+0 forum 2

I have table with Columns : EmployeeName,EmployeeDetails,BirthDate,WorkStatus I want to take these column names and create new table or column with result like Employee,Name Employee,Details Birth,Date Work,Status Basically I just want to separate table name after detecting uppercase.

Member Avatar
Member Avatar
+0 forum 1

PLease help me !! how can i uppercase the half only of the string and the half is in lower case??

Member Avatar
Member Avatar
+0 forum 10

It counts upper lower and digits in a file ..

Member Avatar
Member Avatar
+0 forum 5

The End.