Program to print a table indicating the no. of occurrences of each letter of alphabet in the text entered as command line arguments. #include<iostream> #include<string> using namespace std; int main(int argc, char *argv[]) { string str=""; static int alphabet[26]; int x; cout<<"\n\n Command-Line Argument\n"; for(int i=0;i<argc;i++) { cout<<"\n "<<argv[i]; str+=argv[i]; } for(int i=0;i<str.length();i++) { if(str[i]>='A' && str[i]<='Z') { x=((int)str[i])-65; alphabet[x]++; } else if(str[i]>='a' && str[i]<='z') { x=((int)str[i])-97; alphabet[x]++; } } //Displaying No. of occurrences of each alphabets in the command line argument cout<<"\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n Alphabet No. of Occurrences\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"; for(int i=0;i<26;i++)...
hookup ur code with us
A Use Case Diagram for an online book store typically includes actors like Customer, Admin, and Payment Gateway, with use cases web hosting such as Browse Books, Add to Cart, Make Payment, Manage Inventory, and Process Orders. The diagram shows interactions between these actors and system functionalities to visualize the process flow.
ReplyDeleteNice blogs
ReplyDeleteGreat Information.
The Bookworm Central eBookstore is a customizable virtual platform tailored for schools, organizations, and not-for-profits. It offers a unique blend of features, from personalized landing pages and diverse shopping categories to recommended reading sections and wish lists. With 24/7 year-round access, it transcends the limitations of traditional book fairs, promoting reading and providing an innovative fundraising avenue.