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

using CSS Border Properties

Properties.

Use the below reference image link:

https://res.cloudinary.com/dfxicv9iv/image/upload/v1619085330/css-border-properties-output_a4ucou.png

Achieve the design by using CSS border

border-* properties. The * indicates the direction.Apply the border shorthand property with the width

5px, style solid, and hex color code #184b73 to the HTML button element with the class name border-shorthandResources

CSS Colors used:

#184b73

#ffffff


by using for...of loop.

Use the below reference image link:

https://assets.ccbp.in/frontend/content/dynamic-webapps/ce-3-1-3-for-of-loop-op.png.

Achieve the design using the

for...of loop to iterate over an array in the JS prefilled code.


Write a program that will input 20 values to array BSIT and to sum up the content of all even index. Print array BSIT and the sum of all even index.

Enter an integer: 20





20 plus 10 is 30.





20 plus 100 is 120.





20 plus 1000 is 1020.






A group of people are playing a game they are standing in a line, each carrying a card with a number on it. These numbers are given in the "A". One random number S is selected.

Find out new list of numbers after

S people are removed from left

S people are removed from right

Example [1,2,3] and S be 1

After removing from left [2,3]

After removing from right [1,2]

Output 23

        12



  1. identify the the program structure of using conditional statements, looping and functions in a C++ program;
  2. apply the conditional statements,looping and functions in C++ program applications;
  3. apply conditional statements, looping and functions in one C++ program.

Instruction: Using conditional statements, looping and functions, write an INTERACTIVE PROGRAM on BODY SYSTEMS.  Each student must have two questions about the BODY SYSTEM.


Sample Output

Select Body System:

  1. Respiratory System
  2. Nervous System
  3. Circulatory System


Enter Number of Body System: 1


Output:

Questions For Respiratory System:

  1. Question 1
  2. Question 2


Enter Number of Question: 1


Output:

Question 1:

Sample Question 1


Answer 1:

Sample Answer 1


The FizzBuzz Game

by CodeChum Admin

Let's play a game of FizzBuzz! It works just like the popular childhood game "PopCorn", but with rules of math applied since math is fun, right?


Just print out "Fizz" when the given number is divisible by 3, "Buzz" when it's divisible by 5, and "FizzBuzz" when it's divisible by both 3 and 5!


To give you direction:


  • Read the Input into a variable.


  • Now using the loop iterate in range 1 to input.


  • Again read the second input into the variable.


  • Now take the count to assign the value 0 to it.


  • Using loop condition iterate from range 1 to second input.


  • using the if condition checks the condition that the second input is divisible by number then increment the count.


  • If the count is equal to 2


  • print the number and break from the loop.


Example:

2

4

7

5

the output will be 2 it is the first prime number.


the code which you have sent did not the get the desired output



Write a program that uses one or more if statements to solve the following problem:


Prompt the user for a number (type double) and the type of conversion calculation to apply. Once the user supplies the value and the type of conversion, your program should apply the appropriate conversion and display the result. For the conversion type, the user will enter one of the following conversion conversion codes: GL, IC, PK, MK.


Based on the user's input, your program will compute and display the appropriate result. See below for the meaning of the codes:


GL = Gallon to Liter

IC = Inch to Centimeter

PK = Pound to Kilogram

MK = Mile to Kilometer


For instance, if the user inputs GL as their conversion type, the program will then take their numeric input as gallons and converrt it to liters. The liters value would then be output to the user. Please find some additional information below to assist you in solving this problem:





Write a program that asks the user to enter a distance in meters. The program will then present the following menu of selections:

1.    Convert to kilometers

2.    Convert to inches

3.    Convert to feet

4.    Quit the program

Here is an example session with the program, using console input. The user’s input is shown in bold.


Enter a distance in meters: 500 [enter]

1. Convert to kilometers

2. Convert to inches

3. Convert to feet

4. Quit the program

 

Enter your choice: 1 [enter]

500 meters is 0.5 kilometers.

 

1. Convert to kilometers

2. Convert to inches

3. Convert to feet

4. Quit the program

 

 

 

 

Enter your choice: 3 [enter]

500 meters is 1640.5 feet.

 

1. Convert to kilometers

2. Convert to inches

3. Convert to feet

4. Quit the program

 

Enter your choice: 4 [enter]

Bye!


LATEST TUTORIALS
APPROVED BY CLIENTS