Earn Higher Grades With Instant Assignment Help.Ask Question!

C Programming
(5/5)

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:

 

     ***********

     *****  *****

     ****      ****

     ***          ***

     **              **

     *                  *

 **              **

 ***          ***

 ****      ****

 *****  *****

 ***********

  1. B.: The output will be different for another number as input.

 

  1. 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 +   ……

  1. B.: You are not allowed to use any library function.

 

  1. Consider you will be given five quiz marks of a class of 10 students.
  2. Write a program to find out how many students have got more than 40 in at least two quizzes.
  3. Print the sum of best four quiz marks of each of the student
  4. Finally, print the highest of such total marks as obtained in (b) 
  1. 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

 

  1. 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:

  1. If the integer is of 1 digit, print the (sum of the last 2 digits of your id)th bit of its binary representation.
  2. 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.
  1. 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.
  2. B.: Print each output both in decimal & binary representation.
Attachments:
(5/5)

Related Questions

CSI 1420 Introduction to C Programming & 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 majorconstructs of the C programming language – Fu

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

Ask This Assignment To Be Done By Our ExpertsGet A+ Grade Solution Guaranteed

expert
joyComputer science
(4/5)
12 Answers Hire Me
expert
Robert DLaw
(4.8/5)
655 Answers Hire Me
expert
Dr Samuel BarberaStatistics
(5/5)
710 Answers Hire Me
expert
Tutor For YouEconomics
(5/5)
738 Answers Hire Me