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

Write a program in C language that calculates the roots of quadratic equation ax 2 +bx+c.


Write a program in C language that print the sum of first and last digit of 7 digit


input number N (5)


[For example if N=98765 the output is 9(First Digit) + 5(Last Digit)=14

Write a program in C programming language that print the following sum of series 1+4+7+10………+N


write a program to check whether a number is divisible by 5 and 11 or not.using the switch statement

You probably are fond of games. This quiz though is not that complicated. You are simply going to work with a point on a screen, and a circle on a screen as well. And let's consider them as the characters in the game. We are going to call both of these characters as Movable objects. Objects are said to be Movable if they can be moved around the screen. The following simple movements are allowed:






public void moveLeft(); // moves the x to the left by 1 unit



public void moveRight(); // moves the x to the right by 1 unit



public void moveUp(); // moves the y 1 unit upward



public void moveDown(); // moves the y 1 unit downward



public void display(); // prints all the info about

create a program that will accept a student name, student grade and will display the name and its equivalent grade.

A nested if is needed to validate the range of grade from 0 to 100 only. Inputted grade outside the given range is invalid input and there’s no grade equivalent. Your program should use nested if to validate the grade input and use the if-else statement to validate the grade options. Your program should have an input part and a display part. In the input part, you will be asked to input student name and student grade. For the output part, you have to display the student’s name and grade as shown in the sample output. The grading system is shown below.

Grading System:

A

94-100

A-

90-93

B+

87-89

B

83-86

B-

80-82

C+

77-79

C

73-76

C-

70-72

D+

65-69

D

60-64

F

59 and below



Write a C Program to implement circular queue using dynamic memory allocation. Set the


initial capacity of the queue as 2. The capacity should double whenever the queue is Full.


Through proper output show insertion, deletion and doubling the size of the queue.

Product Launch Section, Devices (Size < 900px):Devices (Size >= 900px):

Instructions:

  • For the devices less than 900px, the width of image should be 180px and for the rest of devices it should be 300px.
  • The page should have the image on the right in devices equals to and above 900px.
  • The page should have the image on the top in devices below 900px.
  • For the devices less than 900px, use align self property to align the image horizontally in the center.
  • Achieve the design using the CSS Flexbox layout and Media queries.
  • Try to achieve the design as close as possible.

Use the image URL's given below.

  • https://assets.ccbp.in/frontend/intermediate-rwd/fairpods-darkpink-bg.png
  • https://assets.ccbp.in/frontend/intermediate-rwd/fairpods-blue-bg.png
  • https://assets.ccbp.in/frontend/intermediate-rwd/apple-fairpods-img.png

CSS Colors used:

Background color Hex Code values:

#ffdda9

Text color Hex Code values:

#8e62d9

#ffffff

#334155

CSS Font families used:

  • Roboto

Programming Problem 4: Caffeine Absorption

(Note: Programming Problem 4 draws directly on Chapter 6, Programming Project 1, page 285.)


Nutritional Associates of New Jersey stresses to their patients the effects of caffeine on the body. After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume a person drinks an 8-ounce cup of brewed coffee containing 130 mg of caffeine, and the caffeine is absorbed immediately into the body. See Figure 6.77 in the Visual Basic text, and write a program to compute the following values: 


  1. The number of hours required until 65 mg (one-half the original amount) remain in the body 
  2. The amount of caffeine in the body 24 hours after the person drinks the coffee


Suppose the person drinks a cup of coffee at 7:00 a.m. and then drinks a cup of coffee at the end of each hour until 7:00 a.m. the next day. How much caffeine will be in the body at the end of the 24 hours?





Create a Python script which will compute the TOTAL Sales in a Grapes Store. The grapes is sold at 235.75 per kilo. 5% discount is given to customers that will buy 5 kilos and above. Compute also the CHANGE after the customer tendered their money. Format the display with two decimal digits.



Sample Output 1:


GRAPE STORE


No. of Kilos: 3


Total Price: 707.25


Discount: 0.00


Discounted Price: 707.25


CASH: 1000


Change: 292.75



I need the complete coding of this. Thank you



LATEST TUTORIALS
APPROVED BY CLIENTS