Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need this written in C++ with detailed documentation program needs to open the dwords.txt file, then count and report the number of constants in the
Need this written in C++ with detailed documentation
program needs to open the dwords.txt file, then count and report the number of constants in the file
dwords.txt file contents are below
The Diamond D and the Dreadful Dragon Dozens of years ago. In a drafty castle. Duke David of Dundeedle did dwell. Duke David was dumpy but dignified. And he had a darling daughter named Dora who was a delight. One day Dora danced through the door in the dear little dress decorated with daffodils. "Doodley-doo, doodley-doo", Dora sang, as she danced. "Oh, hello, dear, dumpy daddy", said Dora to Duke David of Dundeedle. "Dora, my darling, dimpled daughter", said Duke David. "You are indeed delightful, so I have a dandy present for you." "Do tell," said Dora. "Do describe this doo-dad, daddy". "It is a dazzling Diamond D dangling from a chain!" So, hanging the D around Dora's dimpled neck, Duke David of Dundeedle departed through the door. Although Dora and Duke David didn't know it, someone else dwelt in the castle. This someone was Donald, the Dreadful Dragon of Dundeedle. "I am Donald, the Dreadful Dragon of Dundeedle. I live in a dungeon downstairs in Duke David's dwelling. It is a deep dungeon, a dark dungeon - a deep, dark, damp, dank, dreary dungeon. It is a dump!" Donald used dozens of D words - which was the only nice thing you could say about him. Otherwise he was a dud. Donald the Dragon dashed from his dungeon, directly to Duke David's dandy daisy patch. "I am dashing from my dungeon to steal the Diamond D that Duke David gave his daughter Dora," he said. Donald, the doer of dark deeds, drifted into the daisy patch. Dora, daughter of duke David, saw the dreadful dragon and dropped a drooping daisy from her dainty dimpled hand. She danced directly up to Donald the Dragon and declared, "Well, look who's here - a dear doggie! Hi there, doggie." Donald disbelieved his droopy ears. "Doggie?" he screamed. "Did you say doggie?" "Definitely," said Dora. "Well, I do declare!" said Donald. "If Dora, the dignified Duke David's daughter thinks that I, Donald the Dreadful Dragon of Dundeedle, am a doggie, then Dora is dumb!" "But you're the dearest doggie I've ever seen," Dora declared. "Do come and dwell in our castle, doggie dear, and I'll give you this Diamond D which my doting daddy draped around my dimpled neck." "Don't doggie me!" Donald roared, darting toward Dora, determined to grab the Diamond D. Suddenly, Duke David dashed into the daisy patch. Diving between darling Dora and Dreadful Donald, the Duke drove Donald around and around the daisy patch. The dismal dragon ducked, dodged, darted and dashed through the ducklings and the daisies until the Duke dumped him into the duck pond. "Daddy dear," said Dora, "why did you do that?" "Because that dreadful, dishonest dragon was determined to steal the dazzling Diamond D from around your dainty, dimpled neck," said the Duke. "Dragon?" said Dora. "I'll be darned! He looked like a doggie to me." "You're dumb but you're adorable, Dora," said Duke David, "so here's what we'll do. From this day on this dreadful dragon will dwell in a dog house, dine on dog biscuits, and do doggie tricks to delight my divine daughter Dora - or else!" "Or else what?" Donald demanded. "I'll dump you in the duck pond again!" "Bow-wow," said Donald. "I'm a doggie." And so David, Duke of Dundeedle, and his delightful daughter Dora lived happily ever after with Donald the Doggie, who used to be a dreadful dragon. Taken from The Sesame Street Story Book, Random House, 1971.Attached Files:dwords txt (3 461 KB Basic Assignment (maximum 50 points) Page 249, Problem #2 adaptation . Query the user for the name of a file and then count and report the number of consonants found in the file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started