Interstate highway numbers

Assignment Help Basic Computer Science
Reference no: EM132184856

Interstate highway numbers

Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 90) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two-digits. Thus, the 405 services the 5, and the 290 services the 90.

Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west.

If the input is 90, the output is: The 90 is primary, going east/west.

Starting code:

#include <iostream>

using namespace std;

int main() {

  int highwayNumber;

  cin >> highwayNumber;

  /* Start code here. */

  return 0;

}

Reference no: EM132184856

Questions Cloud

Monthly average for the year : Once all 12 months data is entered then loop through the array and calculated the total sales for the year and the monthly average for the year.
Control of the council passed from conservatives to labor : Following local elections in May of the same year, control of the Council passed from the Conservatives to Labour.
Experiences networking in new cultural context : To help you carefully reflect on your experiences networking in a new cultural context,
Presentation-the content or the design : 1. Which is more important about a presentation-the content or the design? Why?
Interstate highway numbers : Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 90) go east/west.
Utilitarian ethics when compared with ethics of duties : What are two advantages of a utilitarian ethics when compared with an ethics of duties?
One statement to compute : On a piano, each key has a frequency, and each subsequent key (black or white) is a known amount higher. Ex: The A key above middle C key has
Analyzing the organization of your current workplace : In this assessment you will analyzing the organization of your current workplace.
What product would you like to use to explore supply chain : What product would you like to use to explore the supply chain, and why did you select that specific product? Explain.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a simple server based chat application

If there is a server failure, the client should detect this and allow the human user to connect to another server.

  Describe the shape of the distribution

Without actually finding the mean, would you expect it to be higher or lower than the median? Explain.

  What is the purpose of a cert

List and describe four vulnerability intelligence sources. Of those that you listed, which seems the most effective? Why?

  Personal or professional decision-making

When have you had to consider risk and return in personal or professional decision-making?

  Deposited at the end of every six months

Suppose $693 is deposited at the end of every six months into an account earning 6.05% compounded semi-annually. If the balance in the account four years after the last deposit is to be $30 600.00, how many deposits are needed? Please show all wo..

  Forest point construction at forest point construction

Forest Point Construction At Forest Point Construction, your boss says that he can estimate the total project time based on his personal experience. You are trying to convince him that he should use project management techniques to handle a comple..

  Discuss reasons and methods for accessing a remote computer

Discuss the reasons and methods for accessing a remote computer

  Program using a loop that multiplies two non-negative number

Write code to implement the expression: A= (B + C) * (D - E) on 3-, 2-, 1- and 0-address machines. In accordance with programming language practice, computing the expression should not change the values of its operands.

  Difference between project management and sales manager job

How is the relationship between the operations manager and the sales staff different from the relationship between a project manager and the project team members?

  Role of a gatekeeper or voip server in a voip

Discuss the importance, functionality, and role of a GateKeeper or VoIP server in a VoIP -deployed network?

  What are the true reasons that trump started the us

What are the true reasons that Trump started the US- china trade war currently? Is it because China's development has threatened US's position

  Write a c program that accepts a list of numbers from user

When the program is run, the prompts and responses will look like the following:

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd