Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

Create a class that includes a data member that holds a “serial number” for each 

object created from the class. That is, the first object created will be numbered 1, the 

second 2, and so on. To do this, you’ll need another data member that records a count 

of how many objects have been created so far. (This member should apply to the class 

as a whole; not to individual objects. What keyword specifies this?) Then, as each 

object is created, its constructor can examine this count member variable to determine 

the appropriate serial number for the new object. Add a member function that permits 

an object to report its own serial number. Then write a main() program that creates 

three objects and queries each one.



Project Description

 

There are two main systems for measuring distance, weight and temperature, the Imperial System of Measurement and the Metric System of Measurement. Most countries use the Metric System, which uses the measuring units such as meters and grams and adds prefixes like kilo, milli and centi to count orders of magnitude. In the United States, we use the older Imperial system, where things are measured in feet, inches and pounds.

 

 

Write a program that shows the following menu options and lets the user to convert from Metric to Imperial system:

 

Converter Toolkit

--------------------

   1. Temperature Converter

   2. Distance Converter

   3. Weight Converter

   4. Quit

 

·      If the user enters 1, the program should ask for the temperature in Celsius and convert it to Fahrenheit

 

·       If the user enters 2, the program should ask for the distance in Kilometer and convert it to Mile

 

·       If the user enters 3, the program should ask for the weight in Kilogram and convert it to Pound

 

·       If the user enters 4, the program should end.

 

 

Project Specifications

 

Input for this project:

·       the user must enter an number to select a menu option

·       the user must enter temperature in Celsius

·       the user must enter distance in Kilometer

·       the user must enter weight in Kilogram

·       the user must enter a country name

Input Validation: 

·       Do not accept a number outside the range of 1 through 4 for the menu option. Be sure to display appropriate error message if the input is invalid.

·       Do not accept negative numbers for distance and weight. Be sure to display appropriate error message if the input is invalid.

 

 

Output: The program should display the following:

·       a menu for Converter Toolkit

·       temperature in Fahrenheit, distance in miles or weight in pounds

·       a country name

·       Programmer’s full name

·       project number

·       a due date

 

Processing Requirements

 

1.  The program should use at least one selection control structure (if – else statement)

2.  Be sure to convert as specified. For example, convert temperature from Celsius to Fahrenheit, not the other way around.

3.  Use the following for converting input:

·       1 kilometer = 0.6 mile,

·       1 kilogram = 2.2 pounds,

·       The formula for converting Celsius degree to Fahrenheit is:

F = (9/5)*C + 32 where F is the temperature in Fahrenheit and C is the temperature in Celsius

4.  Convert temperature to a whole number such as 78, distance to two positions after decimal point (for example 84.56) and weight to one position after decimal point (For example 121.6).

 

 

 

 

 

 

 

1. 300 runners took part in the Spar Women’s Race. Their times in minutes are

stored in one array, their competition number in a second parallel array and

their names and initials in a third parallel array. Using a bubble sort, sort these

arrays according to their times, with the fastest time first, and the slowest last.

Remember to swap the names in the names array and the competition number

in the compNum array along with the values in the time array. Then display the

competition number and the name of the fastest 3 athletes.



write a program uses the input function to read a string an int and a float as input from the keyboard.


For all the videos, represent the number of views in multiples of thousands.

For example, if the number of views of a video is 17,200, it is represented as 17.2 in the output.

Note:

  • Sort the output in the descending order ofno_of_views_in_thousands, and then in the alphabetical order ofname



Table: video

video_id	name	duration_in_secs	published_datetime	no_of_views	   channelid
1000	Getting My 
         Driver's          3652           2011-12-05 19:00       10619        367
        |Lele Pons  

1001	Apple iPhone 
        X Review:          4556	         2021-01-19 20:12	    140012	      362
       The Best Yet!	

1002   Victoria Beckham
        Gives Strangers 
        Fashion Advice      836	         2021-01-19 20:12	    75609	      353
       for $2 in Central 
       Park | Vanity Fair	

