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

For Apple store services and apps(like games, videos, etc ): you can gain access if you are15years old or less and your parent has an Apple ID. If you are 16 years old or more you need to have your own Apple ID.

Write a program that uses short circuit logic to tell someone if they are legal to gain access to Apple store services. First ask them how old they are, whether they have an Apple ID or not, and whether their parent has an Apple ID or not.


Write a program that determines whether you can run for president. To run for president the constitution states: No Person except a natural born Citizen, or a Citizen of the South Africa(SA), at the time of the Adoption of this Constitution, shall be eligible to the Office of President; neither shall any Person be eligible to that Office who shall not have attained to the Age of thirty five Years, and been fourteen Years a Resident within the South Africa. Ask three questions of the user and use the guess and check pattern to determine if they are eligible to run for President.


The sum of the first n positive integers can be computed by the formula

sum(1..n) = 1 + 2 + 3 + 4 + · · · + n = n(n + 1)/2

Write a short Python program that computes the sum of the first 100 positive integers and prints it to the screen, using format specifiers when printing instead of converting each item to a string. Use variables to represent the 1, the 100, and the result of the computation. Your program must compute the 5050 value. You cannot just print the result to the screen. You must compute it first from the 100. The goal is for the output to look exactly the same.The output is as shown below:

sum(1..100) = 5050


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.Input


The first line of the input contain a temperature Value in one of Celsius, Fahrenheit, and Kelvin scales.Output



For example, if the given temperature Value is 25C then Celsius value is 25.0C, Fahrenheit value is 77.0F, and Kelvin value is 298.0K.

Sample Input 1

25C

Sample Output 1

25.0C

77.0F

298.0K




Day Name - 2


Given the weekday of the first day of the month, determine the day of the week of the given date in that month.


Input

The first line is a string D.

The second line is an integer N.

Output

The output should be a string.


Explanation

In the given example,


D = Monday. As the 1st of the day of the month is a Monday, it means the 7th and 14th of the month will be Sundays (A week has 7 days). So the 16th day (N = 16) of the month will be a Tuesday. So, the output should be


Tuesday.


Sample Input 1


Monday


16


Sample Output 1


Tuesday


Denominations - 2

The possible denominations of currency notes are 100, 50, 20 and 10. The amount

A to be withdrawn is given as input. Write a program to break the amount into minimum number of bank notes.InputThe first line of input is an integer A.Output

The output should be a string representing number of 100, 50, 20, 10 notes possible.

Explanation

In the given example amount

370, it can be written as370 = 3*(100) + 1*(50) + 1*(20) + 0*(10)


Then the output should be


100 Notes: 3

50 Notes: 1

20 Notes: 1

10 Notes: 0




Distinguish between two main categories of processor registers; and give examples to illustrate your answer.


Daily requirements of 70 g of protein, 1 g calcium, 12 mg iron, and 3000 calories are needed for a balanced diet. The following foods are available for consumption with the cost and nutrients per 100 g as shown.

 

Protein

(g)

Calories

Calcium

(g)

Iron

Cost

GH¢

Brown Bread

12

246

0.1

3.2

0.5

Cheese

24.9

423

0.2

0.3

2

Butter

0.1

793

0.03


1

Baked Beans

6

93

0.05

2.3

0.25

Spinach

3

26

0.1

2

0.25

 

The objective is to find a balanced diet with minimum cost.

(a) Formulate a linear programming model for this problem.

(b) Use solver to find optimal solution and sensitivity report.     


1)     Which of the following access modifier specifies that one or more declared programming elements are accessible from within the assembly that contains their declaration, not only by the component that

A)     ByRef

B)     ByVal

C)     Default

D)     Friend


How do I do code for the number of words in a sentence
LATEST TUTORIALS
APPROVED BY CLIENTS