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]
2 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]2 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 time David filled up his truck with gas, he paid $27.44 for 7 gallons. This time, he needs 15 gallons. If the price is
Tema [17]
The last time David filled up his truck with gas, he paid $27.44 for 7 gallons. This time, he needs 15 gallons. If the price is the same, how much will he pay?
7 0
3 years ago
ΔMNO was dilated, then _____________, to create ΔYHQ. rotated reflected translated dilated
Anastasy [175]

Answer:

rotated

Step-by-step explanation:

bc I said so

6 0
2 years ago
Read 2 more answers
Choose the equation that represents the graph below:
Zolol [24]
Y = x + 3 is the answer

the y-intercept is 3, so the answer should have a "+ 3" in it

when you are trying to determine the gradient (the x), you can use two methods

first method:
picture/sketch the line. If the line is going upwards (from left to right), it's positive. If the line is going downwards (from left to right), it's negative. However, this method only works for this question, you should try using the second method more

second method:
use the formula: (y - y) / (x - x)
So, you use the y from one of the brackets and subtract the y from the other bracket. Then, you put it over the x ,from the same bracket as the first y, and subtract the x from the second bracket. If you are confused, look at the picture. (Sorry for the messy explanation)

7 0
3 years ago
Read 2 more answers
Which of the following polygons can form a regular tessellation?
Ksju [112]

Answer:

A

Step-by-step explanation:

A

7 0
3 years ago
Write the fraction 6/6 as a sum of fractions three different ways
sammy [17]
1, 3/3, 420/420 why such a wierd qustion
5 0
3 years ago
Read 2 more answers
Other questions:
  • Algebra 2 help please!!!!!
    11·1 answer
  • Divide multi-digit numbers
    10·1 answer
  • A new 2018 Honda Accord was valued at $25,000. Itdeprecistes at a rate of 13% a year what is the value in 2034
    8·1 answer
  • SOMEONE PLEASE JUST ANSWER THIS FOR BRAINLIEST!!!
    8·1 answer
  • What is 5x8 ÷ 3x4<br><br> by order of operations
    9·1 answer
  • Please help me correct my answers!! im really confused
    13·1 answer
  • Y−2x=4
    7·1 answer
  • You bought some new fish and need the tank ready. You fill the tank with water and start running the filter system.You check the
    15·1 answer
  • 32 is 4 more than twice a<br> number. What is the number?
    10·1 answer
  • Priya's favorite singer has made 6 albums containing 75 songs in total. Priya wants to make a playlist of 10 of
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!