Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE EXCEL VBA! Write a VBA code to play one round of Word Game with 2 questions (each has an answer with 4 characters). In

USE EXCEL VBA!

image text in transcribed

Write a VBA code to play one round of" Word Game" with 2 questions (each has an answer with 4 characters). In Cell Al, write the text of the first question. You can ask anything you want. Please create 5 different questions and show any of them randomly each time I start the game. There should be 3 buttons on the screen: Start Buy a letter Submit the answer The rules are as below: - There is no time limit. - When I click on Start, show me a question in Cell Al. - The answer should be hidden in A3 to D3 - If I click on "Buy a letter", give me a hint by showing a random letter in the word (it could be any of 4 characters). If I click on this button again, give me another random letter in the answer and so on. To submit my answer, I should fill in the blanks in A3 to D3 and then click on "Submit my answer". When I submit my answer for the question, calculate my score. If my answer is correct I win 400 points minus 100 times of the number of letters I bought. If my answer is wrong I lose 400 points. Show my score in Cell A5. If I click on Start button again, please restart the game for the second round and show me a different question. The same rules will be applied for the second question and when I submit my answer, my final score will be shown in Cell A5. Here is an example. This is how it looks when I click on "Start" button. 1 What's the capital of Italy? START BUY SUBMIT This is how it looks when I click on "Buy" once. 1 What's the capital of Italy? START BUY SUBMIT Write a VBA code to play one round of" Word Game" with 2 questions (each has an answer with 4 characters). In Cell Al, write the text of the first question. You can ask anything you want. Please create 5 different questions and show any of them randomly each time I start the game. There should be 3 buttons on the screen: Start Buy a letter Submit the answer The rules are as below: - There is no time limit. - When I click on Start, show me a question in Cell Al. - The answer should be hidden in A3 to D3 - If I click on "Buy a letter", give me a hint by showing a random letter in the word (it could be any of 4 characters). If I click on this button again, give me another random letter in the answer and so on. To submit my answer, I should fill in the blanks in A3 to D3 and then click on "Submit my answer". When I submit my answer for the question, calculate my score. If my answer is correct I win 400 points minus 100 times of the number of letters I bought. If my answer is wrong I lose 400 points. Show my score in Cell A5. If I click on Start button again, please restart the game for the second round and show me a different question. The same rules will be applied for the second question and when I submit my answer, my final score will be shown in Cell A5. Here is an example. This is how it looks when I click on "Start" button. 1 What's the capital of Italy? START BUY SUBMIT This is how it looks when I click on "Buy" once. 1 What's the capital of Italy? START BUY SUBMIT

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistical And Scientific Database Management International Working Conference Ssdbm Rome Italy June 21 23 1988 Proceedings Lncs 339

Authors: Maurizio Rafanelli ,John C. Klensin ,Per Svensson

1st Edition

354050575X, 978-3540505754

More Books

Students also viewed these Databases questions

Question

3. Outline the four major approaches to informative speeches

Answered: 1 week ago

Question

4. Employ strategies to make your audience hungry for information

Answered: 1 week ago