Write a program that finds the greatest of given 5 numbers

Assignment Help Basic Computer Science
Reference no: EM131341043

1. Write a program that gets the coefficients a, b and c of a quadratic equation: ax 2 + bx + c, calculates and prints its real roots (if they exist). Quadratic equations may have 0, 1 or 2 real roots.

2. Write a program that finds the greatest of given 5 numbers.

3. Write a program that, depending on the user's choice, inputs int, double or string variable. If the variable is int or double, the program increases it by 1. If the variable is a string, the program appends "*" at the end. Print the result at the console. Use switch statement.

Reference no: EM131341043

Questions Cloud

Machine beyond the expiration of the lease : Assume that Big Sky Mining has no use for the machine beyond the expiration of the lease. The lease has an estimated residual value of $250,000 at the end of the 4th year.
Calculate the value of inventory as at 30 september 2005 : At 30 September 2005 Ballata had the given inventories:- Calculate the value of inventory as at 30 September 2005.
Why were mao zedong and his communist red army defeat : Why were Mao Zedong and his communist Red Army able to defeat Chiang Kai-shek and his Nationalist Army in 1948-49 and establish a Marxist-Communist-Maoist type government in China?
What are three of the problems facing latin america today : What are three of the problems facing Latin America today? Give sufficient details to make your case clear.Global interdependence has made some things better and some things worse. Describe three world trends which improve life and three which are..
Write a program that finds the greatest of given 5 numbers : Write a program that, depending on the user's choice, inputs int, double or string variable. If the variable is int or double, the program increases it by 1. If the variable is a string, the program appends "*" at the end. Print the result at the ..
Write a program that finds the biggest of three integers : Write a program that asks for a digit (0-9), and depending on the input, shows the digit as a word (in English). Use a switch statement.
Program that reads an integer number n from the console : Write a program that reads an integer number n from the console and prints all numbers in the range [1...n], each on a separate line.
Define the disorder causes and symptoms : Define the disorder; causes and symptoms. Briefly discuss the historical and theoretical perspectives of this disorder and Discuss the cultural aspects and influences of this case
Program that prints its perimeter and area : A given company has name, address, phone number, fax number, web site and manager. The manager has name, surname and phone number. Write a program that reads information about the company and its manager and then prints it on the console.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Dss inc. is an electronics company with production facility

DSS Inc. is an electronics company with production facilities located in Atlanta, Boston, and Chicago. Components produced at these facilities may be shipped to the firm's regional warehouses that are located in Edison and Fargo.

  Grow at long-term growth rate

Calculate the per share value in early 2015 assuming that residual earnings will grow at long-term growth rate of 4%, the average GDP growth rate, after 2016.

  An ethernet lan to connect three pcs

ABC was launched as a retail dive shop with 10 employees in Turkey by Mr Beans. As a small business owner, Beans wanted to offer the e-commerce capabilities of a large firm using a small company's budget. Within a year, he had installed an Ethernet L..

  Created a database and a db schema

Created a database and a DB Schema It provides details of table, relationships and keys incorporating the profile detail.

  Describe a specific method of reward or discipline

Describe a specific method of reward or discipline that you believe to be best in motivating ethical and productive behavior in the workplace. How is such applied or communicated throughout an organization?

  What is the resulting upper triangular matrix

Carry out Gaussian elimination in its simplest form for this problem. What is the resulting upper triangular matrix? Proceed to find the solution by backward substitution.

  Create a variation of the plot look () code

Create a variation of the plot Look () code that produces the plot

  Predict the number of physician office visits

Estimate the Poisson regression model to predict the number of physician office visits. Use all of the explanatory variables in a linear form without any transformations.

  Display a calendar for a specified month

You also can run the program without the year. In this case, the year is the current year. If you run the program without specifying a month and a year, the month is the current month.

  Find the distance between the 757 and the tower

The 757 is 20,000 feet from the ground, and the angle of depression to the tower is 6°. Find the distance between the 757 and the tower.

  Literature for information on position of cko

Investigate literature for information on position of CKO and find out an approximate percentage of firms with knowledge management initiatives which have CKOs.

  Supporting activity-social media presence

Supporting Activity: Social Media Presence Research and find examples of how your organization (past, present or one you want to join) achieves its social media presence, and describe how the organization is using social media

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