Write a program to find the sum of digits of a number

Assignment Help Basic Computer Science
Reference no: EM131107788

1. Write a program to find the sum of digits of a number 5

2. Write a program to check a string is a palindrom or not 5

3. Write a program to add, subtract and multiply 2 Matrices 10

4. What are structures ? 5

5. Create an array of structure to hold the following information of 10 employees 10

EmpID

 First Name

 Last Name

 Dept

 Date of Join

 Salary

6. Sort the above array of structure in ascending order of EmpID 10

7. Search the above array for occurance of a particular EmpID and display the record 10

8. Write a program to create a file, read the file and display the contents 10

9. Write a program to solve the following problem 10 Area of a rectangle with sides as whole numbers, is 8 times its perimeter.

What are the sides. Is there only one combination of sides possible ?

If more than one combination is available, what are those ?

10. Write a program to solve the following problem 10

A pet selling center sells pets at the following rates.

A dog costs $ 10.00, a cat costs $ 3.00 and a rabbit costs $ 0.50.

A customer has 100 dollars and he needs 100 pets. How many of each to be sold ?

11. Write a program to generate 5000 counts of different part numbers with the following features: 15

  1. 1 st , 2 nd and 3 rd characters may beupper case letters except I, O, U
  2. 4 th and 5 th characters may be digits except 0 and 1
  3. 6 th character may be a lower case letter except i, l, o and u.
  4. 7 th and 8 th put togather makes a numeric value between 10 and 49

Reference no: EM131107788

Questions Cloud

Should state g impose anti-dumping duties on snicker : The Snicker Company, the largest manufacturer of Snickerdoodles in State F, decided about two years ago to enter the cookie market in State G. Several small companies in State G manufacture Snickerdoodles, but the market has traditionally been very s..
Describe how the cold war was fought by each superpower : Describe how the Cold War was fought by each superpower. Analyze the policy of containment and explain the domino theory. Evaluate Harry Truman's domestic policies. Which parts of it reflected the New Deal?
Provide substantive conclusion and recommendations : Analyze political, social, ethical, and legal differences facing both organizations and determine the impact these differences have on management decision making
Write a program to find the sum of digits of a number : 1. Write a program to find the sum of digits of a number 5 2. Write a program to check a string is a palindrom or not 5
How many reflections will the light make before exiting : how many reflections will the light make before exiting this "hall"?
Key characteristics of the fall of the roman empire : What were the key characteristics of the fall of the Roman Empire? To what extent was the Byzantine Empire a continuation of the Roman Empire? How did the fall of Rome affect Western Europe
Countries with much lower labor and manufacturing costs : Here's some background info. A company's duty to operate honorably, provide good working conditions for employees, be a good steward of the environment, and actively work to better the quality of life in the local communities where it operates and in..
What standards for adults and what standards for juveniles : Are investigators held to a different standard when questioning juveniles in police custody? What are the standards for adults and what are the standards for juveniles?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create the logic for a program that continuously prompts

The application passes the value in turn to a method that computes the sum of all the whole numbers from 1 up to and including the entered number, and to a method that computes the product of all the whole numbers up to and including the entered n..

  Draw.setscale(-1.0, 1.0); bullseye(); }}

Given code import java.awt.*; public class BullsEye{ public static void bullsEye(){ //Draw a BullsEye below. The bullseye should be centered on (0,0).

  Let r be a cfg in chomsky normal from with x variables.

Let R be a CFG in Chomsky normal from with x variables.

  Which item in the stack is to be removed first

Which item in the stack is to be removed first?

  Describe common usability guidelines and standards

Describe common usability guidelines and standards.

  Form of the knapsack problem

One form of the knapsack problem is as follows: We are given a set of integers, A = a1, a2, ... , aN, and an integer, K. Is there a subset of A whose sum is exactly K?

  Discuss the role of standards in wireless networks

Discuss the role of standards in wireless networks.

  Permit system to control suggestion

One form of congestion avoidance is the permit system, in which a node must have a permit before it can transmit. Suppose a wide area network is using a permit system to control suggestion.

  A work- sheet to store lookup tables

You work for a travel company that specializes in arranging travel accommodations for student tours and vacations in exciting destinations such as Canada, Rome, and the Czech Republic.

  Explain findings-conducting internet search for for cde file

Network asminisrator mentions that other "CDE" files have been sent through the FTP server to another site. Explain your findings after conducting the internet search for "CDE" files.

  Write recursive method prints out the digits reverse order

Write the code for a recursive method that accepts an integer argument and prints out the digits in reverse order

  Why in practice this may not be the case

why in practice this may not be the case.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd