Write Extension Method Counts Number Words String Q43856458
Write an extension method that counts the number of words in astring.
Expert Answer
Answer to Write an extension method that counts the number of words in a string….
Write Family Database Program Create Class Represent Person Store References Person S Moth Q43893352
Write a family database program. Create a class to represent aperson and to store references to the person’s mother, father, andany children the person has. Read a file of names to initialize thename and parent-child relationships of each Person. (You might wishto create a file representing your own family tree.) Store theoverall list of Persons as an ArrayList. Write an overall main userinterface that asks for a name and prints the maternal and paternalfamily line for that person. Here’s a hypothetical execution of theprogram, using as an input file the line of English Tudormonarchs:
Person’s name? Henry VIIIMaternal line: Henry VIII Elizabeth of YorkPaternal line: Henry VIII Henry VIIChildren: Mary I Elizabeth I Edward VI
*******************************
SAVE THIS FILE AS tudor.dat and use the data of this file. Thecode should be in JAVA.
Henry VII
Arthur
Catherine of Aragon
Henry VIII
Anne Boleyn
Jane Seymour
Mary I
Elizabeth I
Edward VI
Margaret
James IV
James V
Mary of Guise
Mary, Queen of Scots
Henry, Lord Darnley
James VI & I
Mary
Charles Brandon
Frances
Henry Grey
Lady Jane Grey
Elizabeth of York
Margaret Stuart
END
Arthur
Elizabeth of York
Henry VII
Henry VIII
Elizabeth of York
Henry VII
Margaret
Elizabeth of York
Henry VII
Mary
Elizabeth of York
Henry VII
Mary I
Catherine of Aragon
Henry VIII
Elizabeth I
Anne Boleyn
Henry VIII
Edward VI
Jane Seymour
Henry VIII
James V
Margaret
James IV
Mary, Queen of Scots
Mary of Guise
James V
James VI & I
Mary, Queen of Scots
Henry, Lord Darnley
Frances
Mary
Charles Brandon
Lady Jane Grey
Frances
Henry Grey
Henry, Lord Darnley
Margaret Stuart
unknown
Margaret Stuart
Margaret
unknown
END
Expert Answer
Answer to Write a family database program. Create a class to represent a person and to store references to the person’s mother, …
Write Filter Program Tokenizes Input Inserts Words Binary Tree Strings Elements Try Create Q43895984
C++ Program using visual studio or Cygwin.
Write a filter program that tokenizes its input and inserts the words in a binary tree of strings elements. Try to create your binary tree as a template class and instantiate it with a string. (Note you are to write your own tree class from scratch. Do not use the STL or other libraries, the point here is to review your data structure skills). When all the words in the input file are exhausted you are to print the words on the standard output file (one word per line). (Print the tree using In-order traversal) Consult your data structure books if necessary. Specification of a token: All alphabetic characters in the file should be translated to lower case. Punctuation and white space (blanks, t and n) separate the words. Hyphens in a word (such as alternative-facts or state-of-the-art) are also included as word separators. Apostrophes in the interior of a word are part of the word (e.g. doesn’t, I’ll and must be preserved. However, apostrophes before or after a word should be discarded (e.g. ’tis = tis, chris’ = chris). All other punctuation and special symbols should be discarded (for example”,. &^, #, @,!, =, |, >,<, +, etc.) and viewed as separators. Numbers (on their own or attached to other words) are not part of words and must be discarded. (192 chicken asked “2be or not 2be = be or not be”, “25th =th”, “ab12cd = abcd”) After the text is tokenized, and populated in the binary tree, perform an In-Order traversal and display each word in a separate line. Show transcribed image text Write a filter program that tokenizes its input and inserts the words in a binary tree of strings elements. Try to create your binary tree as a template class and instantiate it with a string. (Note you are to write your own tree class from scratch. Do not use the STL or other libraries, the point here is to review your data structure skills). When all the words in the input file are exhausted you are to print the words on the standard output file (one word per line). (Print the tree using In-order traversal) Consult your data structure books if necessary. Specification of a token: All alphabetic characters in the file should be translated to lower case. Punctuation and white space (blanks, t and n) separate the words. Hyphens in a word (such as alternative-facts or state-of-the-art) are also included as word separators. Apostrophes in the interior of a word are part of the word (e.g. doesn’t, I’ll and must be preserved. However, apostrophes before or after a word should be discarded (e.g. ’tis = tis, chris’ = chris). All other punctuation and special symbols should be discarded (for example”,. &^, #, @,!, =, |, >,
Expert Answer
Answer to Write a filter program that tokenizes its input and inserts the words in a binary tree of strings elements. Try to creat…
Write Flowchart Pseudocode According Questions Q43853228

just write down the flowchart and pseudocode according to thequestionsa cup of coffee, and Bristo coffee shop charge $3. offers the add-ins shown below Price (8) 0.89 0.25 Product Whipped cream Cinnamon Chocolate Sauce Amaretto Irish Whiskey 0 .59 150 175 Desien, Develop and test the logic for an application the allows a user to enter ordered add-ins continuously und a sentinel value is entered. After each item, display its price or the message “Sorry, we do not carry” that as output. After all iteam have been entered, Display the total price for the order. Draw a Flowchart and Pseudocode for required funcionalites of program Show transcribed image text a cup of coffee, and Bristo coffee shop charge $3. offers the add-ins shown below Price (8) 0.89 0.25 Product Whipped cream Cinnamon Chocolate Sauce Amaretto Irish Whiskey 0 .59 150 175 Desien, Develop and test the logic for an application the allows a user to enter ordered add-ins continuously und a sentinel value is entered. After each item, display its price or the message “Sorry, we do not carry” that as output. After all iteam have been entered, Display the total price for the order. Draw a Flowchart and Pseudocode for required funcionalites of program
Expert Answer
Answer to just write down the flowchart and pseudocode according to the questions…
Write Following 3 Functions 1 Menu Display Menu Options Adding Blog Displaying Blogs Quitt Q43840547
Write the following 3 functions:
(1) menu() – display the menu with options for adding a blog,displaying all blogs, and quitting.
(2) addBlog(blog, numBlogs) – ask user to input from keyboardthe 6 member data items. Read those values into local variables.Call setBlog method to add the new blog entry to the blog array.Add 1 to numBlogs.
(3) displayBlogs(blog, numBlogs) – loop through numBlogs toprint each blog entry to a separate line. Add a heading above theblog entries. Use formatting (setw, setfill, left, right) to aligncolumns and display leading spaces and zeroes (whereappropriate).
Here is my code:
Main.cpp:
#include <iostream>
#include “Blog.h”
using namespace std;
const int MAX_BLOGS =100;
int main()
{
Blog blog[MAX_BLOGS];
int numBlogs=0;
int choice=0;
do
{
menu();
cin >> choice;
switch (choice)
{
case 1: //Add blog
addBlog( );
break;
case 2: // display blog
displayBlogs( );
break;
case 3: // Say goodbye
cout<< “Goodbye”<<endl;
break;
default: // INVALID
cout<< “INVALID choice” <<endl;
}
} while (choice !=3);
return 0;
}
Blog.h:
#include<iostream>
using namespace std;
class Blog
{
private:
string authorFirst,authorLast,content;
int day, month, year;
public:
Blog();
void setBlog(string,string,string, int, int, int);
string getAuthorFirst()const;
string getAuthorLast() const;
string getContent() const;
int getDay() const;
int getMonth() const;
int getYear() const;
};
Blog.cpp:
#include “Blog.h”
Blog::Blog()
{
authorFirst=””;
authorLast=””;
content=””;
month=0;
day=0;
year=0;
}
void Blog::setBlog(string authorFirstIn,stringauthorLastIn,string contentIn,
int monthIn, int dayIn, int yearIn)
{
authorFirst=authorFirstIn;
authorLast=authorLastIn;
content=contentIn;
month=monthIn;
day=dayIn;
year=yearIn;
}
string Blog::getAuthorFirst()const
{
return authorFirst;
}
string Blog::getAuthorLast() const
{
return authorLast;
}
string Blog::getContent() const
{
return content;
}
int Blog::getDay() const
{
return day;
}
int Blog::getMonth() const
{
return month;
}
int Blog::getYear() const
{
return year;
}
Expert Answer
Answer to Write the following 3 functions: (1) menu() – display the menu with options for adding a blog, displaying all blogs, a…
Write Following Code Arm 32 64 Bit Assembly Sure Follow C Calling Conventions Char Strcpy Q43908400
Write the following code in ARM 32 *AND* 64 bit assembly. Be sure to follow C calling conventions. char *strcpy(char *dst, char *src) { char *dst_copy = dst; while (*src) { (*dst) = (*src) ++dst; ++src; (*dst) = (*src) return dst_copy; Show transcribed image text Write the following code in ARM 32 *AND* 64 bit assembly. Be sure to follow C calling conventions. char *strcpy(char *dst, char *src) { char *dst_copy = dst; while (*src) { (*dst) = (*src) ++dst; ++src; (*dst) = (*src) return dst_copy;
Expert Answer
Answer to Write the following code in ARM 32 *AND* 64 bit assembly. Be sure to follow C calling conventions. char *strcpy(char *ds…
Write Following Code Include Int Main Int Fel 2 Whilelti Q43900402

Expert Answer
Answer to why when I write the following code: #include int main() int fel, i=2; whilelti…
Write Following Functions Write Function C Named Introduction Returns Nothing Takes Two In Q43885006
You will write the following functions.
Write a function in C++ named introduction that returns nothingand takes two integer parameters named low and high. This functionthen prints a welcome message as “Hello User! I am thinking anumber between <low> and <high>”. For example, low = 1,and high =100, but you can choose your own range.
Write a function named getGuess that asks the user to guess anumber between low and high. The function returns an integer, andtakes no parameters.
Write a function named testGuess that tests the number guessedabove. If the guessed number is less than the randomly generatednumber, the functions prints “Your guess is lower than the randomlygenerated number”. If the guessed number is greater than therandomly generated number, the functions prints “Your guess ishigher than the randomly generated number”. If both numbers areequal, the function prints a congratulatory message –“Congratulations! You won.”
Expert Answer
Answer to You will write the following functions. Write a function in C++ named introduction that returns nothing and takes two in…
Write Following Program Java Write Class Called Namemethods Contains Following Instance Va Q43901043
Write the following program in JAVA:
Write a class called NameMethods which contains the followinginstance variable and methods:
Instance Variable:
AvgLength- an integer preset to 0
Methods:
ReadNames: Given no values from the main method (i.e. noparameters), create a String array called names, read 50 names froma file called “names1.txt” into the array and return the array tothe main method
AvgCalc: Given a String array from the MAINMETHOD, determine the average length of the names in thearray. Store the average in the instance variable AvgLength. Do NOTreturn its value to the main method.
FindNames: Given a String array and a single letter fromthe main method, determine which friends have a name eitherstarting or ending with that letter. (Remember to deal with casesensitivity.) Write every name matching this criteria to a filecalled “names2.txt”. Do not output any values on screen and do notreturn any values to the main method.
You may declare any extra variables needed inside themethods.
Expert Answer
Answer to Write the following program in JAVA: Write a class called NameMethods which contains the following instance variable and…
Write Following Sequence Using Sum Formula 5 N 2 1 N N N 2 Also Please Prove N Greater Equ Q43894307
Write the following sequence using the sum formula an = { 5 if n= 2 ; an−1 + n(n!) if n > 2 }
Also please prove that for all n greater or equal than 2 , an =(n + 1)! − 1.
I think for the prove induction should be used.
Thank you!
Expert Answer
Answer to Write the following sequence using the sum formula an = { 5 if n = 2 ; an−1 + n(n!) if n > 2 } Also please prove that …