Posts

Showing posts from May, 2018

C/C++/JAVA/Python programming project with source code | "MEDICINE REMINDER" project.

Image
Source code #include <stdio.h> #include <conio.h> #include <stdlib.h> void cough(); void Heart_Disease(); void Headache(); void flu(); int main() {     int age_entered;     int age=15;     int choice;     char option; do{     printf("* WELCOME TO THE MEDICINE REMINDER***\n\n");     printf("Please select your medical problem from the list below\n\n");     printf("1-Cough\n2-Heart Disease\n3-Headache\n4-Flu\n ");     scanf("%d",&choice);           switch(choice) {     case 1: cough();break;                 case 2: Heart_Disease();break;                 case 3:                 Headache();break;                 case 4:                 flu();break;                 case 5: system("cls"); printf("\n~~~~~~~~~~~~~ THANK YOU ~~~~~~~~~~~~\n"); printf("\n*******FOR USING OUR SERVICE********\n\n"); exit(0); break; defaul

How to write a application for part-time job | Application for part time job sample

To,     The Registrar     Arizona State University     Tempe, USA.     Through: Head, Department of CSE.     Subject: Application for the part-time job. Dear sir,      With due respect, I would like to state that, I am Md. Azizul Hakim, the regular student of the Department of Computer science and engineering (Id: 6033). Now for several reasons, my family is in a great financial crisis and it's quite impossible for my family to bear my educational expenses.  For this reason, I request you to give me the opportunity to join at Arizona State as a part-time employee. So that I can continue my education smoothly. I, therefore, hope that you would be kind enough to grant my application and oblige thereby. Yours faithfully, Md.Azizul Hakim

How to print number from 1 to N in prolog.

Write a prolog rule to print from 1 to N number when called.  Source code: print_numbers(10) :- write(10), !. print_numbers(X) :- write(X), nl, Next is X + 1, print_numbers(Next). Code description: Here, "print_numbers(10)" is a statement where 10 is the limit of the number. ":-" is represent an "if" condition in prolog. "write(X)" means it will show the variable value, Capital "X" is a variable where values are stored.  "Next" is used for the next value and here, "Next is X + 1" means it starts with the "X" variables value and everytime it incremented by 1. Finally, "print_numbers(Next)" used for showing the values of numbers from start value to end value.For here, end value is 10.

Real Madrid vs Liverpool: Champions League final 2018 prediction,start t...

Image

when I type "1" it is displayed as "0.01" in Microsoft excel

Image

URI Online Judge | 1020 Age in Days Solve with source code

Image
URI Online Judge | 1020 Age in Days Adapted by Neilor Tonin, URI  Brazil Timelimit: 1 Read an integer value corresponding to a person's age (in days) and print it in years, months and days, followed by its respective message “ano(s)”, “mes(es)”, “dia(s)”. Note: only to facilitate the calculation, consider the whole year with 365 days and 30 days every month. In the cases of test there will never a situation that allows 12 months and some days, like 360, 363 or 364. This is just an exercise for the purpose of testing simple mathematical reasoning. Input The input file contains 1 integer value. Output Print the output, like the following example. SOLVE                               N = int(input())                                year=N//365                                N%=365                                mon=N//30                                N%=30                                day =N                                print(year,"ano(s)")            

URI Online Judge | 1019 Time Conversion Solve with source code

Image
URI Online Judge | 1019 Time Conversion Adapted by Neilor Tonin, URI  Brazil Timelimit: 1 Read an integer value, which is the duration in seconds of a certain event in a factory, and inform it expressed in hours:minutes:seconds. Input The input file contains an integer N. Output Print the read time in the input file (seconds) converted in hours:minutes:seconds like the following example. SOLVE                          N = int(input())                          hour = N//3600                          N = N%3600                          minu = N // 60                          N %=60                          sec=N                          print("%d:%d:%d"%(hour,minu,sec))

URI Online Judge | 1018 Banknotes Solve with source code

Image
URI Online Judge | 1018 Banknotes Adapted by Neilor Tonin, URI  Brazil Timelimit: 1 In this problem you have to read an integer value and calculate the smallest possible number of banknotes in which the value may be decomposed. The possible banknotes are 100, 50, 20, 10, 5, 2 e 1. Print the read value and the list of banknotes. Input The input file contains an integer value N (0 < N < 1000000). Output Print the read number and the minimum quantity of each necessary banknotes in Portuguese language, as the given example. Do not forget to print the end of line after each line, otherwise you will receive “Presentation Error”. SOLVE                       num = int(input())                        print(num)                        print('%d'%(num/100),'nota(s) de R$ 100,00')                        num%=100                        print('%d'%(num/50),'nota(s) de R$ 50,00')                        num%=50              

