order for Jon to win and be noticed by his favourite streamer Daenerys, he decides to donate a significant amount of money. Every gift given to Daenerys is at least 11 bestcoins and is displayed in Daenerys' stream next to any message written and visible to any viewer. After Daenerys noticed that she had set a goal of at least XX bestcoins for the streaming day, all of her viewers only donated amounts below XX bestcoins. Jon decided to upgrade them all by directly donating more than or equal to XX beastcoins. Next, he decides to write a message along with his special gift to leave her in awe. His message would be: "Crossing my gift with any other gift will only increase the value of my gift". By crossing, he means to take XOR. But for all his intellectual brilliance, money doesn't grow on trees for Jon. After all, he is an underpaid employee in his fictional big name MNC. Unlike the cash cow Daenerys who makes videos of how she carelessly donated to other people, Jon has a budget and even then, he's looking for the minimum donation he needs. Can you tell Jon the minimum amount he has to donate to Daenerys so he can credibly put the above comment next to the donation to HOPEFULLY get her.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%
Answer in C++ only
order for Jon to win and be noticed by his favourite streamer Daenerys, he decides to donate a
significant amount of money. Every gift given to Daenerys is at least 11 bestcoins and is displayed
in Daenerys' stream next to any message written and visible to any viewer.
After Daenerys noticed that she had set a goal of at least XX bestcoins for the streaming day, all of
her viewers only donated amounts below XX bestcoins. Jon decided to upgrade them all by
directly donating more than or equal to XX beastcoins. Next, he decides to write a message along
with his special gift to leave her in awe. His message would be: "Crossing my gift with any other
gift will only increase the value of my gift". By crossing, he means to take XOR. But for all his
intellectual brilliance, money doesn't grow on trees for Jon. After all, he is an underpaid employee
in his fictional big name MNC. Unlike the cash cow Daenerys who makes videos of how she
carelessly donated to other people, Jon has a budget and even then, he's looking for the minimum
donation he needs.
Can you tell Jon the minimum amount he has to donate to Daenerys so he can credibly put the
above comment next to the donation to HOPEFULLY get her.
Input
Output
1
3
4
Transcribed Image Text:Answer in C++ only order for Jon to win and be noticed by his favourite streamer Daenerys, he decides to donate a significant amount of money. Every gift given to Daenerys is at least 11 bestcoins and is displayed in Daenerys' stream next to any message written and visible to any viewer. After Daenerys noticed that she had set a goal of at least XX bestcoins for the streaming day, all of her viewers only donated amounts below XX bestcoins. Jon decided to upgrade them all by directly donating more than or equal to XX beastcoins. Next, he decides to write a message along with his special gift to leave her in awe. His message would be: "Crossing my gift with any other gift will only increase the value of my gift". By crossing, he means to take XOR. But for all his intellectual brilliance, money doesn't grow on trees for Jon. After all, he is an underpaid employee in his fictional big name MNC. Unlike the cash cow Daenerys who makes videos of how she carelessly donated to other people, Jon has a budget and even then, he's looking for the minimum donation he needs. Can you tell Jon the minimum amount he has to donate to Daenerys so he can credibly put the above comment next to the donation to HOPEFULLY get her. Input Output 1 3 4
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Hyperlinks
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education