Consider you will be given five quiz marks of a class of 10 students. Write a program to find out how many students have got more than 40 in at least two quizzes.
INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS
1. Write a Function that print as follows for input: 6:
***********
***** *****
**** ****
*** ***
** **
* *
|
** **
*** ***
**** ****
***** *****
***********
- B.: The output will be different for another number as input.
- Write a program to compute the sum of the following series up to nth term (take n as use input):
Total = (0 * 1)0 - (1 * 2)2 + (3 * 5)3 - (8 * 13)4 + ……
- B.: You are not allowed to use any library function.
- Consider you will be given five quiz marks of a class of 10 students.
- Write a program to find out how many students have got more than 40 in at least two quizzes.
- Print the sum of best four quiz marks of each of the student
- Finally, print the highest of such total marks as obtained in (b)
- Write a code in C that finds the vowels in a word and regenerate the word sending the vowels at the end of the word successively.
Input: iLoveC
Outout: LvCioe
- Write a code in C to split a line with a character and store the fractioned portions.
Sample input:
Input the line:
Hello, C, a structured programming language, is awesome, however students are not capable of enjoying it
Input the splitting character:
,
Output:
Hello
C
a structured programming languages
is awesome
however students are not capable of enjoying it
#. We will play with the bits of an integer. You will be given an integer, write a code in C which will perform the following tasks:
- If the integer is of 1 digit, print the (sum of the last 2 digits of your id)th bit of its binary representation.
- If the integer is of 2digits flip the (sum of the last 2 digits of your id)th bit of its binary representation.
- If the integer is of more than 2 digits reset the (sum of the last 2 digits of your id)th bits of its binary representation.
- If the integer is of more than 2 digits set the (sum of the last 2 digits of your id)th bits of its binary representation.
- B.: Print each output both in decimal & binary representation.
Attachments:
Related Questions
. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:
1
Project 1
Introduction - the SeaPort Project series
For this set of projects for the course, we wish to simulate some of the aspects of a number of
. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:
1
Project 2
Introduction - the SeaPort Project series
For this set of projects for the course, we wish to simulate some of the aspects of a number of