Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
Turing Help Fast
Author Message
Ashwin Kumar

Posted: Sun Oct 22, 2017 12:32 pm   Post subject: Turing Help Fast

What is it you are trying to achieve?
Suppose we want to simulate a game. Consider that you roll three 10-sided dice. If you get all 3 seven,
then you win big. You want to repeat this game 1000 times. Code below:

What changes should you make to show how many times you won big?

What is the problem you are having?
Not able to understand

Describe what you have tried to solve this problem
Not able to understand

 Turing: var num1, num2, num3 : int for play_count : 1 .. 1000 randint (num1, 1, 9) randint (num2, 1, 9) randint (num3, 1, 9) put num1, " " , num2, " ", num3 if num1 = num2 and num2 = num3 and num3 =7 then delay (1000) cls locate (12,20) randint(color_number,0,255) color (color_number) put " YOU WON BIG" delay (1000) end if end for put " End of program"

Please specify what version of Turing you are using
<4.1.1a>

Insectoid

Posted: Sun Oct 22, 2017 9:44 pm   Post subject: RE:Turing Help Fast

What part are you having trouble with?
al.ba

Posted: Wed Nov 22, 2017 8:46 pm   Post subject: RE:Turing Help Fast

Hi, I'm finding difficulties with a turing programming exercises on string manipulation it asks me to gather a word from the user and display it with every vowel exchanged with 9
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 1 of 1  [ 3 Posts ]
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: