1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mademuasel [1]
2 years ago
8

10.13 lab 10c: output range with increment of 5 write a program whose input is two integers. output the first integer and subseq

uent increments of 5 as long as the value is less than or equal to the second integer. you may prompt for the two integers as you wish; the prompt will not be included in the grading. ex: if the input is:
Computers and Technology
1 answer:
Lynna [10]2 years ago
3 0

he program gives an output in increment of 5, if the first inputted integer is less than the second. The program written in python 3 goes thus

You might be interested in
1.       An ________ works for a company to design, carry out, and solve its electronic equipment related problems.
sp2606 [1]
B. Electronics Engineer
7 0
3 years ago
Write a program that a C++ program that can be used to determine grades at the end of the semester. For each student, who is ide
horrorfan [7]

<u>C++ program that can be used to determine grades at the end of the semester</u>

#include <bits/stdc++.h>

using namespace std;

void func() //Defining function

{

   int m;

  double stu[60][10];

  cout<<"Enter number of students\n"; //taking input

  cin>>m;

  for(int i=0;i<m;i++)

  {

      cout<<"Enter Student Number: ";

      cin>>stu[i][0];

      cout<<"Enter the four grades of student "<<stu[i][0]<<endl;

      cin>>stu[i][1];

      cin>>stu[i][2];

      cin>>stu[i][3];

      cin>>stu[i][4];

  }

 

  //Calculating first grade average and second grade average

  for(int i=0;i<m;i++)

  {

      stu[i][5] = (stu[i][1] + stu[i][2] + stu[i][3] + stu[i][4])/4;

      stu[i][6] = (0.3*stu[i][1] + 0.2*stu[i][2] + 0.2*stu[i][3] + 0.3*stu[i][4]);

  }

  double sumFAvg=0,sumSAvg=0;

  double classFAvg,classSAvg;

  //Calculating average of first and second grades

  for(int i=0;i<m;i++)

  {

      sumFAvg = sumFAvg + stu[i][5];

      sumSAvg = sumSAvg + stu[i][6];          

  }

  classFAvg = sumFAvg/m;

  classSAvg = sumSAvg/m;

   cout<<"-----------Class Info ------------------\n";

  cout<<"StudentID   Grade1 Grade2 Grad3 Grad4 FirstGrade SecondGrade\n";

  for(int i=0;i<m;i++)

  {

      cout<<stu[i][0]<<"\t\t"<<stu[i][1]<<"\t"<<stu[i][2]<<"\t"<<stu[i][3]<<"\t"<<stu[i][4]

      <<"\t"<<stu[i][5]<<"\t"<<stu[i][6]<<endl;

  }

   cout<<"Class First Grade Average: "<<classFAvg<<endl;   //printing output

  cout<<"Class Second Grade Average: "<<classSAvg<<endl;  

 

}

int main() //driver function

{  double sumFAvg=0,sumSAvg=0;

  double classFAvg,classSAvg;

   int m;

  double stu[60][10];

   func(); //calling function

  return 0;

}

<u>Output</u>

Enter number of students 3

Enter Student Number:1 Enter the four grades of student 1-  50 60 70 80

Enter Student Number:2 Enter the four grades of student 2 -30 4 50 6

Enter Student Number:3 Enter the four grades of student 3 - 10 2 30 40

-----------Class Info ------------------

StudentID   Grade1 Grade2 Grad3 Grad4 FirstGrade SecondGrade

1  50 60 70 80 65 65

2  30 4 50 6 22.5 21.6

3  10 2 30 40 20.5 21.4

Class First Grade Average: 36

Class Second Grade Average: 36

4 0
3 years ago
Read 2 more answers
What phobia is a fear of computers or working on a computer?
aleksandr82 [10.1K]
Cyberphobia is a fear of computers
7 0
3 years ago
Using powerpoint 2016, ethan develops a short five-slide presentation for his marketing project. â â powerpoint files consist of
Lady bird [3.3K]
b. Ribbons  - Powerpoint 2016 has a tabbed ribbon system that groups relevant menus together according to category. The ribbon contains a number of tabs, each having a separate group of commands. The tabs can be used to do most of the common tasks in Powerpoint.
8 0
3 years ago
Which type of backup ensures you capture a complete snapshot of everything that makes your computer run?.
Elanso [62]

Answer:

Answer is D / If not : A full image backup, or mirror backup

Explanation:

is an exact replica of everything on your computer's hard drive, from the operating system, boot information, apps, and hidden files to your preferences and settings. Imaging software not only captures individual files, but everything you need to get your system running again.

Thanks for asking this question. If my response helped, please mark as brainliest. Thank you!

5 0
3 years ago
Other questions:
  • Henry is troubleshooting a network connection and wants to see if he can connect to the server on his network. Which Microsoft c
    14·1 answer
  • The ash and dust from a volcanic eruption can cause a _______ change in the environment.
    13·1 answer
  • What activities are the most likely to infect your computer with a virus? Check all that apply
    11·2 answers
  • how can you create fades with the smart tool? How can you specify the types of fade curves that are used with the smart tool?
    13·1 answer
  • Animation includes special visual and sound effects applied to text or other content. true or false.
    14·1 answer
  • To minimize the invasion of privacy, _____.a.organizations should not modify data once it is entered into an information systemb
    14·1 answer
  • What helps companies and organizations to target masses of people, provide 24/7 services, and deliver better marketing in a chea
    6·1 answer
  • Write a program that uses a custom function to return the cost of purchasing an item, possibly in multiple quantities. The item
    14·1 answer
  • To update a bibliography field that is not contained in a ____, right-click the bibliography, and then click Update Field on the
    10·1 answer
  • 1. Harold Worden, then 56-years-old, stole Kodak property
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!