1008	You, but in emojis.
        (YIAY #375)	         3874	     2021-01-19 20:12	    16469	      352

1009	100 People Hold 
       Their Breath for as   2885	     2015-05-17 19:32	    272102	      354
       Long as They Can	     

1010	Luke Bryan - Hooked
          On It (Audio)	     2106	     2016-02-10 12:32	    184471	      366

1011	The perfect ice - 
          Ice boats on       2549	     2020-07-10 15:32	    108047	      352
           Lake Geneva	

1012	5 Days Of Wearing 
        DIY Makeup | Try     3172	     2018-11-05 08:32	    178623	      358
       Living With Lucie 
        | Refinery29	

1013	Idiot's Guide to 
      Japanese Squat Toilets  709	     2009-08-05 11:32	    44293	      356

1014	UCLA men's basketball
         players discuss       661	     2017-04-17 17:32	    76223	      359
          arrests in China	

1015	Surprise After 
      Surprise | October Vlog  3288	     2012-08-07 11:32	    132277	      355

1016	Canada Soccer's Women's
          National Team v USA 
      International Friendly    1661	 2010-11-05 11:32	    239292	      356
      LIVE from Avaya Stadium, 
             San Jose	

1017	F The Prom (2017) 
       |Official Trailer HD	    3327	 2019-12-17 17:32	    51052	      359
 
1018	Walking while black	    2868	 2016-02-10 15:32	    281085	      352

1019	Vostok Brompton Beach 
                Ride	        2022	 2016-04-05 19:00	    204704	      367

1020	SHOPPING FOR NEW FISH!! 3496	 2021-01-19 20:12	    294429	      359

1021	Paramore: Fake Happy 
           [OFFICIAL VIDEO]	    1397	 2015-07-05 19:00	    245138	      368

1022	Howard Stern: George 
      Takei Talks About Harvey 
        Weinstein and Sexually  776	     2021-01-19 20:12	    35875	      360
                Assault	

1023	Tony Hawk Answers 
      Skateboarding Questions   4476	 2017-02-17 19:32	    143404	      354
           From Twitter |
        Tech Support | WIRED	

1024	Kimbra - Top of the 
        World (Official Music   3243	 2015-01-05 19:00	    220673	      368
               Video)	


Expected Output Format

video_id	name	no_of_views_in_thousands
   ...	     ...	         ...








Get the ids of all the channels that have uploaded at least 50 videos.

Note:

  • Sort the output in the ascending order of the channel_id

Table: Movies

video_id	name	duration_in_secs	published_datetime	no_of_views	   channelid
1002   Victoria Beckham
        Gives Strangers 
        Fashion Advice      836	         2021-01-19 20:12	    75609	      353
       for $2 in Central 
       Park | Vanity Fair	
	
1007	DIY - Simon's Cat  
       |NEW BLACK & WHITE!	 1365	     2012-09-07 11:32	    106271	      355

1008	You, but in emojis.
        (YIAY #375)	         3874	     2021-01-19 20:12	    16469	      352

1009	100 People Hold 
       Their Breath for as   2885	     2015-05-17 19:32	    272102	      354
       Long as They Can	     

1010	Luke Bryan - Hooked
          On It (Audio)	     2106	     2016-02-10 12:32	    184471	      366

1011	The perfect ice - 
          Ice boats on       2549	     2020-07-10 15:32	    108047	      352
           Lake Geneva	

1012	5 Days Of Wearing 
        DIY Makeup | Try     3172	     2018-11-05 08:32	    178623	      358
       Living With Lucie 
        | Refinery29	

1013	Idiot's Guide to 
      Japanese Squat Toilets  709	     2009-08-05 11:32	    44293	      356

1019	Vostok Brompton Beach 
                Ride	        2022	 2016-04-05 19:00	    204704	      367

1020	SHOPPING FOR NEW FISH!! 3496	 2021-01-19 20:12	    294429	      359

1021	Paramore: Fake Happy 
           [OFFICIAL VIDEO]	    1397	 2015-07-05 19:00	    245138	      368

1022	Howard Stern: George 
      Takei Talks About Harvey 
        Weinstein and Sexually  776	     2021-01-19 20:12	    35875	      360
                Assault	

1023	Tony Hawk Answers 
      Skateboarding Questions   4476	 2017-02-17 19:32	    143404	      354
           From Twitter |
        Tech Support | WIRED	

1024	Kimbra - Top of the 
        World (Official Music   3243	 2015-01-05 19:00	    220673	      368
               Video)	

1025	Aly Raisman On Dr. 
      Larry Nassar’s Medical 
      Treatment: I Didn’t Know  2978	 2014-12-17 19:32	     93272	      354
      It Was Abuse | Megyn Kelly 
             TODAY	

1026	When Someone Has A 
     Crush on You | Lilly Singh	 959	 2021-01-19 20:12	     139481	      360

1051	Demi Lovato - Sorry 
   Not Sorry in the Live Lounge	 3929	 2021-01-19 20:12	     265864	      365


Expected Output Format

 channel_id
     ...






What are the di±erences of handling Socket and ServerSocket ?


create a program in python and the output is this:


example output:


User Registration

Enter Desired Username: carloPogi

Enter Desired Password: iloveyou

Re-type Password: iloveyou


Login Form

Enter Username: carloPogi

Enter Password: iloveyou


Access Completed


dynamically allocate array size of 10 integer check for the duplicate etntry, if present print the no of duplicate entry for every element remove the duplicate entry and reallocate the memory


Get the number of male and female premium users in the platform.


Table: USER

user_id	   name	         gender	age	country	    premium_membership
2000	John White	       M	63	AUSTRALIA	      1
2001	John Andrews	   M	67	AUSTRALIA	      1
2002	April Robinson	   F	60	SRILANKA	      1
2003	Kathy Ryan	       F	81	SRILANKA	      0
2004	Megan Bradshaw	   F	53	AUSTRALIA	      1
2005	Melissa Sullivan   F	45	BANGLADESH	      1
2006	Amber Smith	       F	97	BANGLADESH	      0
2007	Sara Higgins	   F	85	ENGLAND	          1
2008	Robert Taylor	   M	68	AMERICA	          0
2009	William Wagner	   M	16	AMERICA       	  0
2010	Herbert Mcdowell   M	97	BANGLADESH    	  1
2011	Brett Carter	   M	26	AUSTRALIA	      0 
2012	Brian Knight	   M	81	AUSTRALIA	      1
2013	Jennifer Johnson   F	46	SRILANKA	      0
2014	Clarence Gonzales  M	92	SRILANKA	      0

there is still having lot of data in the table, but I just gave the limited data for example to get the solution related to question.

and the expected output format should be as follows:


Table:

gender	total_users
   F	  ...
   M	  ...




LATEST TUTORIALS
APPROVED BY CLIENTS