Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Sum of the series

Write a program to find the sum

S of the series where S = x - x^3 + x^5 + ....... upto N terms.Input

The first line of input is an integer

X. The second line of input is an integer N.Explanation

If we take

X value as 2 in the series upto 5 terms.Then the series is 2 - 23 + 25 - 27 + 29

So, the output should be

410.


Given a sentence S, write a program to print the frequency of each word in S. The output order should correspond with the word's input order of appearance.

Input


The input will be a single line containing a sentence S.

Output


The output contains multiple lines, with each line containing a word and its count separated by ": " with the order of appearance in the given sentence.


Temperature Conversion

You are given the temperature T of an object in one of Celsius, Fahrenheit, and Kelvin scales.

Write a program to print T in all scales viz Celsius, Fahrenheit, and Kelvin.

Formula to convert from Fahrenheit F to Celsius C is C = (F - 32) * 5 / 9.

Formula to convert from Kelvin K to Celsius C is C = K - 273.

Here "C", "F", "K" represent that the temperature scale is in Celsius, Fahrenheit and Kelvin scales respectively.

The input contains the temperature (a number) and the unit of the temperature scale (C, F, K) without any space.

The output contains temperature in Celsius, Fahrenheit and Kelvin scales in each line in the format similar to input and the value of the temperature is rounded to 2 decimal places.


Hillar Furniture Enterprise is a furniture store owned by Dr. Hillar Addo of AIT. The materials manager of this company maintains a list of suppliers for each of the materials items purchased by the company from outside vendors. The following table shows the essential data required for this application. Attribute Name Material_ID Material_ Name Unit_of_Measure Standard_Cost Vendor_ID Vendor_name Unit_price Terms_Code Terms Sample Value 3792 Hinges 3” locking Each GHC 5.00 V300 Apex Hardware GHC 4.75 1 COD a. Identify the functional dependencies for this data. You may assume the following: 6  Each material has one or more suppliers. Each supplier may have supply one or more items or may not supply any items.  The unit price for a material may vary from one vendor to another  The terms of a code for a supplier uniquely identifies the terms of a sale (e.g. code 2 means 10% net 30 days, etc.). b. Convert your data into a set of 3NF relations, identifying all the primary and foreign keys


Define the following functions,

f(x) = 1 / 1 + x2

and g(x) = x − x2

Produce plots of the graphs of each of f ◦ g and g ◦ f. You should choose settings (eg domain, number of samples) to make a smooth plot which displays the key features.

Define the following functions,

f(x) = 1 / 1 + x2

and g(x) = x − x2

Produce plots of the graphs of each of f ◦ g and g ◦ f. You should choose settings (eg domain, number of samples) to make a smooth plot which displays the key features - try experimenting with different settings to work out what looks good.


Identify and address concerns on virtual platforms
Preparing and sharing of management of virtual platform report

1.Imagine a tollbooth with a class called toll Booth. The two data items are a type unsigned int to hold the total number of cars, and a type double to hold the total amount of money collected. A constructor initializes both these to 0. A member function called payingCar ( ) increments the car total and adds 0.50 to the cash total. Another function, called nopayCar ( ), increments the car total but adds nothing to the cash total. Finally, a member function called displays the two totals. 



Translate each infix expression into its equivalent prefix and postfix expression.

i) (A+B) / (D-C) ;

ii) (A+BꜛD)/(E-F)+G ;

iii) A *(B+D)/E(G+H/k)


 How to connect Java application with Oracle and Mysql database using JDBC? Explain the complete procedure to connect the form of your question  #228424 into your database using Oracle or Mysql. [Please write the reason for writing that line at the end of each line in the form of comments (for coding).]


LATEST TUTORIALS
APPROVED BY CLIENTS