Write the program which reads two strings

Assignment Help Programming Languages
Reference no: EM1372420

Write a program that reads 2 strings, age (as a 4 bit binary number) followed by a first name from the keyboard then converts the age from binary to decimal and prints out the age in decimal followed by the first name in lower case letters.

You need to use keyboard.next(); method to read a word from the keyboard where this method returns a string. Need to know how to convert a char to an int. Use int n = (int) c - 48.

Reference no: EM1372420

Questions Cloud

Why cost and revenue curves simulation : Some businesses will examine either pricing structure and modify it in order to maximize revenue, either by raising or lowering price. Cost and Revenue Curves simulation and this week's readings could organization you have chosen lower prices to in..
What is the ratio of the electrostatic force : Three identical conducting spheres initially have following charges: sphere A, 5Q; sphere B, -7Q; and sphere C, 0. Spheres A and B is fixed in place, with a center-to-center separation that is much larger than the spheres.
Cultural viewpoint-cultural differences : Discuss how appreciating cultural diversity affects peoples' ability to communicate effectively in the context of a multinational corporation or an international nonprofit agency. Feel free to add your own experiences as well as quoting others.
What premium he pay and what will be his expected utility : Suppose he is offered fair insurance with a $3000 deductible. What premium will he pay and what will be his expected utility with insurance.
Write the program which reads two strings : Write the program which reads 2 strings, age (as a 4 bit binary number) followed by first name from keyboard then converts age from binary to decimal and prints out age in decimal.
What is velocity of the two objects after collision : A girl on a sled coasts down a hill. Her speed is 7.60 m/s when she reaches level ground at the bottom. The coefficient of kinetic friction between sled's runners and the hard, icy snow is 0.04, and the girl and sled together weigh 644N.
Analyze the impact on terms of trade : Japan primarily exports manufactured services, while importing raw materials such as food and oil. Analyze the impact on Japan's terms of trade of the following events:
Explain by how much does the carrier lengthen : A flight attendant pulls her 63N flight bag a distance of 308m along a level airport floor at a constant velocity. The force she exerts is 45N at an angle of 57° above horizontal. Find the work she does on flight bag.
What quantity of pizzas demanded soared : Quantity of pizzas demanded soared following week from 1 pie an hour to 100 pies an hour. What was price elasticity of demand for Domino's pizza.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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