Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

problem 1) prepare a program to input the marks of a student and print the result (passing marks = 40 %).

problem 2) prepare a program to input the age of the person and check that he is eligible for license for not.

problem 3) prepare a program to check that given year is a leap year or not.

problem 4) prepare a program to input number and check whether it is even or odd.

problem 5) prepare a program to input a number and check that number is divisible by 7 or not.

problem 6) According to Gregorian calendar, it was Monday on the date 01/01/1900. If any year is input through the keyboard prepare a program to find out what is the day on 1st January of this year.

problem 7) prepare a program to input the name and age of a person and display “CHILD” or “TEENAGER” according to the age.

problem 8) prepare a program to input the salary of a person and find out the hra and da according to thefollowing conditions:

Salary                 HRA               DA
5000-10000       10%                 5%
10001-15000     15%                 8%

problem 9) prepare a program to input marks in five subjects of a student and find out the divisionaccording to the following conditions:

Percentage             Division
>=60                        First
50-59                      Second
40-49                     Third
<40                          Fail

problem 10) An electricity board charges according to the following rates: For the first 100 units - 40 paisa per unit.For the next 200 units- 50 paisa per unit. beyond 300 units - 60 paisa per unit.All users are charged meter charges also, which are Rs. 50/-

problem 11) prepare a program to input monthly salary from the user and find out the income taxaccording to the following rules:

Salary                income tax
>=9000                     40% of the salary
7500-8999                30% of the salary
<7500                       20% of the salary

problem 12) prepare a program to input the selling price and cost price from the user and determine whether the seller has made profit or incurred loss. Also display the value of profit or loss.

problem 13) prepare a program to input a character and check that it’s a small letter, capital letter, a digit or a special symbol.

problem 14) prepare a program to input two integers and determine that first is multiple of second.

problem 15) prepare a program to input a character and check that it’s a vowel or a consonant.

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M94878

Have any Question? 


Related Questions in C/C++

Writeacprogramthatwilluseloopstoperformeachofthefollowingtas

Write a C++ program that will use loops to perform each of the following tasks: 1. Ask the user for two characters from the keyboard and read them into char variables. Determine which input is larger and which is smaller ...

Ipo chartinputprocessingoutputmarks for four

IPO Chart Input Processing Output Marks for four courses Processing Item: Grade Point and Grade for individual course Overall GPA Algoritham Initialize gp with zero Repeat  for (each course)                 Enter the mar ...

Cs492 programming assignment-the program must be written in

CS492 Programming Assignment- The program must be written in C or C++, and run on a linux machine. ALL source code you submit must be well documented (documentation is an indicator of understanding!) Programs that cannot ...

C program assignmentaccording to C Program Assignment According to

C Program Assignment According to http://en.wikipedia.org/wiki/Great-circle_distance, the great circle distance based on two coordinates in nautical miles is given by: d = r * Δσ where r is the radius of the earth and Δσ ...

Question 1you are facing the following problem you are

Question 1 You are facing the following problem: You are given a robot and your task is to "guide" the robot through a 2-dimensional maze such that the robot can reach a desired goal state. Assume that the maze is define ...

Discussion questonsplease respond to all of the following

Discussion Questons Please respond to all of the following prompts: • How are input and output accomplished in C++? • How do cin and cout relate to ostream and istream? Lab Activity 1. Write a C++ program per the require ...

Write a program that calculates mileage reimbursement for a

Write a program that calculates mileage reimbursement for a salesperson at a rate of $0.35 per mile. Your program should interact with the user in this manner: MILEAGE REIMBURSEMENT CALCULATOR Enter beginning odometer re ...

Assignment simple 5-card poker gamein this assignment you

Assignment: Simple 5-Card Poker Game In this assignment, you will develop a simple poker game, complete with basic AI, using the object oriented programming principles discussed in class. Flow of Play Your poker game's p ...

Please use codeblockslist the program and the output on the

Please use codeblocks List the program and the output on the command line Eg #include #include using namespace std; int main() { floatjohno = 0.5; size_t size = 24; vector array(size); for(inti=0; i     { johno = johno + ...

Pa 1 word countertabulating basic document statistics is an

PA #1: Word Counter Tabulating basic document statistics is an interesting exercise that leverages your knowledge of strings, files, loops, and arrays. In this homework, you must write a C++ program that asks the user fo ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate