Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Against All "Odds"

Instructions:

  1. Input a positive integer. This will serve as the starting point of the loop.
  2. Using a while() loop, print out all the odd numbers starting from the inputted integer, until 0. The outputted numbers must all be separated by line.
  3. Also remember that since the loop goes to descending order, a decrement variable shall be created and decreased per iteration for the loop to terminate when it reaches 0.

Instructions

  1. Scan an integer that will accept an integer greater than 0 and store it in a variable.
  2. Using a while() loop, print out all the odd numbers starting from the inputted integer, until 0. The outputted numbers must all be separated by line, just like that of the sample output.
  3. Also remember that since the loop goes to descending order, a decrement variable shall be created and decreased per iteration for the loop to terminate when it reaches 0.

Input

A line containing an integer.

10

Output

Multiple lines containing an integer.

9
7
5
3
1






Explain the concept of multipath inheritance with the help of suitable programming example.


The manager of the company has informed his assistant to enter the age of all the workers working in production department. Among all he has to find the employee with maximum age employee. Help the manager witn c++ program based on the concept of object oriented programming by creating a class employee having members empid, empname, edept,eage and display the name ,dept. and salary employee whose salary is minimum. Store the date of at least 7 employees. Make the data members of class only public. (6) Constraints Employee salary should be greater than or equal to 10000 if constraints are not matched then display "Wrong Salary Input’ 


. There are 15 students in the class. Students had their mid term result in INT105 and teacher from CSE domain wants to find the average marks of the class for course code INT105 and display it. Write a program using C++ programming language that consists of an class having name Student containing one integer array data member which stores the total marks of 15 students and float data member that calculate the stores average marks to 10 students. Use constructor to initialize data members and member functions to calculate and display average marks.


Employee Record is composed of the following:

  • record_no
  • first_name
  • last_name
  • address
  • city
  • county
  • state
  • bdate
  • zip
  • phone1
  • phone2
  • email
  • web


In the given string, Each employee data is separated by comma (,). Each record is separated by semicolon (;).


A - The program must be able to display employee record based on the given key.

B - The program must be able to display the last name, first name and age of an

employee based on the given key. (assume that the current date is April 22, 2022)

C - The program must be able to display the number of employee in a given county.

D - The program must be able to count no. of employee based on a given email provider site.




1. data

Output


Enter·your·choice·(A/B/C/D/X-exit):·A
Enter·Record·No.:·10

First·Name:·Kris
Last·name:·Marrier
Address:·228·Runamuck·Pl·#2808
City:·Baltimore
County:·Baltimore·City
State:·MD
Birth·Date:·12/19/1983
zip:·21224
phone1:·410-655-8723
phone2:·410-804-4694
Email:·kris@gmail.com
web:·http://www.kingchristopheraesq.com

Enter·your·choice·(A/B/C/D/E/X-exit):·X
Bye!






Write a Java program to print "hello" on the screen and write your name on the separate line?

One day while Cody was playing with his friends in the woods, they stumbled upon a bearded old man living alone in his cabin. Cody and his friends were shocked that somebody could grow that old. Cody, refusing to believe that it is possible, asked the old man his age. The old man said, "My age is the sum of The Programmer and your teacher's ages subtracted by the age of your friend, Peter". Puzzled with this statement, Cody quickly tried to input the ages of The Programmer, his teacher, and his friend, Peter. Help Cody find out the age of the old man.


Cody was amazed that people could grow so old and wondered If he, a robot, would also be able to grow like that. Suddenly, he heard a sharp cry nearby, and as he tumed the comer, he saw a baby. Cody never saw a baby before, plus, he was never a baby himself so he was really surprised that something could be that young. Cody asked the baby his age and the baby replied through crying, "My age is the product of The Programmer's age and your teacher's age all of which is divided by Peter's age then added by 1 Cody quickly inputted all the ages.


For example, if the Hydra had 10 heads and he called 5 friends then they would each cut 2 heads. This presented a problem, however, if the Hydra had 11 heads then that meant one of them had to cut 3 heads.


Input the number of friends Cody has to call and the number of heads the Hydra currently has and then print the minimum number of heads each one of them has to cut.


Finally, the exam is over! i think I did quite well, but I'm not very confident with my answer for number 10. I need to verify my answer.


Hey,you! Yeah, you, what's your answer for 10? Is A,B,C,D, or E?


LATEST TUTORIALS
APPROVED BY CLIENTS