Git Product home page Git Product logo

wheel-height-calculator's Introduction

Wheel Height Calculator

Basic and simple C++ terminal program for calculating automotive wheel assembly height

Usage

Compile and run the program.

The program will ask user input for tire width, sidewall aspect ratio, and rim diameter in inches, then it will calculate the wheel assembly height based on the user input. The program can also run with command line arguments.

Insight

An automotive wheel assembly consists of the wheel, and the tire. The full wheel assembly height or diameter then can be used for further calculations e.g the speed at a certain RPM in a certain gear.

A common way of representing modern tire sizes is XXX / YY R ZZ. One widely used example is the 205 / 55 R16 tire where:

205 is the tire width in millimeters,

55 is the ratio of the tire sidewall to the tire width,

16 is the wheel diameter in inches,

and R denoting that this is a radial tire.

The height of the wheel assembly consists of the diameter of the wheel and the sidewall surrounding the wheel. In the example:

The sidewall's height is 55% of the tire width: 205 * 55 / 100 = 112.75 mm

The wheel diameter is 16 inches: 16 * 25.4 = 406.4 mm

Since the sidewall is passed twice in the diameter measurement, it's multiplied by 2 in the calculation:

406.4 + 112.75 * 2 = 631.9 mm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.