URI Online Judge | 1017 Fuel Spent Solve with source code

Image
URI Online Judge | 1017 Fuel Spent Adapted by Neilor Tonin, URI  Brazil Timelimit: 1 Little John wants to calculate and show the amount of spent fuel liters on a trip, using a car that does 12 Km/L. For this, he would like you to help him through a simple program. To perform the calculation, you have to read spent time (in hours) and the same average speed (km/h). In this way, you can get distance and then, calculate how many liters would be needed. Show the value with three decimal places after the point. Input The input file contains two integers. The first one is the spent time in the trip (in hours). The second one is the average speed during the trip (in Km/h). Output Print how many liters would be needed to do this trip, with three digits after the decimal point. SOLVE                              A = int(input())                              B = int(input())                              Fuel_Spent = (A*B)/12                              print("%

URI Online Judge | 1016 Distance solve with source code

Image
URI Online Judge | 1016 Distance Adapted by Neilor Tonin, URI  Brazil Timelimit: 1 Two cars (X and Y) leave in the same direction. The car X leaves with a constant speed of 60 km/h and the car Y leaves with a constant speed of 90 km / h. In one hour (60 minutes) the car Y can get a distance of 30 kilometers from the X car, in other words, it can get away one kilometer for each 2 minutes. Read the distance (in km) and calculate how long it takes (in minutes) for the car Y to take this distance in relation to the other car. Input The input file contains 1 integer value. Output Print the necessary time followed by the message "minutos" that means minutes in Portuguese. SOLVE                             distance = int(input())                              Time =distance*2                              print("%d minutos"%Time)

URI Online Judge | 1015 Distance Between Two Points solve with source code

Image
URI Online Judge | 1015 Distance Between Two Points Adapted by Neilor Tonin, URI  Brazil Timelimit: 1 Read the four values corresponding to the x and y axes of two points in the plane, p1 (x1, y1) and p2 (x2, y2) and calculate the distance between them, showing four decimal places after the comma, according to the formula: Distance = Input The input file contains two lines of data. The first one contains two double values: x1 y1 and the second one also contains two double values with one digit after the decimal point: x2 y2. Output Calculate and print the distance value using the provided formula, with 4 digits after the decimal point. SOLVE                         import math                          X1,Y1 = input().split()                          X2,Y2 = input().split()                          X1 = float(X1)                          X2 = float(X2)                          Y1 = float(Y1)                          Y2 = float(Y2)                         

URI Online Judge | 1014 Consumption solve with source code

Image
URI Online Judge | 1014 Consumption Adapted by Neilor Tonin, URI  Brazil Timelimit: 1 Calculate a car's average consumption being provided the total distance traveled (in Km) and the spent fuel total (in liters). Input The input file contains two values: one integer value X representing the total distance (in Km) and the second one is a floating point number Y  representing the spent fuel total, with a digit after the decimal point. Output Present a value that represents the average consumption of a car with 3 digits after the decimal point, followed by the message "km/l". SOLVE                              X = int(input())                               Y = float(input())                               ave = X/Y                               print("%.3f km/l"%ave)

URI Online Judge | 1013 The Greatest Solve with source code

Image
URI Online Judge | 1013 The Greatest Adapted by Neilor Tonin, URI  Brazil Timelimit: 1 Make a program that reads 3 integer values and present the greatest one followed by the message "eh o maior". Use the following formula: Input The input file contains 3 integer values. Output Print the greatest of these three values followed by a space and the message “eh o maior”. SOLVE                     A,B,S = input().split()                      A = int(A)                      B = int(B)                      S =int(S)                      P=max(A,B,S)                      print(P,"eh o maior")

why shows we’ve made changes to how YouTube Analytics shows deleted cont...

Image

Google Trends Updated SEOs SEMs Should Check It Out

Image

End of ABD era | AB de Villiers has decided to retire from all forms of ...

Image

Search English the daily star vocabulary part 1

Image
v  Accelerate => গতিবৃদ্ধি করা ( begin to move more quickly ) . Ex: The car accelerates quickly. v  Back & forth => এদিক ও দিক (backward and  forward).  Ex: The anxious man walked back                         &  forth in the room. v  Anxious => চিন্তিত ( typically with a feeling of  unease or worried). v  Campaign => অভিযান (confined to a  particular  area) Ex: The man’s campaign  included  months of  traveling and giving speeches. v  Damage => ক্ষতি ( awarded in compensation  for a loss ) Ex: Insurance company will pay  for  damages to the car. v  Gain => অর্জন (an increase in wealth or  resources) Ex: He wants to gain power. v  Haphazardly => এলোমেলোভাবে (at random)  Ex: The names of the committee were  chosen  haphazardly. v  Ignore => তুচ্ছতাচ্ছিল্য করা (refuse to take  notice of) Ex : They ignored our warnings. v  Earmark => আলাদাভাবে রাখা (designate for a  particular pur

Difference between Persistent HTTP and Nonpersistent HTTP

Persistent HTTP vs Nonpersistent HTTP: Difference between persistent and nonpersistent HTTP are given below : Persistent HTTP: Multiple objects can be sent over a single TCP  connection between client and server. As little as one RTT for all the referenced objects. HTTP/1.1 uses persistent  connections in default mode. Nonpersistent HTTP: At most one object is sent over a TCP connection. Requires 2 RTTs per object. HTTP/1.0 uses nonpersistent HTTP.

American Idol Season 16 Odds Gabby Barrett favorite to win finale

Image

Santa Fe High School Up to 10 dead in shooting at a Texas high school

Image

FIFA World Cup 2018 fixtures

Image
Group stages Thu June 14: Russia v Saudi Arabia (Group A) - Moscow (Luzhniki), 4pm Fri June 15: Egypt v Uruguay (Group A) - Ekaterinburg, 1pm Fri June 15: Morocco v Iran (Group B) - St Petersburg, 4pm Fri June 15: Portugal v Spain (Group B) - Sochi, 7pm Sat June 16: France v Australia (Group C) - Kazan, 11am Sat June 16: Argentina v Iceland (Group D) - Moscow (Spartak), 2pm Sat June 16: Peru v Denmark (Group C) - Saransk, 5pm Sat June 16: Croatia v Nigeria (Group D) - Kaliningrad, 8pm Sun June 17: Costa Rica v Serbia (Group E) - Samara, 1pm Sun June 17: Germany v Mexico (Group F) - Moscow (Luzhniki), 4pm Sun June 17: Brazil v Switzerland (Group E) - Rostov-on-Don, 7pm Mon June 18: Sweden v South Korea (Group F) - Nizhny Novgorod, 1pm Mon June 18: Belgium v Panama (Group G) - Sochi, 4pm Mon June 18: Tunisia v England (Group G) - Volgograd, 7pm Tues June 19: Colombia v Japan (Group H) - Saransk, 1pm Tues June 19: Poland v Senegal (Group H) - Moscow (Spartak

URI Online Judge | 1012 Area Solve with source code

Image
URI Online Judge | 1012 Area Adapted by Neilor Tonin, URI   Brazil Timelimit: 1 Make a program that reads three floating point values: A, B and C. Then, calculate and show: a) the area of the rectangled triangle that has base A and height C. b) the area of the radius's circle C. (pi = 3.14159) c) the area of the trapezium which has A and B by base, and C by height. d) the area of the square that has side B. e) the area of the rectangle that has sides A and B. Input The input file contains three double values with one digit after the decimal point. Output The output file must contain 5 lines of data. Each line corresponds to one of the areas described above, always with a corresponding message (in Portuguese) and one space between the two points and the value. The value calculated must be presented with 3 digits after the decimal point. SOLVE                       A,B,C = input().split()                         A = float(A)                         B = float(B)    

URI Online Judge | 1011 Sphere Solve with source code

Image
URI Online Judge | 1011 Sphere Adapted by Neilor Tonin, URI   Brazil Timelimit: 1 Make a program that calculates and shows the volume of a sphere being provided the value of its radius (R) . The formula to calculate the volume is: (4/3) * pi * R 3 . Consider (assign) for pi the value 3.14159. Tip: Use (4/3.0) or (4.0/3) in your formula, because some languages (including C++) assume that the division's result between two integers is another integer. :) Input The input contains a value of floating point (double precision). Output The output must be a message "VOLUME" like the following example with a space before and after the equal signal. The value must be presented with 3 digits after the decimal point. SOLVE                     R = int(input())                       pi = 3.14159                       VOLUME = (4/3) * pi * R*R*R                       print("VOLUME = %.3f"%VOLUME)