46.6k views
5 votes
Write a math game where one player competes against the computer. One of three equations is randomly selected for the computer and the player (the computer and the player may be playing a different game on the same round): equation 1: the natural logarithm of a number equation 2: raising the number 2.0 to the power of a number equation 3: the log to the base10 of a number The game selects a random number between 1 and 100 for the computer, and randomly selects an equation for the computer's turn. The game then prompts the player to enter a number between 1 and 100, and randomly selects an equation for the player's turn. The results of each equation are compared, with the larger result winning the game.

1 Answer

2 votes

Poti sa traduci in romana,deoarece am cam putina dar putina engleza pe la coltul gurii si nu stiu

User Pyae Sone Nyein
by
5.5k points