1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
velikii [3]
3 years ago
15

A parking lot has eight spaces, each with a sensor connected to RIM input A7, A6, ..., or A0. A RIM input being 1 means a car is

detected in the corresponding space. Spaces A7 and A6 are reserved handicapped parking. Write a RIM C program that: (1) Sets B0 to 1 if both handicapped spaces are full, and (2) Sets B7..B5 equal to the number of available non-handicapped spaces.
Mathematics
1 answer:
Zarrin [17]3 years ago
7 0

Answer:

The desired program is as given below: /* Wheel and Ramp To compile: Linux: g++ -o wheelandramp wheelandramp.cpp -lGL -lGLU -lglut -lm Mac: g++ -o wheelandramp wheelandramp.cpp -framework Carbon -framework OpenGL -framework GLUT -lm */ #ifdef __APPLE__ #include <OpenGL/gl.h> // definitions for GL graphics routines #include <OpenGL/glu.h> // definitions for GL input device handling #include <GLUT/glut.h> // deginitions for the GLUT utility toolkit #else #include <GL/gl.h> // definitions for GL graphics routines #include <GL/glu.h> // definitions for GL input device handling #include <GL/glut.h> // deginitions for the GLUT utility toolkit #endif #include <iostream> // definitions for standard I/O routines #include <cmath> // definitions for math library using namespace std; #define WINDOW_WIDTH 800 // window dimensions #define WINDOW_HEIGHT 600 #define RADIUS 40 // wheel radius #define PI 3.1415926536 #define CIRC_INC (2 * PI / 30) #define STARTX (WINDOW_WIDTH)/2 #define STARTY (GROUND_HT)+RADIUS #define GROUND_HT 100 #define RAMP_STARTX 266 #define NONE 0 #define CREATED 1 #define MOVING 2 #define LOCKED 3 #define ROLLING 4 #define GRAVITY 10 // Global values float wheel_x; float wheel_y; float x_inc; float y_inc; float x_speed; float y_speed; float ramp_y; int wheel_status; static float x = WINDOW_WIDTH / 2; static float y = WINDOW_HEIGHT - RADIUS; // Draw a filled circle with center at position (wheel_x, wheel_y)

Step-by-step explanation:

You might be interested in
The last one, please answer
marin [14]

Answer:

the answer will be one times ten raised to the power five

<h3>Step by step explanation:</h3>

3 0
3 years ago
Read 2 more answers
Write an equation of the line that passes through the point (2,3) and is perpendicular to the line x = -1
omeli [17]

Answer:

y = 3

Explanation:

Any equation of a line that is written as x = # (meaning x equaling whatever number) is vertical on the graph. Therefore, x = -1 is a vertical line. And since x equals -1, all the points on the graph must have an x-value of -1.

We need to find a line that is perpendicular to it - and what would be perpendicular to a vertical line would be a horizontal line. Horizontal lines are represented by the equation y = # (meaning y equaling whatever number). Whatever number is written there is the y-value of all the points the horizontal line intersects.

We know that the line has to pass through (2,3). Therefore, take the y-value of that point - which is 3 - giving us y = 3.

8 0
3 years ago
Read 2 more answers
A.10D Simplify the expression<br> (x - 3)2
gulaghasi [49]

Answer:

2x - 6

Step-by-step explanation:

(x-3)2

2( x ) = 2x

2( - 3 ) = - 6

2x - 6

3 0
3 years ago
Read 2 more answers
Which statement is true?
sleet_krkn [62]

Answer:

C would be your answer!

Step-by-step explanation:

5 0
3 years ago
Can someone help me please?
katrin2010 [14]

Answer:

120,000-30,000=$90000 in bonds or $4500 profit.

Step-by-step explanation:

4 0
3 years ago
Other questions:
  • Which of the following is the statement of the triangle inequalty thegem
    5·2 answers
  • Is y = -x + 6 and 10y + x = -100 Parallel perpendicular or neither
    5·1 answer
  • HELP ME PLEASE THANK U
    5·1 answer
  • Solve 8k - (3-8k) Thank you​
    6·2 answers
  • A perpendicular bisector to is drawn through point C and extended to point D.
    6·1 answer
  • What is the answer to 7w² + 25-2w
    10·1 answer
  • select the procedure that can be used to show the converse of the pythagorean theorem using side lengths chosen from 6cm, 9cm, 1
    14·1 answer
  • Create and solve a 2 step with subtraction and multiplication Also, x = 9
    13·1 answer
  • A brand of uncooked spaghetti comes in a box that is a rectangular prism with a length of 9 inches, a width of 2 inches, and a h
    5·1 answer
  • What was the distance between the deck and the ocean's surface at 1 p.m.? Which was higher, the deck or the ocean ?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!