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

  Sql queries will produce a correct response

Formulate SQL queries for (a) and (b) with reference to the database specified for homework 2. Ensure that your SQL queries will produce a correct response for every instance of the database. a. List the employeeid and salary of those supervisors who..

  Write a program to fetch the state and marital status

Write a program to fetch the state and marital status of five users? If user is from CA, NV, AR, V count them towards the western region

  System knows the ip address and ethernet address of server

assume that your system already knows the IP address and Ethernet address of the web server www1.anyorg.com (so you do not have to do a DNS lookup or ARP request). Fill in the missing information that would be contained in the Ethernet frame as it..

  How might you encode audio (or video) data in two packets

what would be expected with half the bandwidth? Explain why this is much more difficult if a JPEG-type encoding is used.

  Basics for successful web communications, including issues

Please remember to refer to the Module One Short Paper Rubric document for company background.

  Practice cost-benefit question zhengxi

Practice Cost-Benefit Question Zhengxi, aged 21, is considering whether or not to go to university for four years. For simplicity assume that he is paid, and pays tuition, at the beginning of each year, and that his alternative income streams are bot..

  The analysis section is reserved for the author knowledge

The following table is a breakdown of the sections of the paper and the expected page count of each section. Note that the minimum page count is 12 double spaced pages. Also, APA style must be followed. Section of Paper Page Count (minimum - maximum)

  Problem regarding the participant in the project

Begin your response by describing your EAI scenario. Be sure to include your role or perspective on this project. Were you a participant in the project, a consumer of the project's result, or both?

  How would you create a monospaced font of point size 20

How would you create a Monospaced font of point size 20 that is bold? Give the Java statement needed.

  Explaining multiple-level total

Whch of the following is an example of a multiple-level total? A total shown at the end of report for number of books in a library or Total shown every time the type of book changes (for example, reference, fiction, nonfiction).

  What is the probability that the m th record is the first

A hash function randomly distribute records one by one in a space that can hold x number of records what is the probability that the m th record is the first record to result in collision?

  Calculate the amount of product expected from a reaction

Write a Matlab program to calculate the amount of product expected from a reaction

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