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

  Characters of data stored in an array

Write a program that sends 1000 characters of data stored in an array from the DB-12 board to the PC every second via the SCI1 port. Use RTI interrupts to keep time.

  Determine the mass flow rates at the two outlets

Determine the mass flow rates at the two outlets (flue gas and fly ash) when 10 kg/s of flue gas and ash mixture enters this unit. Also determine the amount of fly ash collected per year.

  What step is a dbms chosen and what is the process

A description of the tasks and mechanisms that allow you to examine the existing system (a minimum of 3 different tools should be described)

  Internal controls and capital play within a competitive

What role do internal controls and capital play within a competitive firm? How can a firm better utilize and manage its assets and liabilities? What role do regulations play within the marketplace?

  Associative classification and discriminative frequent

Compare and contrast associative classification and discriminative frequent pattern-based classification. Why is classification based on frequent patterns able to achieve higher classification accuracy in many cases than a classical decision-tree ..

  Create a chart showing the expenses in the categories listed

In this exercise, you are going to create a chart showing the expenses in the categories listed below. You first need to calculate the data in a summary section of your spreadsheet.

  Rivalry and threat of substitutes

Using two of porter's five forces (use rivalry and threat of substitutes), defend why the competition amongst Coke and Pepsi is high

  Prepare a list of threat categories

Contingency Planning Paper Address the following items: Assume that you have been hired by a small veterinary practice to help them prepare a contingency planning document. The practice has a small LAN with four computers and Internet access. Prepare..

  What is the value of the verification tag

The following is a dump of an SCTP general header in hexadecimal format

  Definition to represent a race result for a competitor

No longer in the race as they may have been pulled due to injury, disqualified for violating rules during the race, or the time they took to race in seconds with accuracy to 2 decimal places. Design a data definition to represent a race result for..

  Extend the file downloading protocol

How does the extra information in your revised protocol protect against arrival of late packets from prior connection incarnations, and sequence number wraparound?

  Recode the hotelroom class programming

Recode the HotelRoom class programming Problem 4, Section 10.3 as follows. Replace the string room number by a character array that stores a 3-character room number.

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