radius = 8
rPen down
For row=1 to 3
For col=1 to 3
x = 100*col
y = 100*row
Circle x-radius,y-radius,x+radius,y+radius,BLACK,BLACK
while ! ( rfeel () & 4)
rForward 1
wEnd
while ! ( rfeel () & 16)
rTurn 1
wEnd
While True
while ! ( rfeel () & 8)
rturn -1
wEnd
while ! ( rfeel () & 8)
rForward 1
wEnd
Next col
while ! ( rfeel () & 4)
rForward 1
wEnd
while ! ( rfeel () & 16)
rTurn 1
wEnd
While True
while ! ( rfeel () & 8)
rturn -1
wEnd
while ! ( rfeel () & 8)
rForward 1
wEnd
Next row
// your code here
end
Using robot basic Enter and run the following new program: You should recognize the resulting display...
Using Python, Can someone please assist in the following:
These are the hints:
Summary This week's lab is to create a simple multiplication table using nested loops and if statements. Prompt the user for the size of the multiplication table (from 2x2 to 10x10). Use a validation loop to display a warning if the number is less than 2 or greater than 10 and prompt the user to enter the data again until they enter a valid number Put a...
Need some help I am not understanding this programming class at
all. We are using Microsoft visual studio with python in console
mode to complete these labs.
Double-click to hide white space CIS115 Week 4 Lab Overview Title of Lab: Multiplication Table in Python Summary This week's lab is to create a simple multiplication table using nested loops and if statements. Prompt the user for the size of the multiplication table (from 2x2 to 10x10). Use a validation loop to...
Task 5.2 Numerical Analysis Using Nested Loops (13 pts) Consider the following program: void setup() { //Read a positive integer from the user //Your code starts here } Complete this program such that it calculates all prime numbers between 1 and the value that is assigned to variable num and outputs them on the screen. A prime number is a positive integer that has no other factors other than itself and 1. You should use a nested loop, i.e., write...
The following guidelines outline the basic template for a robot vacuum cleaner game. The game must be implemented in c programming language. It mimics a robotic vacuum cleaner. The code must only use the following libraries: #include <math.h> #include <stdlib.h> #include <string.h> #include <limits.h> and any .graphics and .timers libraries. The guidelines are outlined as follows: Terminal Set-up: you may assume that the terminal will be quite large, for example, on the order of 150×50, or more. Status Display: The...
This program is C++
You have just been offered your first big software contract. The
scope of work is to create a tool for grade school students to
learn their times tables. In this program, you will create a 10 x
10 grid of times tables as a cheat sheet for the students to learn.
This will display the values of the times tables all the way from
1x1 to 10x10. Make use of formatting tools like inserting tabs,
setwidth(),...
Develop a functional flowchart and then write a C++ program to
solve the following problem.
1. Create a text file named c1.txt and write your brand of
computer (like Dell, HP, etc) in the file. You will be reading the
name of the file from the keyboard as a string, using the string
class. Your program will also read the brand of your computer from
the keyboard. The process of the file creation (name of the file,
mode for opening...
The following guidelines outline the basic template for a robot vacuum cleaner game. The game must be implemented in c programming language. It mimics a robotic vacuum cleaner. The code must only use the following libraries: #include <math.h> #include <stdlib.h> #include <string.h> #include <limits.h> and any .graphics and .timers libraries. The guidelines are outlined as follows: Terminal Set-up: you may assume that the terminal will be quite large, for example, on the order of 150×50, or more. Status Display: The...
6.15 Program 6: Using Arrays to Count Letters in Text 1. Introduction In this program, you will practice working with arrays. Your program will read lines of text from the keyboard and use an array to track the number of times each letter occurs in the input text. You will use the contents of this array to generate a histogram (bar graph) indicating the relative frequencies of each letter entered. Test cases are available in this document. Remember, in addition...
This program will ask the user to enter a number of players, then ask the user for each player's name and score. Once all of the players have been entered, the program will display a bar chart with each of their scores scaled as a percentage of the maximum score entered. See below for details on exactly how this should work - an example transcript of how the program should work is shown below (remember that values entered by the...