Write a program that prompts the user to input a string. The program then uses the function substr to remove all the vowels from the string. For example, if str = "There", then after removing all the vowels, str = "Thr". After removing all the vowels, output the string. Your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel. |
|
|
|
|
Your Vowel function wont work in all cases. |
|
|
The history teacher at your school needs help in grading a true/false test. The students' IDs and test answers are stored in a text file. The first entry in the file contains answers to the test in the form: TFFTFFTTTFFTFTFTFTT Every other entry in the file is the studentID, followed by a blank, followed by the student's responses. For example, the entry: ABC54301 TFTFTFTT TFTFTFFTTFT Indicated that the student ID is ABC 54301 and the answer to question 1 is true, the answer to question 2 is false, and so on. This student did not answer question 9. The exam has 20 questions, and the class has more than 150 students. Each correct answer is awarded two points, each wrong answer gets one point deducted and no answer gets zero points. Write a program that processes the test data. The output should be the student's ID, followed by the answers, followed by the test score, followed by the test grade. Assume the standard grade scale (90-100 -- a) (80-89 -- b) etc..etc.. |
TFFTFFTTTFFTFTFTFTTF jesus TFFTFFTTTFFTFTFTFTTF James TFTTTFTFTTFTFTFFTTFT Jones TFTTTFTFTFFFTFFTTF T Joojo TFFTTFFTFFFFF FTFTT Jayjy TFFTFTTTTFFFFTFTTTTF |
|
|
Write a program to help a local restaurant automate its breakfast billing system. The program should do the following: a. Show the customer the different breakfast items offered by the restaurant b. Allow the customer to select more than one item from the menu. c. Calculate the bill Assume the restaurant offers the following breakfast items: Plain Egg.............1.45 Bacon and Egg....2.45 Muffin..................0.99 French Toast.......1.99 Fruit Basket.........2.49 Cereal.................0.50 Tea......................0.75 Define a struct menuItemType with two components to hold the name and price of an item. Use an array, menuList, of the menuItemTypes. Your program must contain at least the following functions: [] Function GetData: This function loads data into the array [] Function ShowMenu: Displays items offered by restaurant and tells user how to select items. [] Function printCheck: calculates and prints check(Note that the billing amount should include a 5% tax) Format your output with 2 decimal places. The name of each item in the output must be left justified. You may assume that the user selects only one of a particular item. |
|
|
Question to Need4Sleep: Will you erase 'old' assignments as you keep making new ones? please don't... :) |